Lines Matching refs:field
7 Search for a field in an event.
22 These functions search for a field with given name in an event. The field
23 returned can be used to find the field content from within a data record.
25 The _tep_find_common_field()_ function searches for a common field with _name_
28 The _tep_find_field()_ function searches for an event specific field with
31 The _tep_find_any_field()_ function searches for any field with _name_ in the
37 functions return a pointer to the found field, or NULL in case there is no field
48 struct tep_format_field *field;
56 field = tep_find_common_field(event, "common_pid");
57 if (field == NULL) {
58 /* Cannot find "common_pid" field in the event */
61 pid = tep_read_number(tep, record->data + field->offset,
62 field->size);
65 field = tep_find_field(event, "softexpires");
66 if (field == NULL) {
67 /* Cannot find "softexpires" event specific field in the event */
70 softexpires = tep_read_number(tep, record->data + field->offset,
71 field->size);
74 field = tep_find_any_field(event, "mode");
75 if (field == NULL) {
76 /* Cannot find "mode" field in the event */
80 mode = tep_read_number(tep, record->data + field->offset,
81 field->size);