aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2009-03-18 01:59:56 -0400
committerIngo Molnar <mingo@elte.hu>2009-03-18 01:59:56 -0400
commit327019b01e068d66dada6a8b2571180ab3674d20 (patch)
treec81354a509d6962f6878145fcf3cdbe50a000a89 /include/linux
parent03418c7efaa429dc7647ac93e3862e3fe1816873 (diff)
parent62524d55e5b9ffe36e3bf3dd7a594114f150b449 (diff)
Merge branch 'tip/tracing/ftrace' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-2.6-trace into tracing/ftrace
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/compiler.h6
-rw-r--r--include/linux/ring_buffer.h7
2 files changed, 7 insertions, 6 deletions
diff --git a/include/linux/compiler.h b/include/linux/compiler.h
index d95da1020f1c..6faa7e549de4 100644
--- a/include/linux/compiler.h
+++ b/include/linux/compiler.h
@@ -68,6 +68,7 @@ struct ftrace_branch_data {
68 unsigned long miss; 68 unsigned long miss;
69 unsigned long hit; 69 unsigned long hit;
70 }; 70 };
71 unsigned long miss_hit[2];
71 }; 72 };
72}; 73};
73 74
@@ -125,10 +126,7 @@ void ftrace_likely_update(struct ftrace_branch_data *f, int val, int expect);
125 .line = __LINE__, \ 126 .line = __LINE__, \
126 }; \ 127 }; \
127 ______r = !!(cond); \ 128 ______r = !!(cond); \
128 if (______r) \ 129 ______f.miss_hit[______r]++; \
129 ______f.hit++; \
130 else \
131 ______f.miss++; \
132 ______r; \ 130 ______r; \
133 })) 131 }))
134#endif /* CONFIG_PROFILE_ALL_BRANCHES */ 132#endif /* CONFIG_PROFILE_ALL_BRANCHES */
diff --git a/include/linux/ring_buffer.h b/include/linux/ring_buffer.h
index b1a0068a5557..9e6052bd1a1c 100644
--- a/include/linux/ring_buffer.h
+++ b/include/linux/ring_buffer.h
@@ -118,8 +118,11 @@ unsigned long ring_buffer_overruns(struct ring_buffer *buffer);
118unsigned long ring_buffer_entries_cpu(struct ring_buffer *buffer, int cpu); 118unsigned long ring_buffer_entries_cpu(struct ring_buffer *buffer, int cpu);
119unsigned long ring_buffer_overrun_cpu(struct ring_buffer *buffer, int cpu); 119unsigned long ring_buffer_overrun_cpu(struct ring_buffer *buffer, int cpu);
120 120
121u64 ring_buffer_time_stamp(int cpu); 121u64 ring_buffer_time_stamp(struct ring_buffer *buffer, int cpu);
122void ring_buffer_normalize_time_stamp(int cpu, u64 *ts); 122void ring_buffer_normalize_time_stamp(struct ring_buffer *buffer,
123 int cpu, u64 *ts);
124void ring_buffer_set_clock(struct ring_buffer *buffer,
125 u64 (*clock)(void));
123 126
124size_t ring_buffer_page_len(void *page); 127size_t ring_buffer_page_len(void *page);
125 128