diff options
Diffstat (limited to 'lib/igt_perf.c')
-rw-r--r-- | lib/igt_perf.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/igt_perf.c b/lib/igt_perf.c index 99d82ea5..e3dec2cc 100644 --- a/lib/igt_perf.c +++ b/lib/igt_perf.c @@ -69,3 +69,9 @@ int igt_perf_open(uint64_t type, uint64_t config) return _perf_open(type, config, -1, PERF_FORMAT_TOTAL_TIME_ENABLED); } + +int igt_perf_open_group(uint64_t type, uint64_t config, int group) +{ + return _perf_open(type, config, group, + PERF_FORMAT_TOTAL_TIME_ENABLED | PERF_FORMAT_GROUP); +} |