lkml.org 
[lkml]   [2009]   [Aug]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH] basic perf support for sparc
From
From: Jens Axboe <jens.axboe@oracle.com>
Date: Wed, 29 Jul 2009 13:25:10 +0200

> -#define NR_SYSCALLS 327
> +#define NR_SYSCALLS 328

When you increase this value, you have to add entries to all of the
syscall tables. The syscall dispatch checks against this as a limit,
so if you don't explicitly add an entry to all the tables, it's
possible to deref garbage past the end of the table and try to jump to
it as a syscall.

And if you somehow arrange for adding a compat syscall entry here for
this, and build the perf tools 32-bit, you can forego all of these
rediculious issues with trying to get a 64-bit BFD library. If the
perf tools are written portably and use types like u64 etc. for
holding addresses and similar things, this should not be an issue.

The 32-bit sparc BFD library has full support for all the 64-bit
binary formats and whatnot.


\
 
 \ /
  Last update: 2009-08-02 22:19    [W:0.121 / U:5.708 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site