aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/syscalls.h
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2015-06-26 17:02:43 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2015-06-26 17:02:43 -0400
commite382608254e06c8109f40044f5e693f2e04f3899 (patch)
tree7c46c58a5a15d19a312c35a8e70e69d1cbd93236 /include/linux/syscalls.h
parentfcbc1777ce8b5edf831c1eca16c1a63c1e4f39fb (diff)
parentb44754d8262d3aab842998cf747f44fe6090be9f (diff)
Merge tag 'trace-v4.2' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace
Pull tracing updates from Steven Rostedt: "This patch series contains several clean ups and even a new trace clock "monitonic raw". Also some enhancements to make the ring buffer even faster. But the biggest and most noticeable change is the renaming of the ftrace* files, structures and variables that have to deal with trace events. Over the years I've had several developers tell me about their confusion with what ftrace is compared to events. Technically, "ftrace" is the infrastructure to do the function hooks, which include tracing and also helps with live kernel patching. But the trace events are a separate entity altogether, and the files that affect the trace events should not be named "ftrace". These include: include/trace/ftrace.h -> include/trace/trace_events.h include/linux/ftrace_event.h -> include/linux/trace_events.h Also, functions that are specific for trace events have also been renamed: ftrace_print_*() -> trace_print_*() (un)register_ftrace_event() -> (un)register_trace_event() ftrace_event_name() -> trace_event_name() ftrace_trigger_soft_disabled() -> trace_trigger_soft_disabled() ftrace_define_fields_##call() -> trace_define_fields_##call() ftrace_get_offsets_##call() -> trace_get_offsets_##call() Structures have been renamed: ftrace_event_file -> trace_event_file ftrace_event_{call,class} -> trace_event_{call,class} ftrace_event_buffer -> trace_event_buffer ftrace_subsystem_dir -> trace_subsystem_dir ftrace_event_raw_##call -> trace_event_raw_##call ftrace_event_data_offset_##call-> trace_event_data_offset_##call ftrace_event_type_funcs_##call -> trace_event_type_funcs_##call And a few various variables and flags have also been updated. This has been sitting in linux-next for some time, and I have not heard a single complaint about this rename breaking anything. Mostly because these functions, variables and structures are mostly internal to the tracing system and are seldom (if ever) used by anything external to that" * tag 'trace-v4.2' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace: (33 commits) ring_buffer: Allow to exit the ring buffer benchmark immediately ring-buffer-benchmark: Fix the wrong type ring-buffer-benchmark: Fix the wrong param in module_param ring-buffer: Add enum names for the context levels ring-buffer: Remove useless unused tracing_off_permanent() ring-buffer: Give NMIs a chance to lock the reader_lock ring-buffer: Add trace_recursive checks to ring_buffer_write() ring-buffer: Allways do the trace_recursive checks ring-buffer: Move recursive check to per_cpu descriptor ring-buffer: Add unlikelys to make fast path the default tracing: Rename ftrace_get_offsets_##call() to trace_event_get_offsets_##call() tracing: Rename ftrace_define_fields_##call() to trace_event_define_fields_##call() tracing: Rename ftrace_event_type_funcs_##call to trace_event_type_funcs_##call tracing: Rename ftrace_data_offset_##call to trace_event_data_offset_##call tracing: Rename ftrace_raw_##call event structures to trace_event_raw_##call tracing: Rename ftrace_trigger_soft_disabled() to trace_trigger_soft_disabled() tracing: Rename FTRACE_EVENT_FL_* flags to EVENT_FILE_FL_* tracing: Rename struct ftrace_subsystem_dir to trace_subsystem_dir tracing: Rename ftrace_event_name() to trace_event_name() tracing: Rename FTRACE_MAX_EVENT to TRACE_EVENT_TYPE_MAX ...
Diffstat (limited to 'include/linux/syscalls.h')
-rw-r--r--include/linux/syscalls.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/include/linux/syscalls.h b/include/linux/syscalls.h
index bb51becf23f8..b45c45b8c829 100644
--- a/include/linux/syscalls.h
+++ b/include/linux/syscalls.h
@@ -111,14 +111,14 @@ union bpf_attr;
111#define __SC_STR_ADECL(t, a) #a 111#define __SC_STR_ADECL(t, a) #a
112#define __SC_STR_TDECL(t, a) #t 112#define __SC_STR_TDECL(t, a) #t
113 113
114extern struct ftrace_event_class event_class_syscall_enter; 114extern struct trace_event_class event_class_syscall_enter;
115extern struct ftrace_event_class event_class_syscall_exit; 115extern struct trace_event_class event_class_syscall_exit;
116extern struct trace_event_functions enter_syscall_print_funcs; 116extern struct trace_event_functions enter_syscall_print_funcs;
117extern struct trace_event_functions exit_syscall_print_funcs; 117extern struct trace_event_functions exit_syscall_print_funcs;
118 118
119#define SYSCALL_TRACE_ENTER_EVENT(sname) \ 119#define SYSCALL_TRACE_ENTER_EVENT(sname) \
120 static struct syscall_metadata __syscall_meta_##sname; \ 120 static struct syscall_metadata __syscall_meta_##sname; \
121 static struct ftrace_event_call __used \ 121 static struct trace_event_call __used \
122 event_enter_##sname = { \ 122 event_enter_##sname = { \
123 .class = &event_class_syscall_enter, \ 123 .class = &event_class_syscall_enter, \
124 { \ 124 { \
@@ -128,13 +128,13 @@ extern struct trace_event_functions exit_syscall_print_funcs;
128 .data = (void *)&__syscall_meta_##sname,\ 128 .data = (void *)&__syscall_meta_##sname,\
129 .flags = TRACE_EVENT_FL_CAP_ANY, \ 129 .flags = TRACE_EVENT_FL_CAP_ANY, \
130 }; \ 130 }; \
131 static struct ftrace_event_call __used \ 131 static struct trace_event_call __used \
132 __attribute__((section("_ftrace_events"))) \ 132 __attribute__((section("_ftrace_events"))) \
133 *__event_enter_##sname = &event_enter_##sname; 133 *__event_enter_##sname = &event_enter_##sname;
134 134
135#define SYSCALL_TRACE_EXIT_EVENT(sname) \ 135#define SYSCALL_TRACE_EXIT_EVENT(sname) \
136 static struct syscall_metadata __syscall_meta_##sname; \ 136 static struct syscall_metadata __syscall_meta_##sname; \
137 static struct ftrace_event_call __used \ 137 static struct trace_event_call __used \
138 event_exit_##sname = { \ 138 event_exit_##sname = { \
139 .class = &event_class_syscall_exit, \ 139 .class = &event_class_syscall_exit, \
140 { \ 140 { \
@@ -144,7 +144,7 @@ extern struct trace_event_functions exit_syscall_print_funcs;
144 .data = (void *)&__syscall_meta_##sname,\ 144 .data = (void *)&__syscall_meta_##sname,\
145 .flags = TRACE_EVENT_FL_CAP_ANY, \ 145 .flags = TRACE_EVENT_FL_CAP_ANY, \
146 }; \ 146 }; \
147 static struct ftrace_event_call __used \ 147 static struct trace_event_call __used \
148 __attribute__((section("_ftrace_events"))) \ 148 __attribute__((section("_ftrace_events"))) \
149 *__event_exit_##sname = &event_exit_##sname; 149 *__event_exit_##sname = &event_exit_##sname;
150 150