• Home
  • Raw
  • Download

Lines Matching refs:trace

214 			      struct perf_callchain_entry *trace, u64 flags)  in __bpf_get_stackid()  argument
224 if (trace->nr <= skip) in __bpf_get_stackid()
228 trace_nr = trace->nr - skip; in __bpf_get_stackid()
230 ips = trace->ip + skip; in __bpf_get_stackid()
289 struct perf_callchain_entry *trace; in BPF_CALL_3() local
300 trace = get_perf_callchain(regs, 0, kernel, user, max_depth, in BPF_CALL_3()
303 if (unlikely(!trace)) in BPF_CALL_3()
307 return __bpf_get_stackid(map, trace, flags); in BPF_CALL_3()
319 static __u64 count_kernel_ip(struct perf_callchain_entry *trace) in count_kernel_ip() argument
323 while (nr_kernel < trace->nr) { in count_kernel_ip()
324 if (trace->ip[nr_kernel] == PERF_CONTEXT_USER) in count_kernel_ip()
335 struct perf_callchain_entry *trace; in BPF_CALL_3() local
352 trace = ctx->data->callchain; in BPF_CALL_3()
353 if (unlikely(!trace)) in BPF_CALL_3()
356 nr_kernel = count_kernel_ip(trace); in BPF_CALL_3()
359 __u64 nr = trace->nr; in BPF_CALL_3()
361 trace->nr = nr_kernel; in BPF_CALL_3()
362 ret = __bpf_get_stackid(map, trace, flags); in BPF_CALL_3()
365 trace->nr = nr; in BPF_CALL_3()
374 ret = __bpf_get_stackid(map, trace, flags); in BPF_CALL_3()
397 struct perf_callchain_entry *trace; in __bpf_get_stack() local
431 trace = trace_in; in __bpf_get_stack()
433 trace = get_callchain_entry_for_task(task, max_depth); in __bpf_get_stack()
435 trace = get_perf_callchain(regs, 0, kernel, user, max_depth, in __bpf_get_stack()
437 if (unlikely(!trace)) in __bpf_get_stack()
440 if (trace->nr < skip) in __bpf_get_stack()
443 trace_nr = trace->nr - skip; in __bpf_get_stack()
447 ips = trace->ip + skip; in __bpf_get_stack()
513 struct perf_callchain_entry *trace; in BPF_CALL_4() local
529 trace = ctx->data->callchain; in BPF_CALL_4()
530 if (unlikely(!trace)) in BPF_CALL_4()
533 nr_kernel = count_kernel_ip(trace); in BPF_CALL_4()
536 __u64 nr = trace->nr; in BPF_CALL_4()
538 trace->nr = nr_kernel; in BPF_CALL_4()
539 err = __bpf_get_stack(regs, NULL, trace, buf, size, flags); in BPF_CALL_4()
542 trace->nr = nr; in BPF_CALL_4()
551 err = __bpf_get_stack(regs, NULL, trace, buf, size, flags); in BPF_CALL_4()