Sindbad~EG File Manager

Current Path : /proc/2568807/root/usr/share/systemtap/examples/process/
Upload File :
Current File : //proc/2568807/root/usr/share/systemtap/examples/process/pstrace_exec.stp

#!/usr/bin/stap
# Copyright (C) 2012 Red Hat, Inc.
# by William Cohen <wcohen@redhat.com>
#
# pstrace_exec prints out the chain of processes from the current process
# back to the init process whenever an exec matches the argument.
#
# Run the script with:
#   stap pstrace_exec.stp "command_to_match"
#
# control-c to exit data collection

probe kprocess.exec
{
  if (isinstr(filename, @1)) {
    printf("process traceback:\n %s\n", pstrace(task_current()))
  }
}

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists