Lines Matching refs:sh
77 static volatile struct shared *sh; variable
81 unsigned int level = sh ? sh->indent : 0; in offset()
96 sh->nerr++; \
101 sh->indent = 0; \
134 sh->probing_syscall = true; in probe_syscall()
141 sh->probing_syscall = false; in probe_syscall()
176 sh->indent++; in _check_for()
178 sh->indent++; in _check_for()
192 sh->indent--; in _check_for()
204 sh->indent--; in _check_for()
235 sh->indent++; in test_x32()
246 sh->indent--; in test_x32()
252 enum ptrace_pass pass = sh->ptrace_pass; in test_syscalls_common()
311 sh->indent++; in test_syscall_numbering()
322 sh->indent++; in test_syscall_numbering()
330 sh->indent--; in test_syscall_numbering()
333 sh->indent--; in test_syscall_numbering()
346 for (sh->ptrace_pass = pass = PTP_NOTHING; pass < PTP_DONE; in syscall_numbering_tracee()
347 sh->ptrace_pass = ++pass) { in syscall_numbering_tracee()
357 sh->probing_syscall = false; /* Do this on entry only */ in mess_with_syscall()
410 if (sh->probing_syscall && WSTOPSIG(wstatus) == SIGTRAP) in syscall_numbering_tracer()
411 mess_with_syscall(testpid, sh->ptrace_pass); in syscall_numbering_tracer()
412 } while (sh->ptrace_pass != PTP_DONE && in syscall_numbering_tracer()
460 sh = mmap(NULL, sysconf(_SC_PAGE_SIZE), PROT_READ|PROT_WRITE, in main()
462 if (sh == MAP_FAILED) { in main()
474 nerr = sh->nerr; in main()