From: "Hailong Yang" <hailong.yang1115@gmail.com>
To: linux-perf-users@vger.kernel.org
Subject: perf stat: how to capture the output when it is running in the backgroud
Date: Sun, 13 May 2012 23:47:37 +0800 [thread overview]
Message-ID: <4fafd79d.6586440a.2edc.ffffb185@mx.google.com> (raw)
Dear all,
I am running perf stat to collect the performance statistics of a already
running process. And I have a shell script to execute the perf stat as a
daemon process. But when I use the 'kill' command to stop the perf stat,
there is no output redirected to a file.
[root@dell06 ~]# (perf stat -p 7473 -x ,) 2> perftest &
[1] 15086
[root@dell06 ~]# kill 15086
[root@dell06 ~]#
[1]+ Terminated ( perf stat -p 7473 -x , ) 2> perftest
[root@dell06 ~]# cat perftest
[root@dell06 ~]#
Any clue?
Best Regards
Hailong
next reply other threads:[~2012-05-13 15:47 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-13 15:47 Hailong Yang [this message]
2012-05-13 19:08 ` perf stat: how to capture the output when it is running in the backgroud David Ahern
2012-05-14 2:19 ` Hailong Yang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4fafd79d.6586440a.2edc.ffffb185@mx.google.com \
--to=hailong.yang1115@gmail.com \
--cc=linux-perf-users@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).