diff options
author | Ingo Molnar <mingo@elte.hu> | 2009-04-01 15:54:19 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-04-01 18:49:02 -0400 |
commit | 8302294f43250dc337108c51882a6007f2b1e2e0 (patch) | |
tree | 85acd4440799c46a372df9cad170fa0c21e59096 /samples | |
parent | 4fe70410d9a219dabb47328effccae7e7f2a6e26 (diff) | |
parent | 2e572895bf3203e881356a4039ab0fa428ed2639 (diff) |
Merge branch 'tracing/core-v2' into tracing-for-linus
Conflicts:
include/linux/slub_def.h
lib/Kconfig.debug
mm/slob.c
mm/slub.c
Diffstat (limited to 'samples')
-rw-r--r-- | samples/tracepoints/tp-samples-trace.h | 8 | ||||
-rw-r--r-- | samples/tracepoints/tracepoint-sample.c | 24 |
2 files changed, 16 insertions, 16 deletions
diff --git a/samples/tracepoints/tp-samples-trace.h b/samples/tracepoints/tp-samples-trace.h index 01724e04c556..dffdc49878af 100644 --- a/samples/tracepoints/tp-samples-trace.h +++ b/samples/tracepoints/tp-samples-trace.h | |||
@@ -5,9 +5,9 @@ | |||
5 | #include <linux/tracepoint.h> | 5 | #include <linux/tracepoint.h> |
6 | 6 | ||
7 | DECLARE_TRACE(subsys_event, | 7 | DECLARE_TRACE(subsys_event, |
8 | TPPROTO(struct inode *inode, struct file *file), | 8 | TP_PROTO(struct inode *inode, struct file *file), |
9 | TPARGS(inode, file)); | 9 | TP_ARGS(inode, file)); |
10 | DECLARE_TRACE(subsys_eventb, | 10 | DECLARE_TRACE(subsys_eventb, |
11 | TPPROTO(void), | 11 | TP_PROTO(void), |
12 | TPARGS()); | 12 | TP_ARGS()); |
13 | #endif | 13 | #endif |
diff --git a/samples/tracepoints/tracepoint-sample.c b/samples/tracepoints/tracepoint-sample.c index 68d5dc0310e4..9cf80a11e8b6 100644 --- a/samples/tracepoints/tracepoint-sample.c +++ b/samples/tracepoints/tracepoint-sample.c | |||
@@ -1,6 +1,6 @@ | |||
1 | /* tracepoint-sample.c | 1 | /* tracepoint-sample.c |
2 | * | 2 | * |
3 | * Executes a tracepoint when /proc/tracepoint-example is opened. | 3 | * Executes a tracepoint when /proc/tracepoint-sample is opened. |
4 | * | 4 | * |
5 | * (C) Copyright 2007 Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca> | 5 | * (C) Copyright 2007 Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca> |
6 | * | 6 | * |
@@ -16,7 +16,7 @@ | |||
16 | DEFINE_TRACE(subsys_event); | 16 | DEFINE_TRACE(subsys_event); |
17 | DEFINE_TRACE(subsys_eventb); | 17 | DEFINE_TRACE(subsys_eventb); |
18 | 18 | ||
19 | struct proc_dir_entry *pentry_example; | 19 | struct proc_dir_entry *pentry_sample; |
20 | 20 | ||
21 | static int my_open(struct inode *inode, struct file *file) | 21 | static int my_open(struct inode *inode, struct file *file) |
22 | { | 22 | { |
@@ -32,25 +32,25 @@ static struct file_operations mark_ops = { | |||
32 | .open = my_open, | 32 | .open = my_open, |
33 | }; | 33 | }; |
34 | 34 | ||
35 | static int __init example_init(void) | 35 | static int __init sample_init(void) |
36 | { | 36 | { |
37 | printk(KERN_ALERT "example init\n"); | 37 | printk(KERN_ALERT "sample init\n"); |
38 | pentry_example = proc_create("tracepoint-example", 0444, NULL, | 38 | pentry_sample = proc_create("tracepoint-sample", 0444, NULL, |
39 | &mark_ops); | 39 | &mark_ops); |
40 | if (!pentry_example) | 40 | if (!pentry_sample) |
41 | return -EPERM; | 41 | return -EPERM; |
42 | return 0; | 42 | return 0; |
43 | } | 43 | } |
44 | 44 | ||
45 | static void __exit example_exit(void) | 45 | static void __exit sample_exit(void) |
46 | { | 46 | { |
47 | printk(KERN_ALERT "example exit\n"); | 47 | printk(KERN_ALERT "sample exit\n"); |
48 | remove_proc_entry("tracepoint-example", NULL); | 48 | remove_proc_entry("tracepoint-sample", NULL); |
49 | } | 49 | } |
50 | 50 | ||
51 | module_init(example_init) | 51 | module_init(sample_init) |
52 | module_exit(example_exit) | 52 | module_exit(sample_exit) |
53 | 53 | ||
54 | MODULE_LICENSE("GPL"); | 54 | MODULE_LICENSE("GPL"); |
55 | MODULE_AUTHOR("Mathieu Desnoyers"); | 55 | MODULE_AUTHOR("Mathieu Desnoyers"); |
56 | MODULE_DESCRIPTION("Tracepoint example"); | 56 | MODULE_DESCRIPTION("Tracepoint sample"); |