Re: [PATCH v3 bpf-next 2/4] bpf: introduce helper bpf_get_task_stack()

2020-06-27 Thread Andrii Nakryiko
On Fri, Jun 26, 2020 at 5:29 PM Song Liu wrote: > > Introduce helper bpf_get_task_stack(), which dumps stack trace of given > task. This is different to bpf_get_stack(), which gets stack track of > current task. One potential use case of bpf_get_task_stack() is to call > it from bpf_iter__task and

[PATCH v3 bpf-next 2/4] bpf: introduce helper bpf_get_task_stack()

2020-06-26 Thread Song Liu
Introduce helper bpf_get_task_stack(), which dumps stack trace of given task. This is different to bpf_get_stack(), which gets stack track of current task. One potential use case of bpf_get_task_stack() is to call it from bpf_iter__task and dump all /proc//stack to a seq_file. bpf_get_task_stack()