Re: [PATCH 00/12] add syscall tracepoints V3 - s390 arch update

Heiko Carstens
2009-08-25T14:40:04Z

On Tue, Aug 25, 2009 at 03:52:32PM +0200, Frederic Weisbecker wrote:
> On Tue, Aug 25, 2009 at 02:31:11PM +0200, Hendrik Brueckner wrote:
> > meta = find_syscall_meta((unsigned long)sys_call_table[i]);
> > syscalls_metadata[i] = meta;
> > }
> We can even probably move most of this code to the core, expect the tiny parts
> that rely on the arch syscall table.
>
> BTW, perhaps a silly question: would it be hard to have a generic syscall table
> common to every archs?

That would cause a lot of churn. Every architecture initializes the syscall
table (two tables if CONFIG_COMPAT is enabled) differently.
s390 also only uses 32 bit pointers in the system call table for 64 bit
kernels, since we know that the functions are within the first 4GB.
I don't think its worth the effort.