summaryrefslogtreecommitdiff
path: root/include/linux/ftrace.h
diff options
context:
space:
mode:
authorIngo Molnar <mingo@kernel.org>2012-05-07 13:03:52 +0400
committerIngo Molnar <mingo@kernel.org>2012-05-07 13:03:52 +0400
commit19631cb3d67c24c8b1fa58bc69bc2fed8d15095d (patch)
treea56d9e11f23e3433f9eaa5b3f9dec7bef378c37e /include/linux/ftrace.h
parent1fa2e84db3f95adab8d9c2aa245e9a0ebf32248a (diff)
parent59a094c994a138049b41a44bc29cff9407d51c5b (diff)
downloadlinux-19631cb3d67c24c8b1fa58bc69bc2fed8d15095d.tar.xz
Merge branch 'tip/perf/core-4' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace into perf/core
Diffstat (limited to 'include/linux/ftrace.h')
-rw-r--r--include/linux/ftrace.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/ftrace.h b/include/linux/ftrace.h
index 72a6cabb4d5b..0b5590330bca 100644
--- a/include/linux/ftrace.h
+++ b/include/linux/ftrace.h
@@ -286,6 +286,12 @@ struct ftrace_rec_iter *ftrace_rec_iter_start(void);
struct ftrace_rec_iter *ftrace_rec_iter_next(struct ftrace_rec_iter *iter);
struct dyn_ftrace *ftrace_rec_iter_record(struct ftrace_rec_iter *iter);
+#define for_ftrace_rec_iter(iter) \
+ for (iter = ftrace_rec_iter_start(); \
+ iter; \
+ iter = ftrace_rec_iter_next(iter))
+
+
int ftrace_update_record(struct dyn_ftrace *rec, int enable);
int ftrace_test_record(struct dyn_ftrace *rec, int enable);
void ftrace_run_stop_machine(int command);