]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
perf: Supply task information to sched_task()
authorKan Liang <kan.liang@linux.intel.com>
Fri, 14 Mar 2025 17:26:57 +0000 (10:26 -0700)
committerPeter Zijlstra <peterz@infradead.org>
Mon, 17 Mar 2025 10:23:37 +0000 (11:23 +0100)
commitd57e94f5b891925e4f2796266eba31edd5a01903
treeb29973bfd3b1725de8cdfea2d3540f374b2566d6
parent506e64e710ff9573fd2b86686528762b7901b5e4
perf: Supply task information to sched_task()

To save/restore LBR call stack data in system-wide mode, the task_struct
information is required.

Extend the parameters of sched_task() to supply task_struct information.

When schedule in, the LBR call stack data for new task will be restored.
When schedule out, the LBR call stack data for old task will be saved.
Only need to pass the required task_struct information.

Signed-off-by: Kan Liang <kan.liang@linux.intel.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lore.kernel.org/r/20250314172700.438923-4-kan.liang@linux.intel.com
arch/powerpc/perf/core-book3s.c
arch/s390/kernel/perf_pai_crypto.c
arch/s390/kernel/perf_pai_ext.c
arch/x86/events/amd/brs.c
arch/x86/events/amd/lbr.c
arch/x86/events/core.c
arch/x86/events/intel/core.c
arch/x86/events/intel/lbr.c
arch/x86/events/perf_event.h
include/linux/perf_event.h
kernel/events/core.c