Skip to content

Commit 76c75c7

Browse files
committed
explicitly exclude kernel and hv for pid stats
1 parent f30458e commit 76c75c7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/cpucounters.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2924,6 +2924,8 @@ PCM::ErrorCode PCM::programCoreCounters(const int i /* core */,
29242924
if (tids.empty() == false)
29252925
{
29262926
e.inherit = 1;
2927+
e.exclude_kernel = 1;
2928+
e.exclude_hv = 1;
29272929
e.read_format = 0; // 'inherit' does not work for combinations of read format (e.g. PERF_FORMAT_GROUP)
29282930
auto handleIt = perfEventTaskHandle.begin();
29292931
for (const auto & tid: tids)

0 commit comments

Comments
 (0)