linux-perf-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Hailong Yang" <hailong.yang1115@gmail.com>
To: 'David Ahern' <dsahern@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: Mon, 14 May 2012 10:19:36 +0800	[thread overview]
Message-ID: <4fb06bbb.4588440a.672d.fffff1d6@mx.google.com> (raw)
In-Reply-To: <4FB0069C.7070306@gmail.com>

Thanks, David. That works.

Hailong

> -----Original Message-----
> From: David Ahern [mailto:dsahern@gmail.com]
> Sent: Monday, May 14, 2012 3:08 AM
> To: Hailong Yang
> Cc: linux-perf-users@vger.kernel.org
> Subject: Re: perf stat: how to capture the output when it is running in
the
> backgroud
> 
> 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

      reply	other threads:[~2012-05-14  2:19 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
2012-05-14  2:19   ` Hailong Yang [this message]

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=4fb06bbb.4588440a.672d.fffff1d6@mx.google.com \
    --to=hailong.yang1115@gmail.com \
    --cc=dsahern@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).