Merge branch 'linus' into tracing/core
[safe/jmp/linux-2.6] / include / trace / events / module.h
index f07b44a..c7bb2f0 100644 (file)
@@ -68,7 +68,7 @@ DECLARE_EVENT_CLASS(module_refcnt,
 
        TP_fast_assign(
                __entry->ip     = ip;
-               __entry->refcnt = __this_cpu_read(mod->refptr->count);
+               __entry->refcnt = __this_cpu_read(mod->refptr->incs) + __this_cpu_read(mod->refptr->decs);
                __assign_str(name, mod->name);
        ),