mirror of
https://github.com/torvalds/linux.git
synced 2026-11-26 16:33:17 +00:00
Librarize trace_event() helper so that perf trace can use it too. Also clean up the debug.h includes a bit. It's not good to have it included in perf.h because it doesn't make it flexible against other headers it may need (headers that can also depend on perf.h and then create a recursive header dependency). Signed-off-by: Frederic Weisbecker <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Arnaldo Carvalho de Melo <[email protected]> Cc: Mike Galbraith <[email protected]> LKML-Reference: <[email protected]> Signed-off-by: Ingo Molnar <[email protected]>
9 lines
266 B
C
9 lines
266 B
C
/* For debugging general purposes */
|
|
|
|
extern int verbose;
|
|
extern int dump_trace;
|
|
|
|
int eprintf(const char *fmt, ...) __attribute__((format(printf, 1, 2)));
|
|
int dump_printf(const char *fmt, ...) __attribute__((format(printf, 1, 2)));
|
|
void trace_event(event_t *event);
|