Re: [PATCH v5 21/30] tools/lib/traceevent: Man pages for print field APIs

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

 



On Fri, 12 Apr 2019 16:38:02 +0300
Tzvetomir Stoyanov <tstoyanov@xxxxxxxxxx> wrote:

> +DESCRIPTION
> +-----------
> +These functions print recorded field's data, according to the field's type.
> +
> +The _tep_print_field()_ function extracts from the recorded raw _data_ value of
> +the _field_ and prints it into _s_, according to the field type.
> +
> +The _tep_print_fields()_ prints recorded values of all _event_'s fields. It
> +iterates all fileds of the _event_, and calls _tep_print_field()_ for each of
> +them.

Probably should state that tep_print_fields() prints each field name
followed by the record's field value according to the field's type.

 "field1_name=field1_value field2_name=field2_value ..."

-- Steve

> +
> +The _tep_print_num_field()_ function prints a numeric field with given format
> +string. A search is performed in the _event_ for a field with _name_. If such
> +field is found, its value is extracted from the _record_ and is printed in the
> +_s_, according to the given format string _fmt_. If the argument _err_ is
> +non-zero, and an error occures - it is printed in the _s_.
> +
> +The _tep_print_func_field()_ function prints a function field with given format
> +string.  A search is performed in the _event_ for a field with _name_. If such
> +field is found, its value is extracted from the _record_. The value is assumed
> +to be a function address, and a search is perform to find the name of this
> +function. The function name (if found) and its address are printed in the _s_,
> +according to the given format string _fmt_. If the argument _err_ is non-zero,
> +and an error occures - it is printed in _s_.
> +



[Index of Archives]     [Linux USB Development]     [Linux USB Development]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux