All of lore.kernel.org
 help / color / mirror / Atom feed
* [KJ] value of "__attribute__((no_instrument_function))"??
@ 2007-01-19  8:09 Robert P. J. Day
  2007-01-19 19:03 ` Nishanth Aravamudan
  2007-01-19 19:58 ` Robert P. J. Day
  0 siblings, 2 replies; 3+ messages in thread
From: Robert P. J. Day @ 2007-01-19  8:09 UTC (permalink / raw)
  To: kernel-janitors


  i just noticed that there are a *very* small number of routines in
the source tree tagged with the attribute of "no_instrument_function".

$ grep -rw no_instrument_function .
./net/rxrpc/main.c:__attribute__((no_instrument_function));
./net/rxrpc/main.c:__attribute__((no_instrument_function));
./fs/afs/main.c:__attribute__((no_instrument_function));
./fs/afs/main.c:__attribute__((no_instrument_function));

  from the gcc manual:

"If -finstrument-functions is given, profiling function calls will be
generated at entry and exit of most user-compiled functions. Functions
with this attribute will not be so instrumented."

  that *seems* like a useful attribute so the obvious question is --
why is it not used more widely?  that seems kind of odd.  (in fact,
the functions with these attributes are all commented out within an
"#if 0" so they make no difference, anyway.)

  so ... is there any application to that attribute *at all* within
the kernel?  thanks.

rday

_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
https://lists.osdl.org/mailman/listinfo/kernel-janitors

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [KJ] value of "__attribute__((no_instrument_function))"??
  2007-01-19  8:09 [KJ] value of "__attribute__((no_instrument_function))"?? Robert P. J. Day
@ 2007-01-19 19:03 ` Nishanth Aravamudan
  2007-01-19 19:58 ` Robert P. J. Day
  1 sibling, 0 replies; 3+ messages in thread
From: Nishanth Aravamudan @ 2007-01-19 19:03 UTC (permalink / raw)
  To: kernel-janitors

On 19.01.2007 [03:09:07 -0500], Robert P. J. Day wrote:
> 
>   i just noticed that there are a *very* small number of routines in
> the source tree tagged with the attribute of "no_instrument_function".
> 
> $ grep -rw no_instrument_function .
> ./net/rxrpc/main.c:__attribute__((no_instrument_function));
> ./net/rxrpc/main.c:__attribute__((no_instrument_function));
> ./fs/afs/main.c:__attribute__((no_instrument_function));
> ./fs/afs/main.c:__attribute__((no_instrument_function));
> 
>   from the gcc manual:
> 
> "If -finstrument-functions is given, profiling function calls will be
> generated at entry and exit of most user-compiled functions. Functions
> with this attribute will not be so instrumented."
> 
>   that *seems* like a useful attribute so the obvious question is --
> why is it not used more widely?  that seems kind of odd.  (in fact,
> the functions with these attributes are all commented out within an
> "#if 0" so they make no difference, anyway.)

It seems like a useful attribute to *disable* instrumentation in the
kernel? Why?

Thanks,
Nish

-- 
Nishanth Aravamudan <nacc@us.ibm.com>
IBM Linux Technology Center
_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
https://lists.osdl.org/mailman/listinfo/kernel-janitors

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [KJ] value of "__attribute__((no_instrument_function))"??
  2007-01-19  8:09 [KJ] value of "__attribute__((no_instrument_function))"?? Robert P. J. Day
  2007-01-19 19:03 ` Nishanth Aravamudan
@ 2007-01-19 19:58 ` Robert P. J. Day
  1 sibling, 0 replies; 3+ messages in thread
From: Robert P. J. Day @ 2007-01-19 19:58 UTC (permalink / raw)
  To: kernel-janitors

On Fri, 19 Jan 2007, Nishanth Aravamudan wrote:

> On 19.01.2007 [03:09:07 -0500], Robert P. J. Day wrote:
> >
> >   i just noticed that there are a *very* small number of routines in
> > the source tree tagged with the attribute of "no_instrument_function".
> >
> > $ grep -rw no_instrument_function .
> > ./net/rxrpc/main.c:__attribute__((no_instrument_function));
> > ./net/rxrpc/main.c:__attribute__((no_instrument_function));
> > ./fs/afs/main.c:__attribute__((no_instrument_function));
> > ./fs/afs/main.c:__attribute__((no_instrument_function));
> >
> >   from the gcc manual:
> >
> > "If -finstrument-functions is given, profiling function calls will be
> > generated at entry and exit of most user-compiled functions. Functions
> > with this attribute will not be so instrumented."
> >
> >   that *seems* like a useful attribute so the obvious question is --
> > why is it not used more widely?  that seems kind of odd.  (in fact,
> > the functions with these attributes are all commented out within an
> > "#if 0" so they make no difference, anyway.)
>
> It seems like a useful attribute to *disable* instrumentation in the
> kernel? Why?

yes, and the point it -- are there places where people *should* be
using it in the kernel?  as i mentioned, there are only four instances
of it, and all four of those are commented out.  i was just curious.

rday
_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
https://lists.osdl.org/mailman/listinfo/kernel-janitors

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-01-19 19:58 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-19  8:09 [KJ] value of "__attribute__((no_instrument_function))"?? Robert P. J. Day
2007-01-19 19:03 ` Nishanth Aravamudan
2007-01-19 19:58 ` Robert P. J. Day

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.