diff options
author | Ravi Bangoria <[email protected]> | 2018-08-20 10:12:49 +0530 |
---|---|---|
committer | Steven Rostedt (VMware) <[email protected]> | 2018-09-24 04:44:54 -0400 |
commit | ccea8727dc27d8f46df6557f9260ab32760ef409 (patch) | |
tree | 2c414868068fa1928f52fd5d295f3e17a5ff1c42 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 22bad38286d9a652d7061a02f9743bb2ebb84e59 (diff) |
trace_uprobe/sdt: Prevent multiple reference counter for same uprobe
We assume to have only one reference counter for one uprobe.
Don't allow user to add multiple trace_uprobe entries having
same inode+offset but different reference counter.
Ex,
# echo "p:sdt_tick/loop2 /home/ravi/tick:0x6e4(0x10036)" > uprobe_events
# echo "p:sdt_tick/loop2_1 /home/ravi/tick:0x6e4(0xfffff)" >> uprobe_events
bash: echo: write error: Invalid argument
# dmesg
trace_kprobe: Reference counter offset mismatch.
There is one exception though:
When user is trying to replace the old entry with the new
one, we allow this if the new entry does not conflict with
any other existing entries.
Link: http://lkml.kernel.org/r/[email protected]
Acked-by: Srikar Dronamraju <[email protected]>
Reviewed-by: Song Liu <[email protected]>
Reviewed-by: Oleg Nesterov <[email protected]>
Tested-by: Song Liu <[email protected]>
Signed-off-by: Ravi Bangoria <[email protected]>
Signed-off-by: Steven Rostedt (VMware) <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions