lkml.org 
[lkml]   [2008]   [Aug]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Efficient x86 and x86_64 NOP microbenchmarks
Steven Rostedt wrote:
> No, I can easily make a patch that does not use frame pointers but
> still uses -pg. We just can not print the parent function in the
> trace. This can easily be added to a config, as well as easily
> implemented.

Why? You can always get the calling function, because its return
address is on the stack (assuming mcount is called before the function
puts its own frame on the stack). But without a frame pointer, you
can't necessarily get the caller's caller.

But I think Andi's point is that gcc forces frame pointers on when you
enable mcount, so there's no choice in the matter.

J


\
 
 \ /
  Last update: 2008-08-13 22:11    [W:1.752 / U:0.092 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site