Re: [PATCH v5 20/30] tools/lib/traceevent: Man pages get field value APIs

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

 



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

> +DESCRIPTION
> +-----------
> +These functions can be used to find a field and retrieve its value.
> +
> +The _tep_get_any_field_val()_ function searches in the _record_ for a field
> +with _name_, part of the _event_. If the field is found, its value is stored in
> +_val_. If there is an error and _err_ is not zero, then an error string is
> +written into _s_.
> +
> +The _tep_get_common_field_val()_ function does the same as
> +_tep_get_any_field_val()_, but searches only in the common fields. This works
> +for any event as all events include the common fields.
> +
> +The _tep_get_field_val()_ function does the same as _tep_get_any_field_val()_,
> +but searches only in the event specific fields.
> +
> +The _tep_get_field_raw()_ function searches in the _record_ for a field with
> +_name_, part of the _event_. If the field is found, a pointer to its raw data

"If the field is found, a pointer to where the field exists in the
 record's raw data is returned."

-- Steve

> +is returned. The size of the data is stored in _len_. If there is an error and
> +_err_ is not zero, then an error string is written into _s_.
> +



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

  Powered by Linux