hc
2023-12-09 b22da3d8526a935aa31e086e63f60ff3246cb61c
kernel/tools/perf/util/pmu.y
....@@ -20,7 +20,7 @@
2020
2121 %}
2222
23
-%token PP_CONFIG PP_CONFIG1 PP_CONFIG2
23
+%token PP_CONFIG
2424 %token PP_VALUE PP_ERROR
2525 %type <num> PP_VALUE
2626 %type <bits> bit_term
....@@ -47,18 +47,11 @@
4747 $3));
4848 }
4949 |
50
-PP_CONFIG1 ':' bits
50
+PP_CONFIG PP_VALUE ':' bits
5151 {
5252 ABORT_ON(perf_pmu__new_format(format, name,
53
- PERF_PMU_FORMAT_VALUE_CONFIG1,
54
- $3));
55
-}
56
-|
57
-PP_CONFIG2 ':' bits
58
-{
59
- ABORT_ON(perf_pmu__new_format(format, name,
60
- PERF_PMU_FORMAT_VALUE_CONFIG2,
61
- $3));
53
+ $2,
54
+ $4));
6255 }
6356
6457 bits: