diff options
author | Beau Belgrave <beaub@linux.microsoft.com> | 2023-03-29 02:52:09 +0300 |
---|---|---|
committer | Steven Rostedt (Google) <rostedt@goodmis.org> | 2023-03-29 13:52:08 +0300 |
commit | fd593511cdfc0b0e38af2eb21c99f5154a1d7acf (patch) | |
tree | f20436aa3368002cc877fd370f9d0b1cda714874 /include/linux/user_events.h | |
parent | e5a26a4048eeb9558e5c84f340a989c78db4adf4 (diff) | |
download | linux-fd593511cdfc0b0e38af2eb21c99f5154a1d7acf.tar.xz |
tracing/user_events: Track fork/exec/exit for mm lifetime
During tracefs discussions it was decided instead of requiring a mapping
within a user-process to track the lifetime of memory descriptors we
should hook the appropriate calls. Do this by adding the minimal stubs
required for task fork, exec, and exit. Currently this is just a NOP.
Future patches will implement these calls fully.
Link: https://lkml.kernel.org/r/20230328235219.203-3-beaub@linux.microsoft.com
Suggested-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Signed-off-by: Beau Belgrave <beaub@linux.microsoft.com>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Diffstat (limited to 'include/linux/user_events.h')
-rw-r--r-- | include/linux/user_events.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/include/linux/user_events.h b/include/linux/user_events.h index 13689589d36e..3d747c45d2fa 100644 --- a/include/linux/user_events.h +++ b/include/linux/user_events.h @@ -11,4 +11,22 @@ #include <uapi/linux/user_events.h> +#ifdef CONFIG_USER_EVENTS +struct user_event_mm { +}; +#endif + +static inline void user_events_fork(struct task_struct *t, + unsigned long clone_flags) +{ +} + +static inline void user_events_execve(struct task_struct *t) +{ +} + +static inline void user_events_exit(struct task_struct *t) +{ +} + #endif /* _LINUX_USER_EVENTS_H */ |