diff options
author | Vladimir Zapolskiy <[email protected]> | 2011-07-15 20:45:18 +0300 |
---|---|---|
committer | Oleg Nesterov <[email protected]> | 2011-07-18 21:38:33 +0200 |
commit | f701e5b73a1a79ea62ffd45d9e2bed4c7d5c1fd2 (patch) | |
tree | 10940ea680a1c8c69cbd9f9aa9aca23a1199aa0e /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | d184d6eb1dc3c9869e25a8e422be5c55ab0db4ac (diff) |
connector: add an event for monitoring process tracers
This change adds a procfs connector event, which is emitted on every
successful process tracer attach or detach.
If some process connects to other one, kernelspace connector reports
process id and thread group id of both these involved processes. On
disconnection null process id is returned.
Such an event allows to create a simple automated userspace mechanism
to be aware about processes connecting to others, therefore predefined
process policies can be applied to them if needed.
Note, a detach signal is emitted only in case, if a tracer process
explicitly executes PTRACE_DETACH request. In other cases like tracee
or tracer exit detach event from proc connector is not reported.
Signed-off-by: Vladimir Zapolskiy <[email protected]>
Acked-by: Evgeniy Polyakov <[email protected]>
Cc: David S. Miller <[email protected]>
Signed-off-by: Oleg Nesterov <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions