mirror of
https://gitee.com/bianbu-linux/linux-6.6
synced 2025-04-24 14:07:52 -04:00
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>
32 lines
579 B
C
32 lines
579 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* Copyright (c) 2022, Microsoft Corporation.
|
|
*
|
|
* Authors:
|
|
* Beau Belgrave <beaub@linux.microsoft.com>
|
|
*/
|
|
|
|
#ifndef _LINUX_USER_EVENTS_H
|
|
#define _LINUX_USER_EVENTS_H
|
|
|
|
#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 */
|