Re: [PATCH v9.1 11/11] Documentation: tracing/probes: Add fprobe event tracing document

From: Google
Date: Tue May 09 2023 - 10:58:43 EST


On Fri, 5 May 2023 11:20:26 -0400
Steven Rostedt <rostedt@xxxxxxxxxxx> wrote:

> On Tue, 2 May 2023 11:18:56 +0900
> "Masami Hiramatsu (Google)" <mhiramat@xxxxxxxxxx> wrote:
>
> > + # cat events/fprobes/myprobe/format
> > + name: myprobe
> > + ID: 1313
> > + format:
> > + field:unsigned short common_type; offset:0; size:2; signed:0;
> > + field:unsigned char common_flags; offset:2; size:1; signed:0;
> > + field:unsigned char common_preempt_count; offset:3; size:1; signed:0;
> > + field:int common_pid; offset:4; size:4; signed:1;
> > +
> > + field:unsigned long __probe_ip; offset:8; size:8; signed:0;
> > + field:u64 count; offset:16; size:8; signed:0;
> > + field:u64 pos; offset:24; size:8; signed:0;
>
> git complained when I pulled this in because there above lines is:
>
> <space><tab>field...
>
> Where, the space should be removed.

Ah, OK. I just added a head space for each line... (hmm, checkpatch.pl may not check it?)

I'll fix it.

Thank you!

>
> -- Steve
>
> > +
> > + print fmt: "(%lx) count=%Lu pos=0x%Lx", REC->__probe_ip, REC->count, REC->pos


--
Masami Hiramatsu (Google) <mhiramat@xxxxxxxxxx>