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: Steven Rostedt <rostedt@xxxxxxxxxxx>
- Date: Mon, 22 Nov 2021 22:39:09 -0500
- Cc: Beau Belgrave <beaub@xxxxxxxxxxxxxxxxxxx>, linux-trace-devel@xxxxxxxxxxxxxxx, Tzvetomir Stoyanov <tz.stoyanov@xxxxxxxxx>
- In-reply-to: <163757381684.511392.14804088833440960833.stgit@devnote2>
- References: <163757380763.511392.6830680420693577369.stgit@devnote2> <163757381684.511392.14804088833440960833.stgit@devnote2>
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;
-- Steve
> }
>
[Index of Archives]
[Linux USB Development]
[Linux USB Development]
[Linux Audio Users]
[Yosemite Hiking]
[Linux Kernel]
[Linux SCSI]