Skip to content

Commit

Permalink
fix #17 : attach 1 kprobe and 1 kretprobe to syscall instead of twice…
Browse files Browse the repository at this point in the history
… a kprobe. copy/paste issue :-(
  • Loading branch information
egobillot committed Apr 6, 2020
1 parent be468a8 commit 8ee8654
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion calltop.py
Original file line number Diff line number Diff line change
Expand Up @@ -827,7 +827,7 @@ def attach_syscall_to_kprobe(b, syscall_list):
try:
syscall_name = b.get_syscall_fnname(fname)
b.attach_kprobe(event=syscall_name, fn_name='do_enter_%s' % fname)
b.attach_kprobe(event=syscall_name, fn_name='do_return_%s' % fname)
b.attach_kretprobe(event=syscall_name, fn_name='do_return_%s' % fname)
except KeyboardInterrupt:
display.print_header(b'Exiting ...')
display.reset()
Expand Down

0 comments on commit 8ee8654

Please sign in to comment.