public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* A Bug Inquiry in linux/tools/perf/builtin-record.c
@ 2014-02-19  1:48 xiakaixu
  2014-02-25  7:16 ` xiakaixu
  0 siblings, 1 reply; 5+ messages in thread
From: xiakaixu @ 2014-02-19  1:48 UTC (permalink / raw)
  To: a.p.zijlstra, paulus, mingo, acme
  Cc: linux-kernel, Huxinwei, Genghui, peifeiyue

Hi all,

There is a bug found in my work when running "perf record". The basic information
is here. As we know, perf record is a parent process and the programme traced is
a child process when running "perf record". Sometimes the child process become
zombie state and disappear until the parent process is killed. The bug stays in linux/
tools/perf/builtin-record.c.
*********************************************************************
static int __cmd_record(struct perf_record *rec, int argc, const char **argv)
    ......
	if (hits == rec->samples) {
                         if (done)
                                 break;
                         err = poll(evsel_list->pollfd, evsel_list->nr_fds, -1);
                         waking++;
                 }
    ......
*********************************************************************
The parent process still call the function
poll(evsel_list->pollfd, evsel_list->nr_fds, -1) when the child process has exited
already, which caused a zombie process.

May I have your opinion ?
Waiting for your reply!

Best Regards
Kaixu Xia


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-03-03  4:11 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-19  1:48 A Bug Inquiry in linux/tools/perf/builtin-record.c xiakaixu
2014-02-25  7:16 ` xiakaixu
2014-02-26  8:03   ` Namhyung Kim
2014-02-27  2:53     ` xiakaixu
2014-03-03  4:10       ` xiakaixu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox