Re: [PATCH] libtraceevent: Add __rel_loc relative location attribute support
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- Subject: Re: [PATCH] libtraceevent: Add __rel_loc relative location attribute support
- From: Masami Hiramatsu <mhiramat@xxxxxxxxxx>
- Date: Tue, 23 Nov 2021 21:05:43 +0900
- Cc: Beau Belgrave <beaub@xxxxxxxxxxxxxxxxxxx>, linux-trace-devel@xxxxxxxxxxxxxxx, Tzvetomir Stoyanov <tz.stoyanov@xxxxxxxxx>
- In-reply-to: <20211122223909.15f6fb50@rorschach.local.home>
- References: <163757380763.511392.6830680420693577369.stgit@devnote2> <163757381684.511392.14804088833440960833.stgit@devnote2> <20211122223909.15f6fb50@rorschach.local.home>
On Mon, 22 Nov 2021 22:39:09 -0500
Steven Rostedt <rostedt@xxxxxxxxxxx> wrote:
> On Mon, 22 Nov 2021 18:36:57 +0900
> Masami Hiramatsu <mhiramat@xxxxxxxxxx> wrote:
>
> > @@ -3886,6 +3900,8 @@ static inline void dynamic_offset_field(struct tep_handle *tep,
> > unsigned int *len)
> > {
> > dynamic_offset(tep, field->size, data + field->offset, offset, len);
> > + if (field->flags & TEP_FIELD_IS_RELATIVE)
> > + offset += field->offset + field->size;
>
> I think you want *offset += field->offset + field->size;
Oops, good catch! Yes, that's right.
BTW, are there any tool I can use for testing this library?
Thank you,
>
> -- Steve
>
> > }
> >
--
Masami Hiramatsu <mhiramat@xxxxxxxxxx>
[Index of Archives]
[Linux USB Development]
[Linux USB Development]
[Linux Audio Users]
[Yosemite Hiking]
[Linux Kernel]
[Linux SCSI]