ldv changed the topic of #strace to: https://strace.io | https://strace.io/logs/ | strace 5.2 is out | strace-devel@lists.strace.io for dev discussions
sscox has joined #strace
parport0 has quit [Ping timeout: 240 seconds]
parport0 has joined #strace
parport0 has quit [Ping timeout: 268 seconds]
parport0 has joined #strace
emachado has joined #strace
<mator> wanted to test "Allow seccomp filter to work without -f" but it doesn't support sparc :)
<mator> seccomp_bpf.c:1609:3: error: #error "Do not know how to find your architecture's registers and syscalls"
<mator> gcc -Wl,-no-as-needed -Wall seccomp_bpf.c -lpthread -o seccomp_bpf
<mator> ~/linux-2.6/tools/testing/selftests/seccomp$ make
emachado has quit [Ping timeout: 240 seconds]
<pchaigno> mator: it looks like you just need to extend that code with the macros for sparc
<pchaigno> ARCH_REGS should be pt_regs, but I don't know which registers hold the syscall number and return code on sparc
emachado has joined #strace
<ldv> strace knows :)
<mator> pchaigno, i've no idea as well
<pchaigno> mator: if I understand this correctly, the following should be your register with the syscall number: https://github.com/strace/strace/blob/92e347b556bb183ebaaf6fedb839da222c8c67b4/linux/sparc/get_scno.c#L12
sscox has quit [Ping timeout: 268 seconds]
emachado has quit [Quit: Leaving]
<jrtc27> ie follows the normal integer calling convention, with the syscall number separate in g1, and the carry status bit indicates whether the return value is an error code