diff options
author | Steven Rostedt (VMware) <[email protected]> | 2021-08-16 23:42:57 -0400 |
---|---|---|
committer | Steven Rostedt (VMware) <[email protected]> | 2021-08-18 18:13:47 -0400 |
commit | 1d18538e6a09265003a0a94ca779d7a6127cb76c (patch) | |
tree | 79c71bb9a4c4ed5a3848bdbb155b6b1dfe8a08a0 /scripts/gdb/linux/lists.py | |
parent | 8b0e6c744fef6462382041b30878c91f15069fc6 (diff) |
tracing: Have dynamic events have a ref counter
As dynamic events are not created by modules, if something is attached to
one, calling "try_module_get()" on its "mod" field, is not going to keep
the dynamic event from going away.
Since dynamic events do not need the "mod" pointer of the event structure,
make a union out of it in order to save memory (there's one structure for
each of the thousand+ events in the kernel), and have any event with the
DYNAMIC flag set to use a ref counter instead.
Link: https://lore.kernel.org/linux-trace-devel/[email protected]/
Link: https://lkml.kernel.org/r/[email protected]
Suggested-by: Masami Hiramatsu <[email protected]>
Acked-by: Masami Hiramatsu <[email protected]>
Signed-off-by: Steven Rostedt (VMware) <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/lists.py')
0 files changed, 0 insertions, 0 deletions