* [RFC] perf top and deleted binaries
@ 2011-05-09 18:28 Arun Sharma
2011-05-09 20:58 ` Arnaldo Carvalho de Melo
0 siblings, 1 reply; 2+ messages in thread
From: Arun Sharma @ 2011-05-09 18:28 UTC (permalink / raw)
To: linux-perf-users, acme
For long running binaries which may have been replaced or deleted, today
perf top spits out a warning and doesn't show anything. For eg:
test.c:
main()
{
while(1);
}
gcc -O2 test.c -o test
./test &
gcc -O2 test.c -o test # overwrite the binary
perf top -p <pid>
shows nothing. It could instead show:
100% <unresolved> test
like perf record/report would show for the same test case. Comments?
-Arun
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [RFC] perf top and deleted binaries
2011-05-09 18:28 [RFC] perf top and deleted binaries Arun Sharma
@ 2011-05-09 20:58 ` Arnaldo Carvalho de Melo
0 siblings, 0 replies; 2+ messages in thread
From: Arnaldo Carvalho de Melo @ 2011-05-09 20:58 UTC (permalink / raw)
To: Arun Sharma; +Cc: linux-perf-users
Em Mon, May 09, 2011 at 11:28:23AM -0700, Arun Sharma escreveu:
>
> For long running binaries which may have been replaced or deleted, today
> perf top spits out a warning and doesn't show anything. For eg:
>
> test.c:
>
> main()
> {
> while(1);
> }
>
> gcc -O2 test.c -o test
> ./test &
> gcc -O2 test.c -o test # overwrite the binary
> perf top -p <pid>
>
> shows nothing. It could instead show:
>
> 100% <unresolved> test
>
> like perf record/report would show for the same test case. Comments?
Agreed :-)
When/if we get build-id as first class citizen, stashing it in some
kernel data structure at DSO load time, we'll be able to use it for
content based DSO lookup in the cache.
- Arnaldo
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-05-09 20:58 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-09 18:28 [RFC] perf top and deleted binaries Arun Sharma
2011-05-09 20:58 ` Arnaldo Carvalho de Melo
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.