Re: [PATCH] trace_syscalls: cleanup for syscalls_metadata

From: Steven Rostedt
Date: Thu Jan 07 2010 - 09:03:41 EST


On Thu, 2010-01-07 at 09:01 +0800, Lai Jiangshan wrote:
> Steven Rostedt wrote:

> It seems that there is no spec/document guarantees it.
>
> I searched all NR_syscalls in current kernel source code,
> and I found it is a constant in header file (all archs).
>
> trace_syscalls.c has already used it as a compile-time constant:
>
> static DECLARE_BITMAP(enabled_enter_syscalls, NR_syscalls);
> static DECLARE_BITMAP(enabled_exit_syscalls, NR_syscalls);

I guess no one complained about that yet. But that could be because no
one noticed.

Still, is there a reason to make that change other than just a "clean
up"? What advantage do we have by changing the array into a static
array instead of allocating it at run time?

-- Steve


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/