[llvm] [BOLT] Filter itrace from perf script mmap & task events (PR #69585)
Jonathan Davies via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 19 03:50:58 PDT 2023
https://github.com/jonathandavies-arm updated https://github.com/llvm/llvm-project/pull/69585
>From 76adef4eacb61c48f1c98f0ffb274d6218417ad8 Mon Sep 17 00:00:00 2001
From: Jonathan Davies <jonathan.davies at arm.com>
Date: Wed, 18 Oct 2023 14:06:47 +0100
Subject: [PATCH 1/2] [BOLT] Filter itrace from perf script mmap & task events
---
bolt/lib/Profile/DataAggregator.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/bolt/lib/Profile/DataAggregator.cpp b/bolt/lib/Profile/DataAggregator.cpp
index f8ade24bdc0246a..b26346a4d88c4b3 100644
--- a/bolt/lib/Profile/DataAggregator.cpp
+++ b/bolt/lib/Profile/DataAggregator.cpp
@@ -183,12 +183,12 @@ void DataAggregator::start() {
launchPerfProcess("process events",
MMapEventsPPI,
- "script --show-mmap-events",
+ "script --show-mmap-events --no-itrace",
/*Wait = */false);
launchPerfProcess("task events",
TaskEventsPPI,
- "script --show-task-events",
+ "script --show-task-events --no-itrace",
/*Wait = */false);
}
>From 5490146e878df00b870ee278430559a3b0a729ec Mon Sep 17 00:00:00 2001
From: Jonathan Davies <jonathan.davies at arm.com>
Date: Thu, 19 Oct 2023 11:49:51 +0100
Subject: [PATCH 2/2] Fix clang formatting
---
bolt/lib/Profile/DataAggregator.cpp | 10 ++++------
1 file changed, 4 insertions(+), 6 deletions(-)
diff --git a/bolt/lib/Profile/DataAggregator.cpp b/bolt/lib/Profile/DataAggregator.cpp
index b26346a4d88c4b3..b72bd0edf1a2df2 100644
--- a/bolt/lib/Profile/DataAggregator.cpp
+++ b/bolt/lib/Profile/DataAggregator.cpp
@@ -181,15 +181,13 @@ void DataAggregator::start() {
"script -F pid,event,addr,ip",
/*Wait = */false);
- launchPerfProcess("process events",
- MMapEventsPPI,
+ launchPerfProcess("process events", MMapEventsPPI,
"script --show-mmap-events --no-itrace",
- /*Wait = */false);
+ /*Wait = */ false);
- launchPerfProcess("task events",
- TaskEventsPPI,
+ launchPerfProcess("task events", TaskEventsPPI,
"script --show-task-events --no-itrace",
- /*Wait = */false);
+ /*Wait = */ false);
}
void DataAggregator::abort() {
More information about the llvm-commits
mailing list