lkml.org 
[lkml]   [2022]   [Sep]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFC PATCH] x86/syscalls: allow tracing of __do_sys_[syscall] functions
On Tue, 13 Sep 2022 06:52:13 -0700
Nadav Amit <nadav.amit@gmail.com> wrote:

> +++ b/include/linux/compiler_types.h
> @@ -152,8 +152,12 @@ struct ftrace_likely_data {
> * externally visible function. This makes extern inline behave as per gnu89
> * semantics rather than c99. This prevents multiple symbol definition errors
> * of extern inline functions at link time.
> - * A lot of inline functions can cause havoc with function tracing.
> + *
> + * A lot of inline functions can cause havoc with function tracing. If the
> + * function is known to be safe for tracing, inline_trace can be used. Otherwise
> + * inline would prevent tracing.

Perhaps add:

* Don't complain if this function is not available to trace!

;-)

-- Steve

> */
> +#define inline_trace __inline __gnu_inline __inline_maybe_unused
> #define inline inline __gnu_inline __inline_maybe_unused notrace
>

\
 
 \ /
  Last update: 2022-09-26 19:29    [W:0.087 / U:0.320 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site