Lines Matching refs:max_depth
174 get_callchain_entry_for_task(struct task_struct *task, u32 max_depth) in get_callchain_entry_for_task() argument
186 max_depth, 0); in get_callchain_entry_for_task()
283 u32 max_depth = map->value_size / stack_map_data_size(map); in BPF_CALL_3() local
293 max_depth += skip; in BPF_CALL_3()
294 if (max_depth > sysctl_perf_event_max_stack) in BPF_CALL_3()
295 max_depth = sysctl_perf_event_max_stack; in BPF_CALL_3()
297 trace = get_perf_callchain(regs, 0, kernel, user, max_depth, in BPF_CALL_3()
389 u32 trace_nr, copy_len, elem_size, num_elem, max_depth; in __bpf_get_stack() local
423 max_depth = num_elem + skip; in __bpf_get_stack()
424 if (sysctl_perf_event_max_stack < max_depth) in __bpf_get_stack()
425 max_depth = sysctl_perf_event_max_stack; in __bpf_get_stack()
430 trace = get_callchain_entry_for_task(task, max_depth); in __bpf_get_stack()
432 trace = get_perf_callchain(regs, 0, kernel, user, max_depth, in __bpf_get_stack()