Re: [RFC PATCH v3 3/6] sched, tracing: add to report task state in symbolic chars
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- Subject: Re: [RFC PATCH v3 3/6] sched, tracing: add to report task state in symbolic chars
- From: Ze Gao <zegao2021@xxxxxxxxx>
- Date: Tue, 1 Aug 2023 21:08:54 +0800
- Cc: Adrian Hunter <adrian.hunter@xxxxxxxxx>, Alexander Shishkin <alexander.shishkin@xxxxxxxxxxxxxxx>, Arnaldo Carvalho de Melo <acme@xxxxxxxxxx>, Ian Rogers <irogers@xxxxxxxxxx>, Ingo Molnar <mingo@xxxxxxxxxx>, Jiri Olsa <jolsa@xxxxxxxxxx>, Mark Rutland <mark.rutland@xxxxxxx>, Masami Hiramatsu <mhiramat@xxxxxxxxxx>, Namhyung Kim <namhyung@xxxxxxxxxx>, Steven Rostedt <rostedt@xxxxxxxxxxx>, linux-kernel@xxxxxxxxxxxxxxx, linux-perf-users@xxxxxxxxxxxxxxx, linux-trace-kernel@xxxxxxxxxxxxxxx, linux-trace-devel@xxxxxxxxxxxxxxx, Ze Gao <zegao@xxxxxxxxxxx>
- In-reply-to: <20230801114545.GD79828@hirez.programming.kicks-ass.net>
- References: <20230801090124.8050-1-zegao@tencent.com> <20230801090124.8050-4-zegao@tencent.com> <20230801114545.GD79828@hirez.programming.kicks-ass.net>
Sorry that I don't get this one, did you mean kernel subsystems like
bpf or third party modules? Honestly I don't know how it works here
for userspace to consume the raw tracepoint without looking at
tracefs.
Regards,
Ze
On Tue, Aug 1, 2023 at 7:46 PM Peter Zijlstra <peterz@xxxxxxxxxxxxx> wrote:
>
> On Tue, Aug 01, 2023 at 05:01:21PM +0800, Ze Gao wrote:
> > @@ -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.
[Index of Archives]
[Linux USB Development]
[Linux USB Development]
[Linux Audio Users]
[Yosemite Hiking]
[Linux Kernel]
[Linux SCSI]