Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changes for s390 , removed unsupported syscalls #676

Merged
merged 19 commits into from
Nov 7, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion driver/ppm.h
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,6 @@ long ppm_strncpy_from_user(char *to, const char __user *from, unsigned long n);
#define SYSCALL_TABLE_ID0 0
#elif defined CONFIG_S390
#define SYSCALL_TABLE_ID0 0
#define __NR_time 13
#endif

#define SYSCALL_TABLE_SIZE 512
Expand Down
8 changes: 8 additions & 0 deletions driver/ppm_fillers.c
Original file line number Diff line number Diff line change
Expand Up @@ -3890,14 +3890,22 @@ static inline u16 ptrace_requests_to_scap(unsigned long req)
case PTRACE_GETFPXREGS:
return PPM_PTRACE_GETFPXREGS;
#endif
#ifdef PTRACE_SETFPREGS
case PTRACE_SETFPREGS:
return PPM_PTRACE_SETFPREGS;
#endif
#ifdef PTRACE_GETFPREGS
case PTRACE_GETFPREGS:
return PPM_PTRACE_GETFPREGS;
#endif
#ifdef PTRACE_SETREGS
case PTRACE_SETREGS:
return PPM_PTRACE_SETREGS;
#endif
#ifdef PTRACE_GETREGS
case PTRACE_GETREGS:
return PPM_PTRACE_GETREGS;
#endif
#ifdef PTRACE_SETSIGMASK
case PTRACE_SETSIGMASK:
return PPM_PTRACE_SETSIGMASK;
Expand Down
2 changes: 2 additions & 0 deletions driver/syscall_table.c
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,9 @@ const enum ppm_syscall_code g_syscall_code_routing_table[SYSCALL_TABLE_SIZE] = {
[__NR_link - SYSCALL_TABLE_ID0] = PPM_SC_LINK,
[__NR_unlink - SYSCALL_TABLE_ID0] = PPM_SC_UNLINK,
[__NR_chdir - SYSCALL_TABLE_ID0] = PPM_SC_CHDIR,
#ifdef __NR_time
[__NR_time - SYSCALL_TABLE_ID0] = PPM_SC_TIME,
#endif
[__NR_mknod - SYSCALL_TABLE_ID0] = PPM_SC_MKNOD,
[__NR_chmod - SYSCALL_TABLE_ID0] = PPM_SC_CHMOD,
/* [__NR_lchown16 - SYSCALL_TABLE_ID0] = PPM_SC_NR_LCHOWN16, */
Expand Down