aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/builtin-test.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/builtin-test.c')
-rw-r--r--tools/perf/builtin-test.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/tools/perf/builtin-test.c b/tools/perf/builtin-test.c
index 8b5359506505..58bfe8bde5ee 100644
--- a/tools/perf/builtin-test.c
+++ b/tools/perf/builtin-test.c
@@ -13,6 +13,7 @@
13#include "util/parse-events.h" 13#include "util/parse-events.h"
14#include "util/symbol.h" 14#include "util/symbol.h"
15#include "util/thread_map.h" 15#include "util/thread_map.h"
16#include "util/pmu.h"
16#include "../../include/linux/hw_breakpoint.h" 17#include "../../include/linux/hw_breakpoint.h"
17 18
18#include <sys/mman.h> 19#include <sys/mman.h>
@@ -1484,6 +1485,11 @@ static int test__rdpmc(void)
1484 1485
1485#endif 1486#endif
1486 1487
1488static int test__perf_pmu(void)
1489{
1490 return perf_pmu__test();
1491}
1492
1487static struct test { 1493static struct test {
1488 const char *desc; 1494 const char *desc;
1489 int (*func)(void); 1495 int (*func)(void);
@@ -1519,6 +1525,10 @@ static struct test {
1519 .func = test__PERF_RECORD, 1525 .func = test__PERF_RECORD,
1520 }, 1526 },
1521 { 1527 {
1528 .desc = "Test perf pmu format parsing",
1529 .func = test__perf_pmu,
1530 },
1531 {
1522 .func = NULL, 1532 .func = NULL,
1523 }, 1533 },
1524}; 1534};