diff options
| author | Ian Rogers <irogers@google.com> | 2026-09-25 23:19:37 -0700 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2026-09-26 20:49:27 +0200 |
| commit | ca23ecf8eedbcdb2ae366b38599722af31adef89 (patch) | |
| tree | 3a04ff8c5d5dc3ec1353e11d490a300dde3bb7a0 /tools/perf/python/stackcollapse.py | |
| parent | f66944587d18a84504d9c9782295944fbd29036f (diff) | |
| download | linux-next-ca23ecf8eedbcdb2ae366b38599722af31adef89.tar.gz linux-next-ca23ecf8eedbcdb2ae366b38599722af31adef89.zip | |
perf python: Allow KeyboardInterrupt to propagate in LiveSession
LiveSession.run() synchronously blocks while polling evlist for events.
When running interactive tools or scripts from the terminal,
KeyboardInterrupt exceptions raised via Ctrl-C must propagate so the
caller can break out of the polling loop.
Previously, LiveSession caught KeyboardInterrupt with an empty pass
statement, swallowing the exception and preventing calling scripts from
detecting the interrupt cleanly. Remove the empty handler so calling
scripts receive KeyboardInterrupt and can perform clean teardown.
Assisted-by: Antigravity:gemini-3.1-pro
Signed-off-by: Ian Rogers <irogers@google.com>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
