aboutsummaryrefslogtreecommitdiffstats
path: root/rust/helpers/helpers.c
diff options
context:
space:
mode:
authorKajol Jain <[email protected]>2024-11-18 11:41:14 +0000
committerMichael Ellerman <[email protected]>2024-11-19 03:11:30 +0000
commitf26f9933e3e31b2117b804b6b8932388db88a131 (patch)
treecca45a6dd146b18e165bf36d208c10b8b0895748 /rust/helpers/helpers.c
parentpowerpc/kvm: Add vpa latency counters to kvm_vcpu_arch (diff)
downloadkernel-f26f9933e3e31b2117b804b6b8932388db88a131.tar.gz
kernel-f26f9933e3e31b2117b804b6b8932388db88a131.zip
powerpc/perf: Add per-task/process monitoring to vpa_pmu driver
Enhance the vpa_pmu driver with a feature to observe context switch latency event for both per-task (tid) and per-pid (pid) option. Couple of new helper functions are added to hide the abstraction of reading the context switch latency counter from kvm_vcpu_arch struct and these helper functions are defined in the "kvm/book3s_hv.c". "PERF_ATTACH_TASK" flag is used to decide whether to read the counter values from lppaca or kvm_vcpu_arch struct. Signed-off-by: Kajol Jain <[email protected]> Co-developed-by: Madhavan Srinivasan <[email protected]> Signed-off-by: Madhavan Srinivasan <[email protected]> Signed-off-by: Michael Ellerman <[email protected]> Link: https://patch.msgid.link/[email protected]
Diffstat (limited to 'rust/helpers/helpers.c')
0 files changed, 0 insertions, 0 deletions