Lines Matching refs:key_field
2986 struct hist_field *key_field; in create_field_var_hist() local
3037 key_field = hist_data->fields[i]; in create_field_var_hist()
3040 strcat(cmd, key_field->field->name); in create_field_var_hist()
5221 struct hist_field *key_field, void *rec) in add_to_key() argument
5223 size_t size = key_field->size; in add_to_key()
5225 if (key_field->flags & HIST_FIELD_FL_STRING) { in add_to_key()
5228 field = key_field->field; in add_to_key()
5236 if (size > key_field->size - 1) in add_to_key()
5237 size = key_field->size - 1; in add_to_key()
5239 strncpy(compound_key + key_field->offset, (char *)key, size); in add_to_key()
5241 memcpy(compound_key + key_field->offset, key, size); in add_to_key()
5270 struct hist_field *key_field; in event_hist_trigger() local
5281 key_field = hist_data->fields[i]; in event_hist_trigger()
5283 if (key_field->flags & HIST_FIELD_FL_STACKTRACE) { in event_hist_trigger()
5285 if (key_field->field) { in event_hist_trigger()
5288 field_contents = hist_fn_call(key_field, elt, buffer, rbe, rec); in event_hist_trigger()
5298 field_contents = hist_fn_call(key_field, elt, buffer, rbe, rec); in event_hist_trigger()
5299 if (key_field->flags & HIST_FIELD_FL_STRING) { in event_hist_trigger()
5307 add_to_key(compound_key, key, key_field, rec); in event_hist_trigger()
5348 struct hist_field *key_field; in hist_trigger_print_key() local
5357 key_field = hist_data->fields[i]; in hist_trigger_print_key()
5362 field_name = hist_field_name(key_field, 0); in hist_trigger_print_key()
5364 if (key_field->flags & HIST_FIELD_FL_HEX) { in hist_trigger_print_key()
5365 uval = *(u64 *)(key + key_field->offset); in hist_trigger_print_key()
5367 } else if (key_field->flags & HIST_FIELD_FL_SYM) { in hist_trigger_print_key()
5368 uval = *(u64 *)(key + key_field->offset); in hist_trigger_print_key()
5371 } else if (key_field->flags & HIST_FIELD_FL_SYM_OFFSET) { in hist_trigger_print_key()
5372 uval = *(u64 *)(key + key_field->offset); in hist_trigger_print_key()
5375 } else if (key_field->flags & HIST_FIELD_FL_EXECNAME) { in hist_trigger_print_key()
5384 uval = *(u64 *)(key + key_field->offset); in hist_trigger_print_key()
5387 } else if (key_field->flags & HIST_FIELD_FL_SYSCALL) { in hist_trigger_print_key()
5390 uval = *(u64 *)(key + key_field->offset); in hist_trigger_print_key()
5397 } else if (key_field->flags & HIST_FIELD_FL_STACKTRACE) { in hist_trigger_print_key()
5398 if (key_field->field) in hist_trigger_print_key()
5399 seq_printf(m, "%s.stacktrace", key_field->field->name); in hist_trigger_print_key()
5403 key + key_field->offset, in hist_trigger_print_key()
5406 } else if (key_field->flags & HIST_FIELD_FL_LOG2) { in hist_trigger_print_key()
5408 *(u64 *)(key + key_field->offset)); in hist_trigger_print_key()
5409 } else if (key_field->flags & HIST_FIELD_FL_BUCKET) { in hist_trigger_print_key()
5410 unsigned long buckets = key_field->buckets; in hist_trigger_print_key()
5411 uval = *(u64 *)(key + key_field->offset); in hist_trigger_print_key()
5414 } else if (key_field->flags & HIST_FIELD_FL_STRING) { in hist_trigger_print_key()
5416 (char *)(key + key_field->offset)); in hist_trigger_print_key()
5418 uval = *(u64 *)(key + key_field->offset); in hist_trigger_print_key()
6212 struct hist_field *key_field, *key_field_test; in hist_trigger_match() local
6237 key_field = hist_data->fields[i]; in hist_trigger_match()
6240 if (key_field->flags != key_field_test->flags) in hist_trigger_match()
6242 if (!compatible_field(key_field->field, key_field_test->field)) in hist_trigger_match()
6244 if (key_field->offset != key_field_test->offset) in hist_trigger_match()
6246 if (key_field->size != key_field_test->size) in hist_trigger_match()
6248 if (key_field->is_signed != key_field_test->is_signed) in hist_trigger_match()
6250 if (!!key_field->var.name != !!key_field_test->var.name) in hist_trigger_match()
6252 if (key_field->var.name && in hist_trigger_match()
6253 strcmp(key_field->var.name, key_field_test->var.name) != 0) in hist_trigger_match()