Skip to content

Commit

Permalink
tracing/events: move trace point headers into include/trace/events
Browse files Browse the repository at this point in the history
Impact: clean up

Create a sub directory in include/trace called events to keep the
trace point headers in their own separate directory. Only headers that
declare trace points should be defined in this directory.

Cc: Peter Zijlstra <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: Neil Horman <[email protected]>
Cc: Zhao Lei <[email protected]>
Cc: Eduard - Gabriel Munteanu <[email protected]>
Cc: Pekka Enberg <[email protected]>
Signed-off-by: Steven Rostedt <[email protected]>
  • Loading branch information
Steven Rostedt authored and rostedt committed Apr 15, 2009
1 parent ecda8ae commit ad8d75f
Show file tree
Hide file tree
Showing 22 changed files with 18 additions and 17 deletions.
2 changes: 1 addition & 1 deletion include/linux/kmemtrace.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

#ifdef __KERNEL__

#include <trace/kmem.h>
#include <trace/events/kmem.h>

#ifdef CONFIG_KMEMTRACE
extern void kmemtrace_init(void);
Expand Down
2 changes: 1 addition & 1 deletion include/trace/define_trace.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
#endif

#ifndef TRACE_INCLUDE_PATH
# define __TRACE_INCLUDE(system) <trace/system.h>
# define __TRACE_INCLUDE(system) <trace/events/system.h>
# define UNDEF_TRACE_INCLUDE_FILE
#else
# define __TRACE_INCLUDE(system) __stringify(TRACE_INCLUDE_PATH/system.h)
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion kernel/exit.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
#include <linux/tracehook.h>
#include <linux/fs_struct.h>
#include <linux/init_task.h>
#include <trace/sched.h>
#include <trace/events/sched.h>

#include <asm/uaccess.h>
#include <asm/unistd.h>
Expand Down
3 changes: 2 additions & 1 deletion kernel/fork.c
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@
#include <linux/proc_fs.h>
#include <linux/blkdev.h>
#include <linux/fs_struct.h>
#include <trace/sched.h>
#include <linux/magic.h>

#include <asm/pgtable.h>
Expand All @@ -71,6 +70,8 @@
#include <asm/cacheflush.h>
#include <asm/tlbflush.h>

#include <trace/events/sched.h>

/*
* Protected counters by write_lock_irq(&tasklist_lock)
*/
Expand Down
2 changes: 1 addition & 1 deletion kernel/irq/handle.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#include <linux/bootmem.h>

#define CREATE_TRACE_POINTS
#include <trace/irq.h>
#include <trace/events/irq.h>

#include "internals.h"

Expand Down
2 changes: 1 addition & 1 deletion kernel/kthread.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#include <linux/file.h>
#include <linux/module.h>
#include <linux/mutex.h>
#include <trace/sched.h>
#include <trace/events/sched.h>

#define KTHREAD_NICE_LEVEL (-5)

Expand Down
2 changes: 1 addition & 1 deletion kernel/lockdep.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
#include "lockdep_internals.h"

#define CREATE_TRACE_POINTS
#include <trace/lockdep.h>
#include <trace/events/lockdep.h>

#ifdef CONFIG_PROVE_LOCKING
int prove_locking = 1;
Expand Down
2 changes: 1 addition & 1 deletion kernel/sched.c
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
#include "sched_cpupri.h"

#define CREATE_TRACE_POINTS
#include <trace/sched.h>
#include <trace/events/sched.h>

/*
* Convert user-nice values [ -20 ... 0 ... 19 ]
Expand Down
2 changes: 1 addition & 1 deletion kernel/signal.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#include <linux/freezer.h>
#include <linux/pid_namespace.h>
#include <linux/nsproxy.h>
#include <trace/sched.h>
#include <trace/events/sched.h>

#include <asm/param.h>
#include <asm/uaccess.h>
Expand Down
2 changes: 1 addition & 1 deletion kernel/softirq.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#include <linux/ftrace.h>
#include <linux/smp.h>
#include <linux/tick.h>
#include <trace/irq.h>
#include <trace/events/irq.h>

#include <asm/irq.h>
/*
Expand Down
2 changes: 1 addition & 1 deletion kernel/trace/ftrace.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
#include <linux/list.h>
#include <linux/hash.h>

#include <trace/sched.h>
#include <trace/events/sched.h>

#include <asm/ftrace.h>

Expand Down
2 changes: 1 addition & 1 deletion kernel/trace/trace_sched_switch.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#include <linux/kallsyms.h>
#include <linux/uaccess.h>
#include <linux/ftrace.h>
#include <trace/sched.h>
#include <trace/events/sched.h>

#include "trace.h"

Expand Down
2 changes: 1 addition & 1 deletion kernel/trace/trace_sched_wakeup.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#include <linux/kallsyms.h>
#include <linux/uaccess.h>
#include <linux/ftrace.h>
#include <trace/sched.h>
#include <trace/events/sched.h>

#include "trace.h"

Expand Down
2 changes: 1 addition & 1 deletion mm/util.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#include <asm/uaccess.h>

#define CREATE_TRACE_POINTS
#include <trace/kmem.h>
#include <trace/events/kmem.h>

/**
* kstrdup - allocate space for and copy an existing string
Expand Down
2 changes: 1 addition & 1 deletion net/core/drop_monitor.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#include <linux/bitops.h>
#include <net/genetlink.h>

#include <trace/skb.h>
#include <trace/events/skb.h>

#include <asm/unaligned.h>

Expand Down
2 changes: 1 addition & 1 deletion net/core/net-traces.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@
#include <asm/bitops.h>

#define CREATE_TRACE_POINTS
#include <trace/skb.h>
#include <trace/events/skb.h>

EXPORT_TRACEPOINT_SYMBOL_GPL(kfree_skb);
2 changes: 1 addition & 1 deletion net/core/skbuff.c
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@

#include <asm/uaccess.h>
#include <asm/system.h>
#include <trace/skb.h>
#include <trace/events/skb.h>

#include "kmap_skb.h"

Expand Down

0 comments on commit ad8d75f

Please sign in to comment.