module.h (4ba24fef3eb3b142197135223b90ced2f319cd53) | module.h (bbedb179944c29e5e449603163eec9951116fe39) |
---|---|
1/* 2 * Because linux/module.h has tracepoints in the header, and ftrace.h 3 * used to include this file, define_trace.h includes linux/module.h 4 * But we do not want the module.h to override the TRACE_SYSTEM macro 5 * variable that define_trace.h is processing, so we only set it 6 * when module events are being processed, which would happen when 7 * CREATE_TRACE_POINTS is defined. 8 */ --- 70 unchanged lines hidden (view full) --- 79 ), 80 81 TP_fast_assign( 82 __entry->ip = ip; 83 __entry->refcnt = atomic_read(&mod->refcnt); 84 __assign_str(name, mod->name); 85 ), 86 | 1/* 2 * Because linux/module.h has tracepoints in the header, and ftrace.h 3 * used to include this file, define_trace.h includes linux/module.h 4 * But we do not want the module.h to override the TRACE_SYSTEM macro 5 * variable that define_trace.h is processing, so we only set it 6 * when module events are being processed, which would happen when 7 * CREATE_TRACE_POINTS is defined. 8 */ --- 70 unchanged lines hidden (view full) --- 79 ), 80 81 TP_fast_assign( 82 __entry->ip = ip; 83 __entry->refcnt = atomic_read(&mod->refcnt); 84 __assign_str(name, mod->name); 85 ), 86 |
87 TP_printk("%s call_site=%pf refcnt=%d", | 87 TP_printk("%s call_site=%ps refcnt=%d", |
88 __get_str(name), (void *)__entry->ip, __entry->refcnt) 89); 90 91DEFINE_EVENT(module_refcnt, module_get, 92 93 TP_PROTO(struct module *mod, unsigned long ip), 94 95 TP_ARGS(mod, ip) --- 20 unchanged lines hidden (view full) --- 116 ), 117 118 TP_fast_assign( 119 __entry->ip = ip; 120 __entry->wait = wait; 121 __assign_str(name, name); 122 ), 123 | 88 __get_str(name), (void *)__entry->ip, __entry->refcnt) 89); 90 91DEFINE_EVENT(module_refcnt, module_get, 92 93 TP_PROTO(struct module *mod, unsigned long ip), 94 95 TP_ARGS(mod, ip) --- 20 unchanged lines hidden (view full) --- 116 ), 117 118 TP_fast_assign( 119 __entry->ip = ip; 120 __entry->wait = wait; 121 __assign_str(name, name); 122 ), 123 |
124 TP_printk("%s wait=%d call_site=%pf", | 124 TP_printk("%s wait=%d call_site=%ps", |
125 __get_str(name), (int)__entry->wait, (void *)__entry->ip) 126); 127 128#endif /* CONFIG_MODULES */ 129 130#endif /* _TRACE_MODULE_H */ 131 132/* This part must be outside protection */ 133#include <trace/define_trace.h> | 125 __get_str(name), (int)__entry->wait, (void *)__entry->ip) 126); 127 128#endif /* CONFIG_MODULES */ 129 130#endif /* _TRACE_MODULE_H */ 131 132/* This part must be outside protection */ 133#include <trace/define_trace.h> |