Subject: perf: Remove overload of TASK_TOMBSTONE From: Peter Zijlstra Date: Mon Jul 15 13:40:02 CEST 2019 Currently TASK_TOMBSTONE is used for 2 different things. Signed-off-by: Peter Zijlstra (Intel) --- kernel/events/core.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) --- a/kernel/events/core.c +++ b/kernel/events/core.c @@ -165,10 +165,11 @@ static void perf_ctx_unlock(struct perf_ } #define TASK_TOMBSTONE ((void *)-1L) +#define TASK_KERNEL ((void *)-1L) static bool is_kernel_event(struct perf_event *event) { - return READ_ONCE(event->owner) == TASK_TOMBSTONE; + return READ_ONCE(event->owner) == TASK_KERNEL; } /* @@ -11239,7 +11240,7 @@ perf_event_create_kernel_counter(struct } /* Mark owner so we could distinguish it from user events. */ - event->owner = TASK_TOMBSTONE; + event->owner = TASK_KERNEL; ctx = find_get_context(event->pmu, task, event); if (IS_ERR(ctx)) {