Re: [PATCH v5 bpf-next 0/4] bpf: introduce bpf_get_task_stack()

2020-07-01 Thread Alexei Starovoitov
On Mon, Jun 29, 2020 at 11:28 PM Song Liu wrote: > > This set introduces a new helper bpf_get_task_stack(). The primary use case > is to dump all /proc/*/stack to seq_file via bpf_iter__task. > > A few different approaches have been explored and compared: > > 1. A simple wrapper around stack_tra

[PATCH v5 bpf-next 0/4] bpf: introduce bpf_get_task_stack()

2020-06-29 Thread Song Liu
This set introduces a new helper bpf_get_task_stack(). The primary use case is to dump all /proc/*/stack to seq_file via bpf_iter__task. A few different approaches have been explored and compared: 1. A simple wrapper around stack_trace_save_tsk(), as v1 [1]. This approach introduces new s