From: David Ahern <dsahern@gmail.com>
To: Hailong Yang <hailong.yang1115@gmail.com>
Cc: linux-perf-users@vger.kernel.org
Subject: Re: perf stat: how to capture the output when it is running in the backgroud
Date: Sun, 13 May 2012 13:08:12 -0600 [thread overview]
Message-ID: <4FB0069C.7070306@gmail.com> (raw)
In-Reply-To: <4fafd79d.6586440a.2edc.ffffb185@mx.google.com>
On 5/13/12 9:47 AM, Hailong Yang wrote:
> 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 ~]#
Try: kill -INT $pid
David
next prev parent reply other threads:[~2012-05-13 19:08 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-13 15:47 perf stat: how to capture the output when it is running in the backgroud Hailong Yang
2012-05-13 19:08 ` David Ahern [this message]
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=4FB0069C.7070306@gmail.com \
--to=dsahern@gmail.com \
--cc=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).