lkml.org 
[lkml]   [2014]   [Feb]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: A Bug Inquiry in linux/tools/perf/builtin-record.c
于 2014/2/19 9:48, xiakaixu 写道:
> 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
>


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2014-02-25 09:01    [W:0.085 / U:0.160 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site