Home
last modified time | relevance | path

Searched refs:rec (Results 1 – 14 of 14) sorted by relevance

/kernel/trace/
Dftrace.c428 struct ftrace_profile *rec = v; in function_stat_next() local
431 pg = (struct ftrace_profile_page *)((unsigned long)rec & PAGE_MASK); in function_stat_next()
435 rec++; in function_stat_next()
437 if ((void *)rec >= (void *)&pg->records[pg->index]) { in function_stat_next()
441 rec = &pg->records[0]; in function_stat_next()
442 if (!rec->counter) in function_stat_next()
446 return rec; in function_stat_next()
506 struct ftrace_profile *rec = v; in function_stat_show() local
517 if (unlikely(rec->counter == 0)) { in function_stat_show()
523 avg = div64_ul(rec->time, rec->counter); in function_stat_show()
[all …]
Dtrace_syscalls.c557 struct syscall_trace_enter *rec) in perf_call_bpf_enter() argument
567 param.syscall_nr = rec->nr; in perf_call_bpf_enter()
569 param.args[i] = rec->args[i]; in perf_call_bpf_enter()
576 struct syscall_trace_enter *rec; in perf_syscall_enter() local
600 size = sizeof(unsigned long) * sys_data->nb_args + sizeof(*rec); in perf_syscall_enter()
604 rec = perf_trace_buf_alloc(size, NULL, &rctx); in perf_syscall_enter()
605 if (!rec) in perf_syscall_enter()
608 rec->nr = syscall_nr; in perf_syscall_enter()
610 memcpy(&rec->args, args, sizeof(unsigned long) * sys_data->nb_args); in perf_syscall_enter()
613 !perf_call_bpf_enter(sys_data->enter_event, regs, sys_data, rec)) || in perf_syscall_enter()
[all …]
Dtrace_eprobe.c316 static unsigned long get_event_field(struct fetch_insn *code, void *rec) in get_event_field() argument
322 addr = rec + field->offset; in get_event_field()
327 val = (unsigned long)(rec + (*(unsigned int *)addr & 0xffff)); in get_event_field()
371 static int get_eprobe_size(struct trace_probe *tp, void *rec) in get_eprobe_size() argument
386 val = get_event_field(code, rec); in get_eprobe_size()
417 process_fetch_insn(struct fetch_insn *code, void *rec, void *dest, in process_fetch_insn() argument
425 val = get_event_field(code, rec); in process_fetch_insn()
501 __eprobe_trace_func(struct eprobe_data *edata, void *rec) in __eprobe_trace_func() argument
517 dsize = get_eprobe_size(&edata->ep->tp, rec); in __eprobe_trace_func()
533 store_trace_args(&entry[1], &edata->ep->tp, rec, sizeof(*entry), dsize); in __eprobe_trace_func()
[all …]
Dtrace_events_trigger.c57 struct trace_buffer *buffer, void *rec, in event_triggers_call() argument
70 if (!rec) { in event_triggers_call()
71 data->ops->func(data, buffer, rec, event); in event_triggers_call()
75 if (filter && !filter_match_preds(filter, rec)) in event_triggers_call()
81 data->ops->func(data, buffer, rec, event); in event_triggers_call()
956 struct trace_buffer *buffer, void *rec, in traceon_trigger() argument
977 struct trace_buffer *buffer, void *rec, in traceon_count_trigger() argument
1004 struct trace_buffer *buffer, void *rec, in traceoff_trigger() argument
1025 struct trace_buffer *buffer, void *rec, in traceoff_count_trigger() argument
1134 struct trace_buffer *buffer, void *rec, in snapshot_trigger() argument
[all …]
Dtrace_probe_tmpl.h57 process_fetch_insn(struct fetch_insn *code, void *rec,
234 store_trace_args(void *data, struct trace_probe *tp, void *rec, in store_trace_args() argument
249 ret = process_fetch_insn(arg->code, rec, dl, base); in store_trace_args()
Dtrace_events_hist.c537 struct trace_buffer *buffer, void *rec,
786 struct trace_buffer *buffer, void *rec, in action_trace() argument
3021 void *rec, in __update_field_vars() argument
3035 var_val = val->fn(val, elt, buffer, rbe, rec); in __update_field_vars()
3055 void *rec) in update_field_vars() argument
3057 __update_field_vars(elt, buffer, rbe, rec, hist_data->field_vars, in update_field_vars()
3063 struct trace_buffer *buffer, void *rec, in save_track_data_vars() argument
3067 __update_field_vars(elt, buffer, rbe, rec, hist_data->save_vars, in save_track_data_vars()
3244 struct trace_buffer *buffer, void *rec, in save_track_data() argument
3249 data->track_data.save_data(hist_data, elt, buffer, rec, rbe, in save_track_data()
[all …]
Dtrace_events_inject.c17 trace_inject_entry(struct trace_event_file *file, void *rec, int len) in trace_inject_entry() argument
26 memcpy(entry, rec, len); in trace_inject_entry()
Dtrace_events_filter.c967 int filter_match_preds(struct event_filter *filter, void *rec) in filter_match_preds() argument
983 int match = pred->fn(pred, rec); in filter_match_preds()
2179 .rec = { .a = va, .b = vb, .c = vc, .d = vd, \
2189 struct trace_event_raw_ftrace_test_filter rec; member
2317 err = filter_match_preds(filter, &d->rec); in ftrace_test_event_filter()
Dtrace.h1317 extern int call_filter_check_discard(struct trace_event_call *call, void *rec,
1658 struct trace_buffer *buffer, void *rec,
Dtrace_uprobe.c217 process_fetch_insn(struct fetch_insn *code, void *rec, void *dest, in process_fetch_insn() argument
220 struct pt_regs *regs = rec; in process_fetch_insn()
Dtrace_kprobe.c1334 process_fetch_insn(struct fetch_insn *code, void *rec, void *dest, in process_fetch_insn() argument
1337 struct pt_regs *regs = rec; in process_fetch_insn()
Dtrace.c508 int call_filter_check_discard(struct trace_event_call *call, void *rec, in call_filter_check_discard() argument
513 !filter_match_preds(call->filter, rec)) { in call_filter_check_discard()
/kernel/bpf/
Dringbuf.c428 void *rec; in BPF_CALL_4() local
434 rec = __bpf_ringbuf_reserve(rb_map->rb, size); in BPF_CALL_4()
435 if (!rec) in BPF_CALL_4()
438 memcpy(rec, data, size); in BPF_CALL_4()
439 bpf_ringbuf_commit(rec, flags, false /* discard */); in BPF_CALL_4()
/kernel/events/
Dcore.c8728 } rec = { in perf_event_aux_event() local
8732 .size = sizeof(rec), in perf_event_aux_event()
8740 perf_event_header__init_id(&rec.header, &sample, event); in perf_event_aux_event()
8741 ret = perf_output_begin(&handle, &sample, event, rec.header.size); in perf_event_aux_event()
8746 perf_output_put(&handle, rec); in perf_event_aux_event()
9211 } rec; in perf_log_itrace_start() local
9221 rec.header.type = PERF_RECORD_ITRACE_START; in perf_log_itrace_start()
9222 rec.header.misc = 0; in perf_log_itrace_start()
9223 rec.header.size = sizeof(rec); in perf_log_itrace_start()
9224 rec.pid = perf_event_pid(event, current); in perf_log_itrace_start()
[all …]