Re: [PATCH v2] libtraceevent: Add __rel_loc relative location attribute support

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 24 Nov 2021 18:07:08 -0500
Steven Rostedt <rostedt@xxxxxxxxxxx> wrote:

> On Tue, 23 Nov 2021 22:36:18 +0900
> Masami Hiramatsu <mhiramat@xxxxxxxxxx> wrote:
> 
> > +++ b/src/event-parse.h
> > @@ -125,6 +125,7 @@ enum tep_format_flags {
> >  	TEP_FIELD_IS_LONG	= 32,
> >  	TEP_FIELD_IS_FLAG	= 64,
> >  	TEP_FIELD_IS_SYMBOLIC	= 128,
> > +	TEP_FIELD_IS_RELATIVE	= 256,
> >  };
> >  
> >  struct tep_format_field {
> > @@ -153,12 +154,12 @@ struct tep_print_arg_atom {
> >  
> >  struct tep_print_arg_string {
> >  	char			*string;
> > -	int			offset;
> > +	struct tep_format_field	*field;
> >  };
> >  
> >  struct tep_print_arg_bitmask {
> >  	char			*bitmask;
> > -	int			offset;
> > +	struct tep_format_field	*field;
> >  };
> >  
> 
> We need to be careful about modifying content in event-parse.h. Because
> this is exposed outside he library.

Oh, I thought this is an internal header, because it is under src/ directory.
However, indeed "TEP_FIELD_IS_*" referred from perf-tools, so this might be
need to be exposed.

> 
> Although, I don't think this should be an issue.
> 
> We probably need to move some content out of that file if it isn't used in
> any of the exposed APIs :-/
> 
> And since both libtracefs and trace-cmd do not reference any of the
> tep_print_arg* fields, we probably should remove them before somebody does.

Yes, tep_print_arg seems to be used only in the event-parse.c.

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]

  Powered by Linux