Thread (22 messages) 22 messages, 3 authors, 2023-08-02

Re: [RFC PATCH v3 3/6] sched, tracing: add to report task state in symbolic chars

From: Steven Rostedt <rostedt@goodmis.org>
Date: 2023-08-01 14:27:38
Also in: linux-perf-users, lkml

On Tue, 1 Aug 2023 13:45:45 +0200
Peter Zijlstra [off-list ref] wrote:
On Tue, Aug 01, 2023 at 05:01:21PM +0800, Ze Gao wrote:
quoted
@@ -233,6 +255,7 @@ TRACE_EVENT(sched_switch,
 		__field(	pid_t,	prev_pid			)
 		__field(	int,	prev_prio			)
 		__field(	long,	prev_state			)
+		__field(	char,	prev_state_char			)
 		__array(	char,	next_comm,	TASK_COMM_LEN	)
 		__field(	pid_t,	next_pid			)
 		__field(	int,	next_prio			)  
And this again will wreck everybody that consumes the raw tracepoint
without looking at tracefs.
Nobody does that anymore, as the events change constantly, and are
different on different kernels. Powertop (the tool that caused us pain
before by using raw values) had to break down and use libtraceevent,
because it would break if there was a 32 bit version running on a 64 bit
kernel.

I've changed the offsets of raw events a few times and nobody has
complained since.

-- Steve
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help