-#else
- TP_PROTO(struct module *mod, unsigned long ip, int refcnt),
-
- TP_ARGS(mod, ip, refcnt),
-#endif
-
- TP_STRUCT__entry(
- __field( unsigned long, ip )
- __field( int, refcnt )
- __string( name, mod->name )
- ),
-
- TP_fast_assign(
- tp_assign(ip, ip)
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,19,0))
- tp_assign(refcnt, atomic_read(&mod->refcnt))
-#elif (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,35))
- tp_assign(refcnt, __this_cpu_read(mod->refptr->incs) + __this_cpu_read(mod->refptr->decs))
-#else
- tp_assign(refcnt, refcnt)
-#endif
- tp_strcpy(name, mod->name)
- ),