diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2017-05-03 21:41:21 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2017-05-03 21:41:21 -0400 |
commit | 4c174688ee92805aa5df6e06e5b625a3286e415c (patch) | |
tree | 78e18b242b31a3a50eda41bfdd4705e07f13647a /include/linux/init.h | |
parent | 9c35baf6cee9a5745d55de6f9995916dde642517 (diff) | |
parent | 73a757e63114dfd765f1c5d1ff7e994f123d0234 (diff) |
Merge tag 'trace-v4.12' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace
Pull tracing updates from Steven Rostedt:
"New features for this release:
- Pretty much a full rewrite of the processing of function plugins.
i.e. echo do_IRQ:stacktrace > set_ftrace_filter
- The rewrite was needed to add plugins to be unique to tracing
instances. i.e. mkdir instance/foo; cd instances/foo; echo
do_IRQ:stacktrace > set_ftrace_filter The old way was written very
hacky. This removes a lot of those hacks.
- New "function-fork" tracing option. When set, pids in the
set_ftrace_pid will have their children added when the processes
with their pids listed in the set_ftrace_pid file forks.
- Exposure of "maxactive" for kretprobe in kprobe_events
- Allow for builtin init functions to be traced by the function
tracer (via the kernel command line). Module init function tracing
will come in the next release.
- Added more selftests, and have selftests also test in an instance"
* tag 'trace-v4.12' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace: (60 commits)
ring-buffer: Return reader page back into existing ring buffer
selftests: ftrace: Allow some event trigger tests to run in an instance
selftests: ftrace: Have some basic tests run in a tracing instance too
selftests: ftrace: Have event tests also run in an tracing instance
selftests: ftrace: Make func_event_triggers and func_traceonoff_triggers tests do instances
selftests: ftrace: Allow some tests to be run in a tracing instance
tracing/ftrace: Allow for instances to trigger their own stacktrace probes
tracing/ftrace: Allow for the traceonoff probe be unique to instances
tracing/ftrace: Enable snapshot function trigger to work with instances
tracing/ftrace: Allow instances to have their own function probes
tracing/ftrace: Add a better way to pass data via the probe functions
ftrace: Dynamically create the probe ftrace_ops for the trace_array
tracing: Pass the trace_array into ftrace_probe_ops functions
tracing: Have the trace_array hold the list of registered func probes
ftrace: If the hash for a probe fails to update then free what was initialized
ftrace: Have the function probes call their own function
ftrace: Have each function probe use its own ftrace_ops
ftrace: Have unregister_ftrace_function_probe_func() return a value
ftrace: Add helper function ftrace_hash_move_and_update_ops()
ftrace: Remove data field from ftrace_func_probe structure
...
Diffstat (limited to 'include/linux/init.h')
-rw-r--r-- | include/linux/init.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/linux/init.h b/include/linux/init.h index 79af0962fd52..94769d687cf0 100644 --- a/include/linux/init.h +++ b/include/linux/init.h | |||
@@ -39,7 +39,7 @@ | |||
39 | 39 | ||
40 | /* These are for everybody (although not all archs will actually | 40 | /* These are for everybody (although not all archs will actually |
41 | discard it in modules) */ | 41 | discard it in modules) */ |
42 | #define __init __section(.init.text) __cold notrace __latent_entropy | 42 | #define __init __section(.init.text) __cold __inittrace __latent_entropy |
43 | #define __initdata __section(.init.data) | 43 | #define __initdata __section(.init.data) |
44 | #define __initconst __section(.init.rodata) | 44 | #define __initconst __section(.init.rodata) |
45 | #define __exitdata __section(.exit.data) | 45 | #define __exitdata __section(.exit.data) |
@@ -68,8 +68,10 @@ | |||
68 | 68 | ||
69 | #ifdef MODULE | 69 | #ifdef MODULE |
70 | #define __exitused | 70 | #define __exitused |
71 | #define __inittrace notrace | ||
71 | #else | 72 | #else |
72 | #define __exitused __used | 73 | #define __exitused __used |
74 | #define __inittrace | ||
73 | #endif | 75 | #endif |
74 | 76 | ||
75 | #define __exit __section(.exit.text) __exitused __cold notrace | 77 | #define __exit __section(.exit.text) __exitused __cold notrace |