History

tracing: move trace point formats to files in include/trace directory

Impact: clean up To further facilitate the ease of adding trace points for developers, this patch creates include/trace/trace_events.h and include/trace/trace_event_types.h. The former file will hold the trace/<type>.h files and the latter will hold the trace/<type>_event_types.h files. To create new tracepoints and to have them automatically appear in the event tracer, a developer makes the trace/<type>.h file which includes <linux/tracepoint.h> and the trace/<type>_event_types.h file. The trace/<type>_event_types.h file will hold the TRACE_FORMAT macros. Then add the trace/<type>.h file to trace/trace_events.h, and add the trace/<type>_event_types.h to the trace_event_types.h file. No need to modify files elsewhere.

Steven Rostedt committed 17 years ago

Commit eb594e41 parent 0cfe8243 files · +10 −8Browse files

Unified · Split

3 files
  1. include/trace/trace_event_types.h +4 −0
  2. include/trace/trace_events.h +4 −0
  3. kernel/trace/events.c +2 −8
include/trace/trace_event_types.h+4−0
@@ -0,0 +1,4 @@
1/* trace/<type>_event_types.h here */
2
3#include <trace/sched_event_types.h>
4#include <trace/irq_event_types.h>
include/trace/trace_events.h+4−0
@@ -0,0 +1,4 @@
1/* trace/<type>.h here */
2
3#include <trace/sched.h>
4#include <trace/irq.h>
kernel/trace/events.c+2−8
@@ -1,15 +1,9 @@
1/*1/*
2 * This is the place to register all trace points as events.2 * This is the place to register all trace points as events.
3 * Include the trace/<type>.h at the top.
4 * Include the trace/<type>_event_types.h at the bottom.
5 */3 */
6 4
7/* trace/<type>.h here */5#include <trace/trace_events.h>
8#include <trace/sched.h>
9#include <trace/irq.h>
10 6
11#include "trace_events.h"7#include "trace_events.h"
12 8
13/* trace/<type>_event_types.h here */9#include <trace/trace_event_types.h>
14#include <trace/sched_event_types.h>
15#include <trace/irq_event_types.h>