Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 158421
b: refs/heads/master
c: eeac19a
h: refs/heads/master
i:
  158419: de05e85
v: v3
  • Loading branch information
Jason Baron authored and Frederic Weisbecker committed Aug 11, 2009
1 parent 63a5eee commit 39e43ac
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7770841e63730d62928b0879498064e9614b2ce0
refs/heads/master: eeac19a7efa150231e4a6bb110d6f27500bcc8ce
16 changes: 16 additions & 0 deletions trunk/arch/x86/kernel/ftrace.c
Original file line number Diff line number Diff line change
Expand Up @@ -500,6 +500,22 @@ struct syscall_metadata *syscall_nr_to_meta(int nr)
return syscalls_metadata[nr];
}

int syscall_name_to_nr(char *name)
{
int i;

if (!syscalls_metadata)
return -1;

for (i = 0; i < FTRACE_SYSCALL_MAX; i++) {
if (syscalls_metadata[i]) {
if (!strcmp(syscalls_metadata[i]->name, name))
return i;
}
}
return -1;
}

void arch_init_ftrace_syscalls(void)
{
int i;
Expand Down

0 comments on commit 39e43ac

Please sign in to comment.