[PATCH v5 3/3] powerpc: Document details on H_HTM hcall

2024-12-31 Thread Abhishek Dubey
Add documentation to 'papr_hcalls.rst' describing the input, output and return values of the H_HTM hcall as per the internal specification. v3 patch: https://lore.kernel.org/linuxppc-dev/20240828085223.42177-3-ma...@linux.ibm.com/ Signed-off-by: Abhishek Dubey Co-developed-by

[PATCH v5 2/3] powerpc/pseries: Export hardware trace macro dump via debugfs

2024-12-31 Thread Abhishek Dubey
ps://lore.kernel.org/linuxppc-dev/20240828085223.42177-2-ma...@linux.ibm.com/ Signed-off-by: Abhishek Dubey Co-developed-by: Madhavan Srinivasan Signed-off-by: Madhavan Srinivasan --- arch/powerpc/platforms/pseries/Kconfig | 9 ++ arch/powerpc/platforms/pseries/Makefile | 1 + arch/powerpc/

[PATCH v5 1/3] powerpc/pseries: Macros and wrapper functions for H_HTM call

2024-12-31 Thread Abhishek Dubey
Define macros and wrapper functions to handle H_HTM (Hardware Trace Macro) hypervisor call. H_HTM is new HCALL added to export data from Hardware Trace Macro (HTM) function. v3 patch: https://lore.kernel.org/linuxppc-dev/20240828085223.42177-1-ma...@linux.ibm.com/ Signed-off-by: Abhishek

[PATCH v4 RESEND] powerpc: Replace kretprobe code with rethook on powerpc

2024-08-30 Thread Abhishek Dubey
for powerpc once its upstream. Until then, we can have this implementation of rethook to serve current kretprobe usecases. Reviewed-by: Naveen Rao Signed-off-by: Abhishek Dubey --- arch/powerpc/Kconfig | 1 + arch/powerpc/kernel/Makefile | 1 + arch/po

[PATCH v4] powerpc: Replace kretprobe code with rethook on powerpc

2024-08-05 Thread Abhishek Dubey
for powerpc once its upstream. Until then, we can have this implementation of rethook to serve current kretprobe usecases. Signed-off-by: Abhishek Dubey --- arch/powerpc/Kconfig | 1 + arch/powerpc/kernel/Makefile | 1 + arch/powerpc/kernel/kprobes.c| 65 +--

[PATCH] perf report: Calling available function for stats printing

2024-06-28 Thread Abhishek Dubey
For printing dump_trace, just use existing stats_print() function. Signed-off-by: Abhishek Dubey --- tools/perf/builtin-report.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tools/perf/builtin-report.c b/tools/perf/builtin-report.c index 9718770facb5..6edc0d4ce6fb

[PATCH] Perf: Calling available function for stats printing

2024-06-27 Thread Abhishek Dubey
For printing dump_trace, just use existing stats_print() function. Signed-off-by: Abhishek Dubey --- tools/perf/builtin-report.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/tools/perf/builtin-report.c b/tools/perf/builtin-report.c index 69618fb0110b..8678eebc49e6

[PATCH v3] PowerPC: Replace kretprobe with rethook

2024-06-27 Thread Abhishek Dubey
ther archs: commit b57c2f124098 ("riscv: add riscv rethook implementation") commit 7b0a096436c2 ("LoongArch: Replace kretprobe with rethook") Signed-off-by: Abhishek Dubey --- Changes in v3: * Fixing return address moved to arch_rethook_fixup_return() * Addressed other minor

[PATCH v2] PowerPC: Replace kretprobe with rethook

2024-06-10 Thread Abhishek Dubey
ther archs: commit b57c2f124098 ("riscv: add riscv rethook implementation") commit 7b0a096436c2 ("LoongArch: Replace kretprobe with rethook") Signed-off-by: Abhishek Dubey --- arch/powerpc/Kconfig | 1 + arch/powerpc/kernel/Makefile | 1 + arch/po

[PATCH] Perf: Calling available function for stats printing

2024-05-16 Thread Abhishek Dubey
For printing dump_trace, use existing stats_print() function. Signed-off-by: Abhishek Dubey --- tools/perf/builtin-report.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/tools/perf/builtin-report.c b/tools/perf/builtin-report.c index dcd93ee5fc24..3cabd5b0bfec 100644

[PATCH] PowerPC: Replace kretprobe with rethook

2024-05-16 Thread Abhishek Dubey
ther archs: commit b57c2f124098 ("riscv: add riscv rethook implementation") commit 7b0a096436c2 ("LoongArch: Replace kretprobe with rethook") Signed-off-by: Abhishek Dubey --- arch/powerpc/Kconfig | 1 + arch/powerpc/kernel/Makefile | 1 + arch/po