Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

PR6503: call systemtap_module_refresh() upon module arrival/departure

  • Loading branch information...
commit e2368e1c9ba965648352056f03a5b4eadaf19175 1 parent d99d520
Frank Ch. Eigler authored
Showing with 12 additions and 0 deletions.
  1. +12 −0 runtime/transport/symbols.c
12 runtime/transport/symbols.c
View
@@ -13,6 +13,10 @@
#define _STP_SYMBOLS_C_
#include "../sym.h"
+
+static void systemtap_module_refresh(void);
+
+
/* PR12612: pre-commit-3abb860f values */
#define STP13_MODULE_NAME_LEN 64
@@ -107,6 +111,14 @@ static int _stp_module_notifier (struct notifier_block * nb,
/* Unregister all sections. */
_stp_kmodule_update_address(mod->name, NULL, 0);
}
+
+ /* Give the probes a chance to update themselves. */
+ /* Proper kprobes support for this appears to be relatively
+ recent. XXX: need more precise reference */
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,30)
+ systemtap_module_refresh();
+#endif
+
return NOTIFY_DONE;
}
Please sign in to comment.
Something went wrong with that request. Please try again.