aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSeongJae Park <sj@kernel.org>2024-04-15 11:17:49 -0700
committerSeongJae Park <sj@kernel.org>2024-04-15 11:17:49 -0700
commitf4ace2376a0d7dd67c259bc77c7a742546e0c298 (patch)
tree2e83ff925db3e2a46dc19fdbbe2e075d0e12e497
parentf30131c98526c9313d5cf998d098a229b4569110 (diff)
downloaddamo-f4ace2376a0d7dd67c259bc77c7a742546e0c298.tar.gz
_damo_records: Fix wrong file path reference in start_recording()
Signed-off-by: SeongJae Park <sj@kernel.org>
-rw-r--r--_damo_records.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/_damo_records.py b/_damo_records.py
index 5ffd0c8f..914a5333 100644
--- a/_damo_records.py
+++ b/_damo_records.py
@@ -720,7 +720,7 @@ def start_recording(handle):
[PERF, 'record', '-a', '-e', handle.tracepoint,
'-o', handle.file_path])
if handle.do_profile:
- cmd = [PERF, 'record', '-o', '%s.profile' % file_path]
+ cmd = [PERF, 'record', '-o', '%s.profile' % handle.file_path]
handle.perf_profile_pipe = subprocess.Popen(cmd)
while poll_target_pids(handle):
time.sleep(1)