Skip to contentSkip to conversation

perf test: Test 2 libpfm4 error cases

PATCH Applied Ian Rogers 2 participants 3 messages May 19, 2021 – May 27, 2021 perf events

lore
Share & tools
lore

Ian Rogers

author reviewer
#0 lore raw

PATCH 1/1 perf test: Test 2 libpfm4 error cases

Proposed in:
https://lore.kernel.org/lkml/[email protected]/

---
 tools/perf/tests/pfm.c | 10 ++++++++++
 1 file changed, 10 insertions(+)
tools/perf/tests/pfm.c +10 -0
index d4b0ef74defc..acd50944f6af 100644
@@ -155,6 +155,16 @@ static int test__pfm_group(void)
 			.nr_events = 3,
 			.nr_groups = 1,
 		},
+		{
+			.events = "instructions}",
+			.nr_events = 1,
+			.nr_groups = 0,
+		},
+		{
+			.events = "{{instructions}}",
+			.nr_events = 0,
+			.nr_groups = 0,
+		},
 	};
 
 	for (i = 0; i < ARRAY_SIZE(table); i++) {
Signature · 1 line
2.31.1.751.gd2f1c929bd-goog
author reviewer
#1 lore raw
Quoted 5 lines · Ian Rogers

Proposed in:
https://lore.kernel.org/lkml/[email protected]/

Ping.

Thanks!
Ian

Quoted 28 lines
---
 tools/perf/tests/pfm.c | 10 ++++++++++
 1 file changed, 10 insertions(+)
tools/perf/tests/pfm.c +10 -1
index d4b0ef74defc..acd50944f6af 100644
@@ -155,6 +155,16 @@ static int test__pfm_group(void)
                        .nr_events = 3,
                        .nr_groups = 1,
                },
+               {
+                       .events = "instructions}",
+                       .nr_events = 1,
+                       .nr_groups = 0,
+               },
+               {
+                       .events = "{{instructions}}",
+                       .nr_events = 0,
+                       .nr_groups = 0,
+               },
        };
 
        for (i = 0; i < ARRAY_SIZE(table); i++) {
--

2.31.1.751.gd2f1c929bd-goog

maintainer Applied
#2 lore raw

Em Thu, May 27, 2021 at 08:52:14AM -0700, Ian Rogers escreveu:

Quoted 8 lines · Ian Rogers
Quoted 5 lines

Proposed in:
https://lore.kernel.org/lkml/[email protected]/

Ping.

Thanks, applied.

- Arnaldo

Quoted 31 lines

Thanks!
Ian

Quoted 28 lines
---
 tools/perf/tests/pfm.c | 10 ++++++++++
 1 file changed, 10 insertions(+)
tools/perf/tests/pfm.c +10 -1
index d4b0ef74defc..acd50944f6af 100644
@@ -155,6 +155,16 @@ static int test__pfm_group(void)
                        .nr_events = 3,
                        .nr_groups = 1,
                },
+               {
+                       .events = "instructions}",
+                       .nr_events = 1,
+                       .nr_groups = 0,
+               },
+               {
+                       .events = "{{instructions}}",
+                       .nr_events = 0,
+                       .nr_groups = 0,
+               },
        };
 
        for (i = 0; i < ARRAY_SIZE(table); i++) {
--

2.31.1.751.gd2f1c929bd-goog

Signature · 1 line
- Arnaldo