[PATCH v2 0/8] powerpc/perf: Add json file metric support for the hv_24x7 socket/chip level events

2020-02-20 Thread Kajol Jain
ot; character in the metric expression to proper value and hv_24x7 json metric file for different Socket/chip resources. Patch set also enable Hz/hz prinitg for --metric-only option to print metric data for bus frequency. Changelog: v1 -> v2 - Rename hv-24x7 metric json file as nest_

[PATCH v2 1/8] powerpc/perf/hv-24x7: Fix inconsistent output values incase multiple hv-24x7 events run

2020-02-20 Thread Kajol Jain
MCS01_128B_RD_DISP_PORT01,chip=0/ 4.000645920 61 hv_24x7/PM_MCS01_128B_RD_DISP_PORT01,chip=1/ 4.284169997 22 hv_24x7/PM_MCS01_128B_RD_DISP_PORT01,chip=0/ Signed-off-by: Kajol Jain --- arch/powerpc/perf/hv-24x7.c | 2 +- 1 file changed, 1 insertion(+), 1 d

[PATCH v2 2/8] powerpc/hv-24x7: Add rtas call in hv-24x7 driver to get processor details

2020-02-20 Thread Kajol Jain
socket. Rtas_call with token "PROCESSOR_MODULE_INFO" is used to get these values. Sub-sequent patch exports these values via sysfs. Patch also make these parameters default to 1. Signed-off-by: Kajol Jain --- arch/powerpc/perf/hv-24x7.c | 72 ar

[PATCH v2 3/8] powerpc/hv-24x7: Add sysfs files inside hv-24x7 device to show processor details

2020-02-20 Thread Kajol Jain
To expose the system dependent parameter like total number of sockets and numbers of chips per socket, patch adds two sysfs files. "sockets" and "chips" are added to /sys/devices/hv_24x7/interface/ of the "hv_24x7" pmu. Signed-off-by: Kajol Jain --- ar

[PATCH v2 4/8] Documentation/ABI: Add ABI documentation for chips and sockets

2020-02-20 Thread Kajol Jain
Add documentation for the following sysfs files: /sys/devices/hv_24x7/interface/chips, /sys/devices/hv_24x7/interface/sockets Signed-off-by: Kajol Jain --- .../testing/sysfs-bus-event_source-devices-hv_24x7 | 14 ++ 1 file changed, 14 insertions(+) diff --git a/Documentation/ABI

[PATCH v2 5/8] powerpc/hv-24x7: Update post_mobility_fixup() to handle migration

2020-02-20 Thread Kajol Jain
chips per sockets or number of sockets might change. So, it needs to be re-initialized otherwise, these values corresponds to previous system values. This patch adds a call to 'read_sys_info_pseries()' from 'post-mobility_fixup()' to re-init the physsockets and physchips value

[PATCH v2 6/8] perf/tools: Enhance JSON/metric infrastructure to handle "?"

2020-02-20 Thread Kajol Jain
Function 'arch_get_runtimeparam' implemented in header.c which extract number of sockets from sysfs file "sockets" under "/sys/devices/hv_24x7/interface/". Signed-off-by: Kajol Jain --- tools/perf/arch/powerpc/util/header.c | 40 + tools/perf/util/expr.h

[PATCH v2 7/8] tools/perf: Enable Hz/hz prinitg for --metric-only option

2020-02-20 Thread Kajol Jain
Commit 54b5091606c18 ("perf stat: Implement --metric-only mode") added function 'valid_only_metric()' which drops "Hz" or "hz", if it is part of "ScaleUnit". This patch enable it since hv_24x7 supports couple of frequency events. Signed-off-by: K

[PATCH v2 8/8] perf/tools/pmu-events/powerpc: Add hv_24x7 socket/chip level metric events

2020-02-20 Thread Kajol Jain
stat --metric-only -M Memory_RD_BW_Chip -C 0 -I 1000 sleep 1 time MB Memory_RD_BW_Chip_0 MB Memory_RD_BW_Chip_1 MB 1.000192635 0.4 0.0 1.001695883 0.0 0.0 Signed-off-by: Kajol Jain --- .../arch

[PATCH] powerpc/perf: Add functionality to check PERF_EVENTS config option

2019-10-01 Thread Kajol Jain
file creation with CONFIG_PERF_EVENTS options. Tested this patch with enable/disable CONFIG_PERF_EVENTS option in powernv and pseries machines. Also did compilation testing with book3s_32.config. Signed-off-by: Kajol Jain --- arch/powerpc/kernel/sysfs.c | 21 - 1 file changed

[PATCH v2] powerpc/kernel/sysfs: Add PERF_EVENT config option check to PMU SPRs

2019-10-03 Thread Kajol Jain
file creation with CONFIG_PERF_EVENTS options. Tested this patch with enable/disable CONFIG_PERF_EVENTS option in powernv and pseries machines. Also did compilation testing with book3s_32.config. Reviewed-by: Madhavan Srinivasan Signed-off-by: Kajol Jain --- arch/powerpc/kernel/sysfs.c | 21

[PATCH 1/2] powerpc/hv-gpci: Add return value check in affinity_domain_via_partition_show function

2023-11-16 Thread Kajol Jain
nity domain via partition information") Reported-by: Disha Goel Signed-off-by: Kajol Jain --- arch/powerpc/perf/hv-gpci.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/powerpc/perf/hv-gpci.c b/arch/powerpc/perf/hv-gpci.c index 39dbe6b348df..27f18119fda1 100644 --- a/arch/powerpc/

[PATCH 2/2] powerpc/hv-gpxi: Fix access permission of hv-gpci interface files

2023-11-16 Thread Kajol Jain
Fix access permission of the hv-gpci topology information interface files from 0444 to 0400 (admin read only). Fixes: 71f1c39647d8 ("powerpc/hv_gpci: Add sysfs file inside hv_gpci device to show processor bus topology information") Reported-by: Disha Goel Signed-off-by: Kajol Jain

[PATCH v2 00/10] Add sysfs interface files to hv_gpci device to expose system information

2023-07-10 Thread Kajol Jain
quest value in hv-gpci.c file. -> Move the macros for interface attribute array index to hv-gpci.c, as these macros currently only used in hv-gpci.c file Kajol Jain (10): powerpc/hv_gpci: Add sysfs file inside hv_gpci device to show processor bus topology information docs: ABI: sys

[PATCH v2 01/10] powerpc/hv_gpci: Add sysfs file inside hv_gpci device to show processor bus topology information

2023-07-10 Thread Kajol Jain
v-gpci.c file, which points to the index of NULL placefolder, for processor_bus_topology attribute. Signed-off-by: Kajol Jain --- arch/powerpc/perf/hv-gpci.c | 184 +++- 1 file changed, 182 insertions(+), 2 deletions(-) diff --git a/arch/powerpc/perf/hv-gp

[PATCH v2 02/10] docs: ABI: sysfs-bus-event_source-devices-hv_gpci: Document processor_bus_topology sysfs interface file

2023-07-10 Thread Kajol Jain
Add details of the new hv-gpci interface file called "processor_bus_topology" in the ABI documentation. Signed-off-by: Kajol Jain --- .../sysfs-bus-event_source-devices-hv_gpci| 32 +++ 1 file changed, 32 insertions(+) diff --git a/Documentation/ABI/testing

[PATCH v2 03/10] powerpc/hv_gpci: Add sysfs file inside hv_gpci device to show processor config information

2023-07-10 Thread Kajol Jain
which points to index of NULL attribute in interface_attrs array. Signed-off-by: Kajol Jain --- arch/powerpc/perf/hv-gpci.c | 168 1 file changed, 153 insertions(+), 15 deletions(-) diff --git a/arch/powerpc/perf/hv-gpci.c b/arch/powerpc/perf/hv-gpci.c index 225

[PATCH v2 04/10] docs: ABI: sysfs-bus-event_source-devices-hv_gpci: Document processor_config sysfs interface file

2023-07-10 Thread Kajol Jain
Add details of the new hv-gpci interface file called "processor_config" in the ABI documentation. Signed-off-by: Kajol Jain --- .../sysfs-bus-event_source-devices-hv_gpci| 32 +++ 1 file changed, 32 insertions(+) diff --git a/Documentation/ABI/testing/sysfs-bus-ev

[PATCH v2 05/10] powerpc/hv_gpci: Add sysfs file inside hv_gpci device to show affinity domain via virtual processor information

2023-07-10 Thread Kajol Jain
ints to the index of NULL placeholder, for affinity_domain_via_virtual_processor attribute in interface_attrs array. Also updated the value of INTERFACE_NULL_ATTR macro in hv-gpci.c file. Signed-off-by: Kajol Jain --- arch/powerpc/perf/hv-gpci.c | 86 -

[PATCH v2 06/10] docs: ABI: sysfs-bus-event_source-devices-hv_gpci: Document affinity_domain_via_virtual_processor sysfs interface file

2023-07-10 Thread Kajol Jain
Add details of the new hv-gpci interface file called "affinity_domain_via_virtual_processor" in the ABI documentation. Signed-off-by: Kajol Jain --- .../sysfs-bus-event_source-devices-hv_gpci| 32 +++ 1 file changed, 32 insertions(+) diff --git a/Documentation/A

[PATCH v2 07/10] powerpc/hv_gpci: Add sysfs file inside hv_gpci device to show affinity domain via domain information

2023-07-10 Thread Kajol Jain
sfs file is only available for power10 and above platforms. Add a macro called INTERFACE_AFFINITY_DOMAIN_VIA_DOM_ATTR, which points to the index of NULL placeholder, for affinity_domain_via_domain attribute in interface_attrs array. Also updated the value of INTERFACE_NULL_ATTR macro in hv-gpci.c fi

[PATCH v2 08/10] docs: ABI: sysfs-bus-event_source-devices-hv_gpci: Document affinity_domain_via_domain sysfs interface file

2023-07-10 Thread Kajol Jain
Add details of the new hv-gpci interface file called "affinity_domain_via_domain" in the ABI documentation. Signed-off-by: Kajol Jain --- .../sysfs-bus-event_source-devices-hv_gpci| 32 +++ 1 file changed, 32 insertions(+) diff --git a/Documentation/ABI/testing

[PATCH v2 09/10] powerpc/hv_gpci: Add sysfs file inside hv_gpci device to show affinity domain via partition information

2023-07-10 Thread Kajol Jain
ts to the index of NULL placeholder, for affinity_domain_via_partition attribute in interface_attrs array. Also updated the value of INTERFACE_NULL_ATTR macro in hv-gpci.c file. Signed-off-by: Kajol Jain --- arch/powerpc/perf/hv-gpci.c | 160 +++- 1 file changed, 159 inserti

[PATCH v2 10/10] docs: ABI: sysfs-bus-event_source-devices-hv_gpci: Document affinity_domain_via_partition sysfs interface file

2023-07-10 Thread Kajol Jain
Add details of the new hv-gpci interface file called "affinity_domain_via_partition" in the ABI documentation. Signed-off-by: Kajol Jain --- .../sysfs-bus-event_source-devices-hv_gpci| 32 +++ 1 file changed, 32 insertions(+) diff --git a/Documentation/ABI/testing

[PATCH v3 00/10] Add sysfs interface files to hv_gpci device to expose system information

2023-07-18 Thread Kajol Jain
sted by Michael Ellerman. -> Add new enum and sysinfo_counter_request array to get required counter request value in hv-gpci.c file. -> Move the macros for interface attribute array index to hv-gpci.c, as these macros currently only used in hv-gpci.c file. Kajol Jain (10): powerpc/hv_gpci: Add sysfs f

[PATCH v3 00/10] Add sysfs interface files to hv_gpci device to expose system information

2023-07-18 Thread Kajol Jain
sted by Michael Ellerman. -> Add new enum and sysinfo_counter_request array to get required counter request value in hv-gpci.c file. -> Move the macros for interface attribute array index to hv-gpci.c, as these macros currently only used in hv-gpci.c file. Kajol Jain (10): powerpc/hv_gpci: Add sysfs f

[PATCH v3 01/10] powerpc/hv_gpci: Add sysfs file inside hv_gpci device to show processor bus topology information

2023-07-18 Thread Kajol Jain
v-gpci.c file, which points to the index of NULL placefolder, for processor_bus_topology attribute. Signed-off-by: Kajol Jain --- arch/powerpc/perf/hv-gpci.c | 184 +++- 1 file changed, 182 insertions(+), 2 deletions(-) diff --git a/arch/powerpc/perf/hv-gp

[PATCH v3 02/10] docs: ABI: sysfs-bus-event_source-devices-hv_gpci: Document processor_bus_topology sysfs interface file

2023-07-18 Thread Kajol Jain
Add details of the new hv-gpci interface file called "processor_bus_topology" in the ABI documentation. Signed-off-by: Kajol Jain --- .../sysfs-bus-event_source-devices-hv_gpci| 32 +++ 1 file changed, 32 insertions(+) diff --git a/Documentation/ABI/testing

[PATCH v3 03/10] powerpc/hv_gpci: Add sysfs file inside hv_gpci device to show processor config information

2023-07-18 Thread Kajol Jain
which points to index of NULL attribute in interface_attrs array. Signed-off-by: Kajol Jain --- arch/powerpc/perf/hv-gpci.c | 168 1 file changed, 153 insertions(+), 15 deletions(-) diff --git a/arch/powerpc/perf/hv-gpci.c b/arch/powerpc/perf/hv-gpci.c index 225

[PATCH v3 04/10] docs: ABI: sysfs-bus-event_source-devices-hv_gpci: Document processor_config sysfs interface file

2023-07-18 Thread Kajol Jain
Add details of the new hv-gpci interface file called "processor_config" in the ABI documentation. Signed-off-by: Kajol Jain --- .../sysfs-bus-event_source-devices-hv_gpci| 32 +++ 1 file changed, 32 insertions(+) diff --git a/Documentation/ABI/testing/sysfs-bus-ev

[PATCH v3 05/10] powerpc/hv_gpci: Add sysfs file inside hv_gpci device to show affinity domain via virtual processor information

2023-07-18 Thread Kajol Jain
ints to the index of NULL placeholder, for affinity_domain_via_virtual_processor attribute in interface_attrs array. Also updated the value of INTERFACE_NULL_ATTR macro in hv-gpci.c file. Signed-off-by: Kajol Jain --- arch/powerpc/perf/hv-gpci.c | 86 -

[PATCH v3 06/10] docs: ABI: sysfs-bus-event_source-devices-hv_gpci: Document affinity_domain_via_virtual_processor sysfs interface file

2023-07-18 Thread Kajol Jain
Add details of the new hv-gpci interface file called "affinity_domain_via_virtual_processor" in the ABI documentation. Signed-off-by: Kajol Jain --- .../sysfs-bus-event_source-devices-hv_gpci| 32 +++ 1 file changed, 32 insertions(+) diff --git a/Documentation/A

[PATCH v3 07/10] powerpc/hv_gpci: Add sysfs file inside hv_gpci device to show affinity domain via domain information

2023-07-18 Thread Kajol Jain
sfs file is only available for power10 and above platforms. Add a macro called INTERFACE_AFFINITY_DOMAIN_VIA_DOM_ATTR, which points to the index of NULL placeholder, for affinity_domain_via_domain attribute in interface_attrs array. Also updated the value of INTERFACE_NULL_ATTR macro in hv-gpci.c fi

[PATCH v3 08/10] docs: ABI: sysfs-bus-event_source-devices-hv_gpci: Document affinity_domain_via_domain sysfs interface file

2023-07-18 Thread Kajol Jain
Add details of the new hv-gpci interface file called "affinity_domain_via_domain" in the ABI documentation. Signed-off-by: Kajol Jain --- .../sysfs-bus-event_source-devices-hv_gpci| 32 +++ 1 file changed, 32 insertions(+) diff --git a/Documentation/ABI/testing

[PATCH v3 09/10] powerpc/hv_gpci: Add sysfs file inside hv_gpci device to show affinity domain via partition information

2023-07-18 Thread Kajol Jain
ts to the index of NULL placeholder, for affinity_domain_via_partition attribute in interface_attrs array. Also updated the value of INTERFACE_NULL_ATTR macro in hv-gpci.c file. Signed-off-by: Kajol Jain --- arch/powerpc/perf/hv-gpci.c | 160 +++- 1 file changed, 159 inserti

[PATCH v3 10/10] docs: ABI: sysfs-bus-event_source-devices-hv_gpci: Document affinity_domain_via_partition sysfs interface file

2023-07-18 Thread Kajol Jain
Add details of the new hv-gpci interface file called "affinity_domain_via_partition" in the ABI documentation. Signed-off-by: Kajol Jain --- .../sysfs-bus-event_source-devices-hv_gpci| 32 +++ 1 file changed, 32 insertions(+) diff --git a/Documentation/ABI/testing

[PATCH v4 00/10] Add sysfs interface files to hv_gpci device to expose system information

2023-07-29 Thread Kajol Jain
ibute array index to hv-gpci.c, as these macros currently only used in hv-gpci.c file. Kajol Jain (10): powerpc/hv_gpci: Add sysfs file inside hv_gpci device to show processor bus topology information docs: ABI: sysfs-bus-event_source-devices-hv_gpci: Document processor_bus_topology s

[PATCH v4 08/10] docs: ABI: sysfs-bus-event_source-devices-hv_gpci: Document affinity_domain_via_domain sysfs interface file

2023-07-29 Thread Kajol Jain
Add details of the new hv-gpci interface file called "affinity_domain_via_domain" in the ABI documentation. Reviewed-by: Athira Rajeev Signed-off-by: Kajol Jain --- .../sysfs-bus-event_source-devices-hv_gpci| 32 +++ 1 file changed, 32 insertions(+) di

[PATCH v4 02/10] docs: ABI: sysfs-bus-event_source-devices-hv_gpci: Document processor_bus_topology sysfs interface file

2023-07-29 Thread Kajol Jain
Add details of the new hv-gpci interface file called "processor_bus_topology" in the ABI documentation. Reviewed-by: Athira Rajeev Signed-off-by: Kajol Jain --- .../sysfs-bus-event_source-devices-hv_gpci| 32 +++ 1 file changed, 32 insertions(+) diff --git a/Doc

[PATCH v4 09/10] powerpc/hv_gpci: Add sysfs file inside hv_gpci device to show affinity domain via partition information

2023-07-29 Thread Kajol Jain
ts to the index of NULL placeholder, for affinity_domain_via_partition attribute in interface_attrs array. Also updated the value of INTERFACE_NULL_ATTR macro in hv-gpci.c file. Reviewed-by: Athira Rajeev Signed-off-by: Kajol Jain --- arch/powerpc/perf/hv-gpci.c | 160 ++

[PATCH v4 10/10] docs: ABI: sysfs-bus-event_source-devices-hv_gpci: Document affinity_domain_via_partition sysfs interface file

2023-07-29 Thread Kajol Jain
Add details of the new hv-gpci interface file called "affinity_domain_via_partition" in the ABI documentation. Reviewed-by: Athira Rajeev Signed-off-by: Kajol Jain --- .../sysfs-bus-event_source-devices-hv_gpci| 32 +++ 1 file changed, 32 insertions(+) di

[PATCH v4 01/10] powerpc/hv_gpci: Add sysfs file inside hv_gpci device to show processor bus topology information

2023-07-29 Thread Kajol Jain
v-gpci.c file, which points to the index of NULL placefolder, for processor_bus_topology attribute. Reviewed-by: Athira Rajeev Signed-off-by: Kajol Jain --- arch/powerpc/perf/hv-gpci.c | 184 +++- 1 file changed, 182 insertions(+), 2 deletions(-) diff --git a/ar

[PATCH v4 03/10] powerpc/hv_gpci: Add sysfs file inside hv_gpci device to show processor config information

2023-07-29 Thread Kajol Jain
which points to index of NULL attribute in interface_attrs array. Reviewed-by: Athira Rajeev Signed-off-by: Kajol Jain --- arch/powerpc/perf/hv-gpci.c | 168 1 file changed, 153 insertions(+), 15 deletions(-) diff --git a/arch/powerpc/perf/hv-gpci.c b/arc

[PATCH v4 06/10] docs: ABI: sysfs-bus-event_source-devices-hv_gpci: Document affinity_domain_via_virtual_processor sysfs interface file

2023-07-29 Thread Kajol Jain
Add details of the new hv-gpci interface file called "affinity_domain_via_virtual_processor" in the ABI documentation. Reviewed-by: Athira Rajeev Signed-off-by: Kajol Jain --- .../sysfs-bus-event_source-devices-hv_gpci| 32 +++ 1 file changed, 32 insertions(+) di

[PATCH v4 04/10] docs: ABI: sysfs-bus-event_source-devices-hv_gpci: Document processor_config sysfs interface file

2023-07-29 Thread Kajol Jain
Add details of the new hv-gpci interface file called "processor_config" in the ABI documentation. Reviewed-by: Athira Rajeev Signed-off-by: Kajol Jain --- .../sysfs-bus-event_source-devices-hv_gpci| 32 +++ 1 file changed, 32 insertions(+) diff --git a/Documen

[PATCH v4 05/10] powerpc/hv_gpci: Add sysfs file inside hv_gpci device to show affinity domain via virtual processor information

2023-07-29 Thread Kajol Jain
ints to the index of NULL placeholder, for affinity_domain_via_virtual_processor attribute in interface_attrs array. Also updated the value of INTERFACE_NULL_ATTR macro in hv-gpci.c file. Reviewed-by: Athira Rajeev Signed-off-by: Kajol Jain --- arch/powerpc

[PATCH v4 07/10] powerpc/hv_gpci: Add sysfs file inside hv_gpci device to show affinity domain via domain information

2023-07-29 Thread Kajol Jain
e. Reviewed-by: Athira Rajeev Signed-off-by: Kajol Jain --- arch/powerpc/perf/hv-gpci.c | 80 - 1 file changed, 79 insertions(+), 1 deletion(-) diff --git a/arch/powerpc/perf/hv-gpci.c b/arch/powerpc/perf/hv-gpci.c index 68502cb18262..326b758df7c8 100644 ---

[PATCH 1/7] perf vendor events: Update the JSON/events descriptions for power10 platform

2023-08-14 Thread Kajol Jain
Update the description for some of the JSON/events for power10 platform. Fixes: 32daa5d7899e ("perf vendor events: Initial JSON/events list for power10 platform") Signed-off-by: Kajol Jain --- .../arch/powerpc/power10/cache.json | 4 +- .../arch/powerpc/power10/fro

[PATCH 2/7] perf vendor events: Drop some of the JSON/events for power10 platform

2023-08-14 Thread Kajol Jain
Drop some of the JSON/events for power10 platform due to counter data mismatch. Fixes: 32daa5d7899e ("perf vendor events: Initial JSON/events list for power10 platform") Signed-off-by: Kajol Jain --- .../arch/powerpc/power10/floating_point.json | 7 --- tools/perf/

[PATCH 3/7] perf vendor events: Drop STORES_PER_INST metric event for power10 platform

2023-08-14 Thread Kajol Jain
Drop STORES_PER_INST metric event for the power10 platform, as the metric expression of STORES_PER_INST metric event using dropped event PM_ST_FIN. Fixes: 3ca3af7d1f23 ("perf vendor events power10: Add metric events JSON file for power10 platform") Signed-off-by: Kajol Jain --- tool

[PATCH 5/7] perf vendor events: Update JSON/events for power10 platform

2023-08-14 Thread Kajol Jain
Update JSON/events for power10 platform with additional events. Signed-off-by: Kajol Jain --- .../arch/powerpc/power10/frontend.json| 25 + .../arch/powerpc/power10/marked.json | 30 .../arch/powerpc/power10/memory.json | 10

[PATCH 4/7] perf vendor events: Move JSON/events to appropriate files for power10 platform

2023-08-14 Thread Kajol Jain
Move some of the power10 JSON/events to appropriate files. Fixes: 32daa5d7899e ("perf vendor events: Initial JSON/events list for power10 platform") Signed-off-by: Kajol Jain --- .../arch/powerpc/power10/cache.json | 45 .../arch/powerpc/power10/floating_point.j

[PATCH 6/7] perf vendor events: Update metric event names for power10 platform

2023-08-14 Thread Kajol Jain
Update metric event name for some of the JSON/metric events for power10 platform. Fixes: 3ca3af7d1f23 ("perf vendor events power10: Add metric events JSON file for power10 platform") Signed-off-by: Kajol Jain --- .../arch/powerpc/power10/metrics.json | 50 +

[PATCH 7/7] perf vendor events: Update metric events for power10 platform

2023-08-14 Thread Kajol Jain
Update JSON/events for power10 platform with additional metrics. Signed-off-by: Kajol Jain --- .../arch/powerpc/power10/metrics.json | 33 +++ 1 file changed, 33 insertions(+) diff --git a/tools/perf/pmu-events/arch/powerpc/power10/metrics.json b/tools/perf/pmu-events

[PATCH] perf test: Skip perf bench breakpoint run if no breakpoints available

2023-08-23 Thread Kajol Jain
int thread Skipping perf bench breakpoint thread: No hardware support Reported-by: Disha Goel Signed-off-by: Kajol Jain --- tools/perf/bench/breakpoint.c | 24 +--- 1 file changed, 21 insertions(+), 3 deletions(-) diff --git a/tools/perf/bench/breakpoint.c b/tools/perf/bench/br

[PATCH 1/2] perf vendor events: Update JSON/events for power10 platform

2023-08-23 Thread Kajol Jain
Update JSON/Events list with data-source events for power10 platform. Signed-off-by: Kajol Jain --- .../arch/powerpc/power10/datasource.json | 1787 + .../arch/powerpc/power10/others.json | 10 - .../arch/powerpc/power10/translation.json |5 - 3 files

[PATCH 2/2] perf vendor events: Update metric events for power10 platform

2023-08-23 Thread Kajol Jain
Update JSON/events for power10 platform with additional metrics. Signed-off-by: Kajol Jain --- .../arch/powerpc/power10/metrics.json | 388 ++ 1 file changed, 388 insertions(+) diff --git a/tools/perf/pmu-events/arch/powerpc/power10/metrics.json b/tools/perf/pmu-events

[PATCH] powerpc/perf/hv-24x7: Update domain value check

2023-08-24 Thread Kajol Jain
Minor improvements") Reported-by: Krishan Gopal Sarawast Signed-off-by: Kajol Jain --- arch/powerpc/perf/hv-24x7.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/perf/hv-24x7.c b/arch/powerpc/perf/hv-24x7.c index 317175791d23..644881cc1c00 100644 --- a/arch/powerpc/pe

[PATCH v2 1/3] perf vendor events: Update JSON/events for power10 platform

2023-09-05 Thread Kajol Jain
Update JSON/Events list with data-source events for power10 platform. Signed-off-by: Kajol Jain --- .../arch/powerpc/power10/datasource.json | 1282 + .../arch/powerpc/power10/others.json | 10 - .../arch/powerpc/power10/translation.json |5 - 3 files

[PATCH v2 2/3] perf vendor events: Update JSON/events for power10 platform

2023-09-05 Thread Kajol Jain
Update JSON/Events list with additional data-source events for power10 platform. Signed-off-by: Kajol Jain --- .../arch/powerpc/power10/datasource.json | 505 ++ 1 file changed, 505 insertions(+) diff --git a/tools/perf/pmu-events/arch/powerpc/power10/datasource.json b

[PATCH v2 3/3] perf vendor events: Update metric events for power10 platform

2023-09-05 Thread Kajol Jain
Update JSON/events for power10 platform with additional metrics. Signed-off-by: Kajol Jain --- .../arch/powerpc/power10/metrics.json | 388 ++ 1 file changed, 388 insertions(+) diff --git a/tools/perf/pmu-events/arch/powerpc/power10/metrics.json b/tools/perf/pmu-events

[PATCH 01/10] powerpc/hv_gpci: Add sysfs file inside hv_gpci device to show processor bus topology information

2023-06-09 Thread Kajol Jain
v-gpci.h file, which points to the index of NULL placefolder, for processor_bus_topology attribute. Signed-off-by: Kajol Jain --- arch/powerpc/perf/hv-gpci.c | 163 +++- arch/powerpc/perf/hv-gpci.h | 6 ++ 2 files changed, 167 insertions(+), 2 deletions(-) di

[PATCH 00/10] Add sysfs interface files to hv_gpci device to expose system information

2023-06-09 Thread Kajol Jain
Patches 2,4,6,8,10 adds details of the newly added hv_gpci interface files listed above in the ABI documentation. Kajol Jain (10): powerpc/hv_gpci: Add sysfs file inside hv_gpci device to show processor bus topology information docs: ABI: sysfs-bus-event_source-devices-hv_gpci: Document pro

[PATCH 02/10] docs: ABI: sysfs-bus-event_source-devices-hv_gpci: Document processor_bus_topology sysfs interface file

2023-06-09 Thread Kajol Jain
Add details of the new hv-gpci interface file called "processor_bus_topology" in the ABI documentation. Signed-off-by: Kajol Jain --- .../sysfs-bus-event_source-devices-hv_gpci| 29 +++ 1 file changed, 29 insertions(+) diff --git a/Documentation/ABI/testing

[PATCH 03/10] powerpc/hv_gpci: Add sysfs file inside hv_gpci device to show processor config information

2023-06-09 Thread Kajol Jain
ce_attrs array. Signed-off-by: Kajol Jain --- arch/powerpc/perf/hv-gpci.c | 110 +--- arch/powerpc/perf/hv-gpci.h | 5 +- 2 files changed, 107 insertions(+), 8 deletions(-) diff --git a/arch/powerpc/perf/hv-gpci.c b/arch/powerpc/perf/hv-gpci.c index bca247256

[PATCH 04/10] docs: ABI: sysfs-bus-event_source-devices-hv_gpci: Document processor_config sysfs interface file

2023-06-09 Thread Kajol Jain
Add details of the new hv-gpci interface file called "processor_config" in the ABI documentation. Signed-off-by: Kajol Jain --- .../sysfs-bus-event_source-devices-hv_gpci| 15 +++ 1 file changed, 15 insertions(+) diff --git a/Documentation/ABI/testing/sysfs-bus-ev

[PATCH 05/10] powerpc/hv_gpci: Add sysfs file inside hv_gpci device to show affinity domain via virtual processor information

2023-06-09 Thread Kajol Jain
E_NULL_ATTR macro in hv-gpci.h file. Signed-off-by: Kajol Jain --- arch/powerpc/perf/hv-gpci.c | 84 + arch/powerpc/perf/hv-gpci.h | 4 +- 2 files changed, 87 insertions(+), 1 deletion(-) diff --git a/arch/powerpc/perf/hv-gpci.c b/arch/powerpc/per

[PATCH 06/10] docs: ABI: sysfs-bus-event_source-devices-hv_gpci: Document affinity_domain_via_virtual_processor sysfs interface file

2023-06-09 Thread Kajol Jain
Add details of the new hv-gpci interface file called "affinity_domain_via_virtual_processor" in the ABI documentation. Signed-off-by: Kajol Jain --- .../sysfs-bus-event_source-devices-hv_gpci| 15 +++ 1 file changed, 15 insertions(+) diff --git a/Documentation/A

[PATCH 07/10] powerpc/hv_gpci: Add sysfs file inside hv_gpci device to show affinity domain via domain information

2023-06-09 Thread Kajol Jain
r10 and above platforms. Add a macro called INTERFACE_AFFINITY_DOMAIN_VIA_DOM_ATTR, which points to the index of NULL placeholder, for affinity_domain_via_domain attribute in interface_attrs array. Also updated the value of INTERFACE_NULL_ATTR macro in hv-gpci.h file. Signed-off-by: Kajol Jain --

[PATCH 08/10] docs: ABI: sysfs-bus-event_source-devices-hv_gpci: Document affinity_domain_via_domain sysfs interface file

2023-06-09 Thread Kajol Jain
Add details of the new hv-gpci interface file called "affinity_domain_via_domain" in the ABI documentation. Signed-off-by: Kajol Jain --- .../sysfs-bus-event_source-devices-hv_gpci| 15 +++ 1 file changed, 15 insertions(+) diff --git a/Documentation/ABI/testing

[PATCH 09/10] powerpc/hv_gpci: Add sysfs file inside hv_gpci device to show affinity domain via partition information

2023-06-09 Thread Kajol Jain
finity_domain_via_partition attribute in interface_attrs array. Also updated the value of INTERFACE_NULL_ATTR macro in hv-gpci.h file. Signed-off-by: Kajol Jain --- arch/powerpc/perf/hv-gpci.c | 164 arch/powerpc/perf/hv-gpci.h | 4 +- 2 files changed, 167 inserti

[PATCH 10/10] docs: ABI: sysfs-bus-event_source-devices-hv_gpci: Document affinity_domain_via_partition sysfs interface file

2023-06-09 Thread Kajol Jain
Add details of the new hv-gpci interface file called "affinity_domain_via_partition" in the ABI documentation. Signed-off-by: Kajol Jain --- .../sysfs-bus-event_source-devices-hv_gpci| 15 +++ 1 file changed, 15 insertions(+) diff --git a/Documentation/ABI/testing

[PATCH] powerpc/hv-gpci: Fix hv_gpci event list

2022-09-20 Thread Kajol Jain
uot; macro to enable these events for platform firmware that supports counter_info_version 0x6 or below. Fixes: 97bf2640184f4 ("powerpc/perf/hv-gpci: add the remaining gpci requests") Signed-off-by: Kajol Jain --- arch/powerpc/perf/hv-gpci-requests.h | 4 arch/powerp

[PATCH] powerpc/perf: Fix hv-24x7 metric events for power10

2022-10-14 Thread Kajol Jain
Fixes: a3cbcadfdfc3 ("perf vendor events power10: Adds 24x7 nest metric events for power10 platform") Signed-off-by: Kajol Jain --- .../arch/powerpc/power10/nest_metrics.json| 72 +-- 1 file changed, 36 insertions(+), 36 deletions(-) diff --git a/tools/perf/p

[PATCH] perf test bpf: Skip test if kernel-debuginfo is not present

2022-10-28 Thread Kajol Jain
lter : 42.1: Basic BPF filtering : Ok 42.2: BPF pinning : Ok 42.3: BPF prologue generation : Skip (clang/debuginfo isn't installed or environment missing BPF support) Fixes: ba1fae431e74bb42 ("perf test: Add 'perf test BPF'") Signed-off-

[PATCH v2] powerpc/hv-gpci: Fix hv_gpci event list

2022-10-28 Thread Kajol Jain
uot; macro to enable these events for platform firmware that supports counter_info_version 0x6 or below. And assigning the hv_gpci event list based on output counter info version of underlying plaform. Fixes: 97bf2640184f ("powerpc/perf/hv-gpci: add the remaining gpci requests") Signed-o

[PATCH] powerpc/hv-gpci: Fix the hcall return value checks in single_gpci_request function

2024-01-31 Thread Kajol Jain
("powerpc/perf: Add support for the hv gpci (get performance counter info) interface") Reported-by: Akanksha J N Signed-off-by: Kajol Jain --- arch/powerpc/perf/hv-gpci.c | 29 + 1 file changed, 25 insertions(+), 4 deletions(-) diff --git a/arch/powerpc/perf

[PATCH v2] powerpc/hv-gpci: Fix the H_GET_PERF_COUNTER_INFO hcall return value checks

2024-02-29 Thread Kajol Jain
e_in_timebase_cycles,phys_processor_idx=0/ event. Fixes: 220a0c609ad1 ("powerpc/perf: Add support for the hv gpci (get performance counter info) interface") Reported-by: Akanksha J N Signed-off-by: Kajol Jain --- Changelog: v1 -> v2 - To make sure the hcall failure with H_PARAMETER is only be

[PATCH] powerpc/hv-24x7: Fix pvr check when setting interface version

2023-01-31 Thread Kajol Jain
Use PVR rather than oprofile field to determine CPU version") Reported-by: Sachin Sant Signed-off-by: Kajol Jain --- arch/powerpc/perf/hv-24x7.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/powerpc/perf/hv-24x7.c b/arch/powerpc/perf/hv-24x7.c index 33c23225fd54..

[PATCH] tools/perf/tests: Add system wide check for perf bench workload in all metric test

2023-02-02 Thread Kajol Jain
m wide check for perf bench workload. Result with the patch changes in powerpc: 92: perf all metrics test : Ok Signed-off-by: Kajol Jain --- tools/perf/tests/shell/stat_all_metrics.sh | 7 +++ 1 file changed, 7 insertions(+) diff --git a/tools/perf/tests/shell/stat_all_metrics.sh b/t

[PATCH v2] tools/perf/tests: Change true workload to sleep workload in all metric test for system wide check

2023-02-15 Thread Kajol Jain
hanges in powerpc: 98: perf all metrics test : Ok Reviewed-by: Athira Rajeev Tested-by: Disha Goel Suggested-by: Ian Rogers Signed-off-by: Kajol Jain --- Changelog: v1->v2: - Addressed review comments from Ian, by changing true workload to sleep workload in "perf all metric test&qu

[PATCH 1/2] selftests/powerpc/pmu: Fix sample field check in the mmcra_thresh_marked_sample_test

2023-03-01 Thread Kajol Jain
ode is not passing valid sample field to EV_CODE_EXTRACT macro. Patch addresses this by fixing the input for EV_CODE_EXTRACT. Fixes: 29cf373c5766 ("selftests/powerpc/pmu: Add interface test for mmcra register fields") Reported-by: David Binderman Signed-off-by: Kajol Jain --- ..

[PATCH 2/2] selftests/powerpc/pmu: fix including of utils.h when event.h is included

2023-03-01 Thread Kajol Jain
From: Madhavan Srinivasan event.h header already includes utlis.h. Avoid including the same explicitly in the code when event.h included. Signed-off-by: Madhavan Srinivasan --- tools/testing/selftests/powerpc/pmu/count_instructions.c | 1 - tools/testing/selftests/powerpc/pmu/count_stc

[PATCH] perf vendor events power9: Remove UTF-8 characters from json files

2023-03-28 Thread Kajol Jain
l.org/ Signed-off-by: Kajol Jain --- tools/perf/pmu-events/arch/powerpc/power9/other.json| 4 ++-- tools/perf/pmu-events/arch/powerpc/power9/pipeline.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/perf/pmu-events/arch/powerpc/power9/other.json b/tools/perf/pmu

[PATCH 1/5] powerpc/hv-gpci: Fix starting index value

2020-10-03 Thread Kajol Jain
8423f ("powerpc/perf/{hv-gpci, hv-common}: generate requests with counters annotated") Signed-off-by: Kajol Jain --- arch/powerpc/perf/hv-gpci-requests.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/powerpc/perf/hv-gpci-requests.h b/arch/powerpc/perf/h

[PATCH 2/5] Documentation/ABI: Add ABI documentation for hv-24x7 format

2020-10-03 Thread Kajol Jain
This patch adds ABI documentation for hv-24x7 format. Signed-off-by: Kajol Jain --- .../sysfs-bus-event_source-devices-hv_24x7| 25 +++ 1 file changed, 25 insertions(+) diff --git a/Documentation/ABI/testing/sysfs-bus-event_source-devices-hv_24x7 b/Documentation/ABI

[PATCH 3/5] Documentation/ABI: Add ABI documentation for hv-gpci format

2020-10-03 Thread Kajol Jain
This patch adds ABI documentation for hv-gpci event format. Signed-off-by: Kajol Jain --- .../sysfs-bus-event_source-devices-hv_gpci| 31 +++ 1 file changed, 31 insertions(+) diff --git a/Documentation/ABI/testing/sysfs-bus-event_source-devices-hv_gpci b/Documentation/ABI

[PATCH 4/5] powerpc/perf/hv-gpci: Add cpu hotplug support

2020-10-03 Thread Kajol Jain
ollect the counter data. The offline function test and clear corresponding cpu in a cpumask and update cpumask to any other active cpu. Signed-off-by: Kajol Jain --- arch/powerpc/perf/hv-gpci.c | 46 + include/linux/cpuhotplug.h | 1 + 2 files changed, 47

[PATCH 5/5] powerpc/hv-gpci: Add sysfs files inside hv-gpci device to show cpumask

2020-10-03 Thread Kajol Jain
(will avoid "-C" option in the perf tool command line). It can also notify the user which is the current cpu used to retrieve the counter data. command:# cat /sys/devices/hv_gpci/cpumask 0 Signed-off-by: Kajol Jain --- .../sysfs-bus-event_source-devices-hv_gpci | 7 +++ ar

[PATCH] powerpc/perf: Add support for programming of Thresholding in P10

2020-10-14 Thread Kajol Jain
x. usage: command#: perf record -I --weight -d -e cpu/event=0x67340101EC,thresh_cmp=500/ ./ebizzy -S 2 -t 1 -s 4096 1826636 records/s real 2.00 s user 2.00 s sys 0.00 s [ perf record: Woken up 1 times to write data ] [ perf record: Captured and wrote 0.038 MB perf.data (61 samples) ]

[PATCH v3] powerpc/hv-gpci: Fix hv_gpci event list

2022-11-30 Thread Kajol Jain
RINFO_V6" macro to enable these events for platform firmware that supports counter_info_version 0x6 or below. And assigning the hv_gpci event list based on output counter info version of underlying plaform. Fixes: 97bf2640184f ("powerpc/perf/hv-gpci: add the remaining gpci requests&qu

[PATCH] powerpc/imc-pmu: Fix IMC PMU code of using mutex in IRQs disabled section

2023-01-05 Thread Kajol Jain
rq is disabled or not and incase irq is disabled, it will trigger the warning. Patch fix this issue by changing the mutex lock to spinlock. Fixes: 8f95faaac56c ("powerpc/powernv: Detect and create IMC device") Suggested-by: Michael Ellerman Signed-off-by: Kajol Jain --- arch/powerpc/inclu

[PATCH V3] powerpc/perf: Adds support for programming of Thresholding in P10

2021-02-09 Thread Kajol Jain
-t 1 -s 4096 1826636 records/s real 2.00 s user 2.00 s sys 0.00 s [ perf record: Woken up 1 times to write data ] [ perf record: Captured and wrote 0.038 MB perf.data (61 samples) ] Signed-off-by: Kajol Jain --- arch/powerpc/include/asm/perf_event_server.h | 5 +- arch/powerpc/perf/core-boo

[PATCH v7 1/4] drivers/nvdimm: Add nvdimm pmu structure

2022-02-25 Thread Kajol Jain
Sastry Signed-off-by: Kajol Jain --- Changelog: v6 -> v7 - Add Acked-by and Tested-by tag from Peter Zijlstra and Nageswara R Sastry. include/linux/nd.h | 20 1 file changed, 20 insertions(+) diff --git a/include/linux/nd.h b/include/linux/nd.h index 8a8c63edb

[PATCH v7 2/4] drivers/nvdimm: Add perf interface to expose nvdimm performance stats

2022-02-25 Thread Kajol Jain
: Nageswara R Sastry Signed-off-by: Kajol Jain [Declare pmu functions in nd.h file to resolve implicit-function-declaration warning and make hotplug function static as reported by kernel test robot] Link: https://lore.kernel.org/all/202202241242.zqzgkguy-...@intel.com/ Reported-by: kernel test robot

[PATCH v7 0/4] Add perf interface to expose nvdimm

2022-02-25 Thread Kajol Jain
l/2021/6/14/25 v1 -> v2 - Fix hotplug code by adding pmu migration call incase current designated cpu got offline. As pointed by Peter Zijlstra. - Removed the retun -1 part from cpu hotplug offline function. - Link to the patchset v1: https://lkml.org/lkml/2021/6/8/500 Kajol Jain (4):

[PATCH v7 3/4] powerpc/papr_scm: Add perf interface support

2022-02-25 Thread Kajol Jain
a R Sastry Signed-off-by: Kajol Jain [Add numa_map_to_online_node function call to get online node id] Reported-by: Nageswara R Sastry --- Changelog: Resend v6 -> v7 - Add function call to numa_map_to_online_node function inorder to get online numa node. As the node id returned by functio

[PATCH v7 4/4] docs: ABI: sysfs-bus-nvdimm: Document sysfs event format entries for nvdimm pmu

2022-02-25 Thread Kajol Jain
Details are added for the event, cpumask and format attributes in the ABI documentation. Acked-by: Peter Zijlstra (Intel) Tested-by: Nageswara R Sastry Signed-off-by: Kajol Jain --- Changelog: v6 -> v7 - Add Acked-by and Tested-by tag from Peter Zijlstra and Nageswara R Sas

[PATCH 1/2] drivers/nvdimm: Fix build failure when CONFIG_PERF_EVENTS is not set

2022-03-18 Thread Kajol Jain
e stats") (Commit id based on linux-next tree) Signed-off-by: Kajol Jain Link: https://lore.kernel.org/all/62317124.ybqfu33+s%2fwdvwgj%25...@intel.com/ Reported-by: kernel test robot --- drivers/nvdimm/Makefile | 2 +- include/linux/nd.h | 7 --- 2 files changed, 5 insertions(+), 4

[PATCH 2/2] powerpc/papr_scm: Fix build failure when CONFIG_PERF_EVENTS is not set

2022-03-18 Thread Kajol Jain
the papr_scm perf interface support incase this config is not set Fixes: 4c08d4bbc089 ("powerpc/papr_scm: Add perf interface support") (Commit id based on linux-next tree) Signed-off-by: Kajol Jain --- arch/powerpc/platforms/pseries/papr_scm.c | 15 +++ 1 file changed, 15 ins

<    1   2   3   4   5   >