How do I see all service calls (or syscall) on mac os x?

390 views Asked by At

-Edit- Looks like using csrutil to disable system protection solved it. Is there a less extreme solution?

I'd like to see all the syscall/service calls my app makes to the OS. Below it doesn't seem to be logging any calls. I was expecting to see write and exit_group (or exit) like I see on linux using strace.

I compiled the assembly below with clang hello.s I ran sudo dtruss ./a.out and got this output

dtrace: system integrity protection is on, some features will not be available

SYSCALL(args)        = return
Hello 

Assembly

$ cat hello.s 
    .global _main
    .align 2

    _main: mov X0, #1
    adr     X1, hello
    mov     X2, #13
    mov     X16, #4
    svc     0

    mov     X0, #0
    mov     X16, #1
    svc     0

    hello: .ascii  "Hello\n"

Why don't I see the write or exit(_group)?

0

There are 0 answers