summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/stackcollapse-record
diff options
context:
space:
mode:
authorPaul E. McKenney <paulmck@kernel.org>2020-06-17 02:34:52 +0300
committerPaul E. McKenney <paulmck@kernel.org>2020-06-29 22:01:45 +0300
commit316db5897ee5d7408f2adea4d5992ed380316928 (patch)
tree81b521c1417b6d4ff805a05f88b2221d162f81cb /tools/perf/scripts/python/bin/stackcollapse-record
parent2102ad290af06119ccfb56ddc3a0e5011a91537e (diff)
downloadlinux-316db5897ee5d7408f2adea4d5992ed380316928.tar.xz
torture: Avoid duplicate specification of qemu command
Currently, the qemu command is constructed twice, once to dump it to the qemu-cmd file and again to execute it. This is of course an accident waiting to happen, but is done to ensure that the remainder of the script has an accurate idea of the running qemu command's PID. This commit therefore places both the qemu command and the PID capture into a new temporary file and sources that temporary file. Thus the single construction of the qemu command into the qemu-cmd file suffices for both purposes. Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions