Re: -mprofile-kernel vs. notrace in ppc64(le) Linux kernels

2015-09-27 Thread Stewart Smith
Torsten Duwe writes: > As I mentioned earlier this year, it's a bad idea to call _mcount from > MMU helper functions (e.g. hash_page...), when the profiling/tracing/ > live-patching/whatever framewok might in turn cause another such fault. > Jikos suggested to use fine-grained control of these fun

Re: -mprofile-kernel vs. notrace in ppc64(le) Linux kernels

2015-09-27 Thread Torsten Duwe
On Sun, Sep 27, 2015 at 09:03:48AM +1000, Anton Blanchard wrote: > > On Sat, Sep 26, 2015 at 04:30:08PM +0200, Torsten Duwe wrote: > > > kernel. It is mapped to GCC's (4.8, FWIW) > > > __attribute__((no_instrument_function)), which, to my surprise, > > > works for -p and -pg nicely, but does not af

Re: -mprofile-kernel vs. notrace in ppc64(le) Linux kernels

2015-09-26 Thread Anton Blanchard
Hi, > On Sat, Sep 26, 2015 at 04:30:08PM +0200, Torsten Duwe wrote: > > As I mentioned earlier this year, it's a bad idea to call _mcount > > from MMU helper functions (e.g. hash_page...), when the > > profiling/tracing/ live-patching/whatever framewok might in turn > > cause another such fault. J

Re: -mprofile-kernel vs. notrace in ppc64(le) Linux kernels

2015-09-26 Thread Segher Boessenkool
On Sat, Sep 26, 2015 at 04:30:08PM +0200, Torsten Duwe wrote: > As I mentioned earlier this year, it's a bad idea to call _mcount from > MMU helper functions (e.g. hash_page...), when the profiling/tracing/ > live-patching/whatever framewok might in turn cause another such fault. > Jikos suggested