Files
android_kernel_xiaomi_sm8450/include/linux
Song Liu fa28dcb82a bpf: Introduce helper bpf_get_task_stack()
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/<pid>/stack to a seq_file.

bpf_get_task_stack() uses stack_trace_save_tsk() instead of
get_perf_callchain() for kernel stack. The benefit of this choice is that
stack_trace_save_tsk() doesn't require changes in arch/. The downside of
using stack_trace_save_tsk() is that stack_trace_save_tsk() dumps the
stack trace to unsigned long array. For 32-bit systems, we need to
translate it to u64 array.

Signed-off-by: Song Liu <songliubraving@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Andrii Nakryiko <andriin@fb.com>
Link: https://lore.kernel.org/bpf/20200630062846.664389-3-songliubraving@fb.com
2020-07-01 08:23:19 -07:00
..
2020-05-17 21:10:28 -07:00
2020-05-09 16:15:13 -06:00
2020-05-24 20:48:11 +02:00
2020-05-19 09:40:29 -06:00
2020-04-10 15:36:21 -07:00
2020-05-13 08:44:35 -07:00
2020-03-09 11:12:19 +01:00
2020-05-04 11:19:58 -07:00
2020-03-06 11:06:15 +01:00
2020-06-09 09:39:13 -07:00
2020-05-28 07:59:45 -07:00
2020-05-28 18:07:11 +02:00
2020-04-30 12:54:01 -07:00
2020-05-18 10:30:21 +01:00
2020-06-02 15:15:46 +01:00
2020-05-08 18:18:11 +01:00
2020-05-08 00:12:42 +02:00
2020-05-28 10:31:09 +02:00
2020-03-06 11:56:59 +01:00
2020-04-07 10:43:38 -07:00
2020-06-10 19:14:18 -07:00
2020-03-21 16:00:24 +01:00
2020-05-09 13:57:12 +02:00
2020-04-02 09:35:27 -07:00
2020-05-15 13:51:28 -07:00
2020-05-09 13:57:12 +02:00
2020-03-21 16:00:24 +01:00
2020-02-21 10:31:18 +01:00
2020-03-21 16:00:24 +01:00
2020-05-17 14:10:07 -06:00
2020-05-14 16:44:24 +02:00
2020-05-14 16:44:25 +02:00
2020-04-28 11:05:44 +02:00
2020-06-24 11:21:03 -07:00
2020-05-04 09:16:37 -07:00
2020-02-21 11:22:15 -08:00
2020-05-29 14:52:53 +02:00
2020-03-23 17:01:47 +01:00
2020-04-01 12:06:26 -04:00
2020-04-17 06:05:30 -04:00