|
@@ -53,9 +53,9 @@ TRACE_EVENT(module_free,
|
|
|
|
|
|
DECLARE_EVENT_CLASS(module_refcnt,
|
|
|
|
|
|
- TP_PROTO(struct module *mod, unsigned long ip, int refcnt),
|
|
|
+ TP_PROTO(struct module *mod, unsigned long ip),
|
|
|
|
|
|
- TP_ARGS(mod, ip, refcnt),
|
|
|
+ TP_ARGS(mod, ip),
|
|
|
|
|
|
TP_STRUCT__entry(
|
|
|
__field( unsigned long, ip )
|
|
@@ -65,7 +65,7 @@ DECLARE_EVENT_CLASS(module_refcnt,
|
|
|
|
|
|
TP_fast_assign(
|
|
|
__entry->ip = ip;
|
|
|
- __entry->refcnt = refcnt;
|
|
|
+ __entry->refcnt = __this_cpu_read(mod->refptr->count);
|
|
|
__assign_str(name, mod->name);
|
|
|
),
|
|
|
|
|
@@ -75,16 +75,16 @@ DECLARE_EVENT_CLASS(module_refcnt,
|
|
|
|
|
|
DEFINE_EVENT(module_refcnt, module_get,
|
|
|
|
|
|
- TP_PROTO(struct module *mod, unsigned long ip, int refcnt),
|
|
|
+ TP_PROTO(struct module *mod, unsigned long ip),
|
|
|
|
|
|
- TP_ARGS(mod, ip, refcnt)
|
|
|
+ TP_ARGS(mod, ip)
|
|
|
);
|
|
|
|
|
|
DEFINE_EVENT(module_refcnt, module_put,
|
|
|
|
|
|
- TP_PROTO(struct module *mod, unsigned long ip, int refcnt),
|
|
|
+ TP_PROTO(struct module *mod, unsigned long ip),
|
|
|
|
|
|
- TP_ARGS(mod, ip, refcnt)
|
|
|
+ TP_ARGS(mod, ip)
|
|
|
);
|
|
|
|
|
|
TRACE_EVENT(module_request,
|