Lines Matching refs:sh
76 static volatile struct shared *sh; variable
80 unsigned int level = sh ? sh->indent : 0; in offset()
95 sh->nerr++; \
100 sh->indent = 0; \
133 sh->probing_syscall = true; in probe_syscall()
140 sh->probing_syscall = false; in probe_syscall()
175 sh->indent++; in _check_for()
177 sh->indent++; in _check_for()
191 sh->indent--; in _check_for()
203 sh->indent--; in _check_for()
234 sh->indent++; in test_x32()
245 sh->indent--; in test_x32()
251 enum ptrace_pass pass = sh->ptrace_pass; in test_syscalls_common()
310 sh->indent++; in test_syscall_numbering()
321 sh->indent++; in test_syscall_numbering()
329 sh->indent--; in test_syscall_numbering()
332 sh->indent--; in test_syscall_numbering()
345 for (sh->ptrace_pass = pass = PTP_NOTHING; pass < PTP_DONE; in syscall_numbering_tracee()
346 sh->ptrace_pass = ++pass) { in syscall_numbering_tracee()
356 sh->probing_syscall = false; /* Do this on entry only */ in mess_with_syscall()
409 if (sh->probing_syscall && WSTOPSIG(wstatus) == SIGTRAP) in syscall_numbering_tracer()
410 mess_with_syscall(testpid, sh->ptrace_pass); in syscall_numbering_tracer()
411 } while (sh->ptrace_pass != PTP_DONE && in syscall_numbering_tracer()
459 sh = mmap(NULL, sysconf(_SC_PAGE_SIZE), PROT_READ|PROT_WRITE, in main()
461 if (sh == MAP_FAILED) { in main()
473 nerr = sh->nerr; in main()