Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 140895
b: refs/heads/master
c: 9cc26a2
h: refs/heads/master
i:
  140893: 1401586
  140891: 16dfcdd
  140887: 414d538
  140879: 05808f9
  140863: 35dcd73
v: v3
  • Loading branch information
Steven Rostedt committed Mar 10, 2009
1 parent 65f2e89 commit 343fdcb
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2939b0469d04ba9ac791aca9a81625d7eb50662b
refs/heads/master: 9cc26a261d43e5898287a1f5808132f8f05ceb1c
4 changes: 1 addition & 3 deletions trunk/kernel/trace/events.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@
* This is the place to register all trace points as events.
*/

/* someday this needs to go in a generic header */
#define __STR(x) #x
#define STR(x) __STR(x)
#include <linux/stringify.h>

#include <trace/trace_events.h>

Expand Down
4 changes: 2 additions & 2 deletions trunk/kernel/trace/trace_events_stage_3.h
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ static struct ftrace_event_call __used \
__attribute__((__aligned__(4))) \
__attribute__((section("_ftrace_events"))) event_##call = { \
.name = #call, \
.system = STR(TRACE_SYSTEM), \
.system = __stringify(TRACE_SYSTEM), \
.regfunc = ftrace_reg_event_##call, \
.unregfunc = ftrace_unreg_event_##call, \
}
Expand Down Expand Up @@ -225,7 +225,7 @@ static struct ftrace_event_call __used \
__attribute__((__aligned__(4))) \
__attribute__((section("_ftrace_events"))) event_##call = { \
.name = #call, \
.system = STR(TRACE_SYSTEM), \
.system = __stringify(TRACE_SYSTEM), \
.regfunc = ftrace_reg_event_##call, \
.unregfunc = ftrace_unreg_event_##call, \
.raw_init = ftrace_raw_init_event_##call, \
Expand Down
6 changes: 2 additions & 4 deletions trunk/kernel/trace/trace_selftest.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/* Include in trace.c */

#include <linux/stringify.h>
#include <linux/kthread.h>
#include <linux/delay.h>

Expand Down Expand Up @@ -100,9 +101,6 @@ static inline void warn_failed_init_tracer(struct tracer *trace, int init_ret)

#ifdef CONFIG_DYNAMIC_FTRACE

#define __STR(x) #x
#define STR(x) __STR(x)

/* Test dynamic code modification and ftrace filters */
int trace_selftest_startup_dynamic_tracing(struct tracer *trace,
struct trace_array *tr,
Expand Down Expand Up @@ -130,7 +128,7 @@ int trace_selftest_startup_dynamic_tracing(struct tracer *trace,
* start of the function names. We simply put a '*' to
* accommodate them.
*/
func_name = "*" STR(DYN_FTRACE_TEST_NAME);
func_name = "*" __stringify(DYN_FTRACE_TEST_NAME);

/* filter only on our function */
ftrace_set_filter(func_name, strlen(func_name), 1);
Expand Down

0 comments on commit 343fdcb

Please sign in to comment.