diff options
author | Steven Rostedt (Red Hat) <rostedt@goodmis.org> | 2013-12-20 23:23:05 -0500 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2013-12-21 22:02:17 -0500 |
commit | 2875a08b2d1da7bae58fc01badb9b0ef1e8fc1a4 (patch) | |
tree | 91e68035b03d828649428882414e09b44026783c | |
parent | 7862ad1846e994574cb47dc503cc2b1646ea6593 (diff) |
tracing: Move ftrace_event_file() out of DYNAMIC_FTRACE ifdef
Now that event triggers use ftrace_event_file(), it needs to be outside
the #ifdef CONFIG_DYNAMIC_FTRACE, as it can now be used when that is
not defined.
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
-rw-r--r-- | kernel/trace/trace_events.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/kernel/trace/trace_events.c b/kernel/trace/trace_events.c index 9a974bd843d4..e71ffd4eccb5 100644 --- a/kernel/trace/trace_events.c +++ b/kernel/trace/trace_events.c | |||
@@ -1855,19 +1855,6 @@ __trace_add_event_dirs(struct trace_array *tr) | |||
1855 | } | 1855 | } |
1856 | } | 1856 | } |
1857 | 1857 | ||
1858 | #ifdef CONFIG_DYNAMIC_FTRACE | ||
1859 | |||
1860 | /* Avoid typos */ | ||
1861 | #define ENABLE_EVENT_STR "enable_event" | ||
1862 | #define DISABLE_EVENT_STR "disable_event" | ||
1863 | |||
1864 | struct event_probe_data { | ||
1865 | struct ftrace_event_file *file; | ||
1866 | unsigned long count; | ||
1867 | int ref; | ||
1868 | bool enable; | ||
1869 | }; | ||
1870 | |||
1871 | struct ftrace_event_file * | 1858 | struct ftrace_event_file * |
1872 | find_event_file(struct trace_array *tr, const char *system, const char *event) | 1859 | find_event_file(struct trace_array *tr, const char *system, const char *event) |
1873 | { | 1860 | { |
@@ -1891,6 +1878,19 @@ find_event_file(struct trace_array *tr, const char *system, const char *event) | |||
1891 | return NULL; | 1878 | return NULL; |
1892 | } | 1879 | } |
1893 | 1880 | ||
1881 | #ifdef CONFIG_DYNAMIC_FTRACE | ||
1882 | |||
1883 | /* Avoid typos */ | ||
1884 | #define ENABLE_EVENT_STR "enable_event" | ||
1885 | #define DISABLE_EVENT_STR "disable_event" | ||
1886 | |||
1887 | struct event_probe_data { | ||
1888 | struct ftrace_event_file *file; | ||
1889 | unsigned long count; | ||
1890 | int ref; | ||
1891 | bool enable; | ||
1892 | }; | ||
1893 | |||
1894 | static void | 1894 | static void |
1895 | event_enable_probe(unsigned long ip, unsigned long parent_ip, void **_data) | 1895 | event_enable_probe(unsigned long ip, unsigned long parent_ip, void **_data) |
1896 | { | 1896 | { |