Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

sched/tracing: Remove the redundant 'success' in the sched tracepoint

'success' is left here for a long time and also it is meaningless
for the upper user. Just remove it.

[ There were some tools expecting this, and this may break them. But
hopefully they've been fixed in the mean time. Otherwise this may be
likely reverted - SDR ]

Link: https://lkml.kernel.org/r/20210422122226.9415-1-ed.tsai@mediatek.com

Cc: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Ed Tsai <ed.tsai@mediatek.com>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>

authored by

Ed Tsai and committed by
Steven Rostedt (VMware)
58b9987d 30d103f2

-2
-2
include/trace/events/sched.h
··· 148 148 __array( char, comm, TASK_COMM_LEN ) 149 149 __field( pid_t, pid ) 150 150 __field( int, prio ) 151 - __field( int, success ) 152 151 __field( int, target_cpu ) 153 152 ), 154 153 ··· 155 156 memcpy(__entry->comm, p->comm, TASK_COMM_LEN); 156 157 __entry->pid = p->pid; 157 158 __entry->prio = p->prio; /* XXX SCHED_DEADLINE */ 158 - __entry->success = 1; /* rudiment, kill when possible */ 159 159 __entry->target_cpu = task_cpu(p); 160 160 ), 161 161