Messages in this thread | | | Subject | Re: [RFC/PATCH] Prevent wasting time to find out get_parent_ip | From | Steven Rostedt <> | Date | Tue, 24 Apr 2012 23:32:31 -0400 |
| |
On Wed, 2012-04-25 at 12:21 +0900, Minho Ban wrote: > > > > Or, how about declaring get_parent_ip with the GCC "pure" attribute? > > That would tell GCC that it can safely eliminate calls to the function. > > > > - Josh Triplett > > > > Thank you for alternative method, but I'm afraid this could not cover the CALLER_ADDR.
That's fine. I personally prefer the macro with the comment as that is not as subtle of a fix. It's the most straight forward.
-- Steve
| |