amd64-fbsd.c (171055) | amd64-fbsd.c (192025) |
---|---|
1/* 2 * Copryight 1997 Sean Eric Fagan 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 1. Redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer. --- 17 unchanged lines hidden (view full) --- 26 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 27 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 28 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 29 * SUCH DAMAGE. 30 */ 31 32#ifndef lint 33static const char rcsid[] = | 1/* 2 * Copryight 1997 Sean Eric Fagan 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 1. Redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer. --- 17 unchanged lines hidden (view full) --- 26 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 27 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 28 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 29 * SUCH DAMAGE. 30 */ 31 32#ifndef lint 33static const char rcsid[] = |
34 "$FreeBSD: head/usr.bin/truss/amd64-fbsd.c 171055 2007-06-26 22:42:37Z delphij $"; | 34 "$FreeBSD: head/usr.bin/truss/amd64-fbsd.c 192025 2009-05-12 20:42:12Z dds $"; |
35#endif /* not lint */ 36 37/* 38 * FreeBSD/amd64-specific system call handling. This is probably the most 39 * complex part of the entire truss program, although I've got lots of 40 * it handled relatively cleanly now. The system call names are generated 41 * automatically, thanks to /usr/src/sys/kern/syscalls.master. The 42 * names used for the various structures are confusing, I sadly admit. --- 275 unchanged lines hidden (view full) --- 318 trussinfo->curthread->in_syscall = 1; 319 } 320 321 /* 322 * It would probably be a good idea to merge the error handling, 323 * but that complicates things considerably. 324 */ 325 | 35#endif /* not lint */ 36 37/* 38 * FreeBSD/amd64-specific system call handling. This is probably the most 39 * complex part of the entire truss program, although I've got lots of 40 * it handled relatively cleanly now. The system call names are generated 41 * automatically, thanks to /usr/src/sys/kern/syscalls.master. The 42 * names used for the various structures are confusing, I sadly admit. --- 275 unchanged lines hidden (view full) --- 318 trussinfo->curthread->in_syscall = 1; 319 } 320 321 /* 322 * It would probably be a good idea to merge the error handling, 323 * but that complicates things considerably. 324 */ 325 |
326 print_syscall_ret(trussinfo, fsc.name, fsc.nargs, fsc.s_args, errorp, retval); | 326 print_syscall_ret(trussinfo, fsc.name, fsc.nargs, fsc.s_args, errorp, 327 retval, fsc.sc); |
327 clear_fsc(); 328 329 return (retval); 330} | 328 clear_fsc(); 329 330 return (retval); 331} |