kern_ktrace.c (677b542ea243380af64822b30e4ef5f7a6d978ee) | kern_ktrace.c (7c89f162bcb645d2fdb234883fb689ed896077a2) |
---|---|
1/* 2 * Copyright (c) 1989, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 510 unchanged lines hidden (view full) --- 519 td->td_pflags |= TDP_INKTRACE; 520 if (ops != KTROP_CLEAR) { 521 /* 522 * an operation which requires a file argument. 523 */ 524 NDINIT(&nd, LOOKUP, NOFOLLOW, UIO_USERSPACE, uap->fname, td); 525 flags = FREAD | FWRITE | O_NOFOLLOW; 526 mtx_lock(&Giant); | 1/* 2 * Copyright (c) 1989, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 510 unchanged lines hidden (view full) --- 519 td->td_pflags |= TDP_INKTRACE; 520 if (ops != KTROP_CLEAR) { 521 /* 522 * an operation which requires a file argument. 523 */ 524 NDINIT(&nd, LOOKUP, NOFOLLOW, UIO_USERSPACE, uap->fname, td); 525 flags = FREAD | FWRITE | O_NOFOLLOW; 526 mtx_lock(&Giant); |
527 error = vn_open(&nd, &flags, 0); | 527 error = vn_open(&nd, &flags, 0, -1); |
528 if (error) { 529 mtx_unlock(&Giant); 530 td->td_pflags &= ~TDP_INKTRACE; 531 return (error); 532 } 533 NDFREE(&nd, NDF_ONLY_PNBUF); 534 vp = nd.ni_vp; 535 VOP_UNLOCK(vp, 0, td); --- 371 unchanged lines hidden --- | 528 if (error) { 529 mtx_unlock(&Giant); 530 td->td_pflags &= ~TDP_INKTRACE; 531 return (error); 532 } 533 NDFREE(&nd, NDF_ONLY_PNBUF); 534 vp = nd.ni_vp; 535 VOP_UNLOCK(vp, 0, td); --- 371 unchanged lines hidden --- |