Re: And another thing...

Maynard Johnson <[email protected]>
Newsgroups gmane.linux.oprofile
Message-ID <[email protected]>
On 07/30/2014 12:06 PM, Andrew Haley wrote:
> I kept getting  "now trying to kill convert pid..." error messages.
Andrew, can you please reproduce this problem, running operf with "-V debug".
Then attach all operf debug output to your reply.  Thanks.

-Maynard
> Turns out that there is only a 5s wait for the daemon to terminate,
> which is nowhere near long enough if you have lot of symbols.
> 
> This fixed it, but a fixed time limit seems wrong:
> 
> diff --git a/pe_profiling/operf.cpp b/pe_profiling/operf.cpp
> index 51f55a5..b12aadf 100644
> --- a/pe_profiling/operf.cpp
> +++ b/pe_profiling/operf.cpp
> @@ -492,10 +492,10 @@ static end_code_t _kill_operf_read_pid(end_code_t rc)
>                 int option = WNOHANG;
>                 int wait_rc;
>                 gettimeofday(&tv, NULL);
> -               if (tv.tv_sec > start_time_sec + 5) {
> +               if (tv.tv_sec > start_time_sec + 45) {
>                         keep_trying = false;
>                         option = 0;
> -                       cerr << "now trying to kill convert pid..." << endl;
> +                       cerr << "now trying to kill convert pid 45s..." << endl;
> 
>                         if (kill(operf_read_pid, SIGUSR1) < 0) {
>                                 perror("Attempt to stop operf-read process failed");
> 
> Andrew.
> 
> 
> ------------------------------------------------------------------------------
> Infragistics Professional
> Build stunning WinForms apps today!
> Reboot your WinForms applications with our WinForms controls. 
> Build a bridge from your legacy apps to the future.
> http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk
> _______________________________________________
> oprofile-list mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/oprofile-list
> 


------------------------------------------------------------------------------
Infragistics Professional
Build stunning WinForms apps today!
Reboot your WinForms applications with our WinForms controls. 
Build a bridge from your legacy apps to the future.
http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.