This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug runtime/16861] probes aren't re-registered after module reload


https://sourceware.org/bugzilla/show_bug.cgi?id=16861

--- Comment #2 from Jonathan Lebon <jlebon at redhat dot com> ---
Created attachment 7647
  --> https://sourceware.org/bugzilla/attachment.cgi?id=7647&action=edit
Patch

In this patch, we only call back to systemtap_module_refresh() for the COMING
event. We also pass the module name so that only kprobes for that module are
refreshed.

With the patch:

$ stap -e 'probe module("btrfs").function("*_btrfs_fs").call { print
ln(ppfunc()) }' -c 'sudo sh -c "modprobe btrfs; modprobe -r btrfs; modprobe
btrfs; modprobe -r btrfs"'
init_btrfs_fs
exit_btrfs_fs
init_btrfs_fs
exit_btrfs_fs
$

-- 
You are receiving this mail because:
You are the assignee for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]