Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src/sys



Module Name:    src
Committed By:   dsl
Date:           Thu Apr 26 16:27:32 UTC 2007

Modified Files:
        src/sys/kern: kern_ktrace.c vfs_lookup.c
        src/sys/sys: ktrace.h

Log Message:
Move the ktrace (and systrace) in namei() inside the retry loop for
emulation lookups.
If doing a lookup relative to the emulation root, prepend the emulation root
to the traced filename.
While here pass the filename length through to the ktrace code since namei()
knows the length and ktr_namei() would have to call strlen().
Note: that if namei() is being called during execve processing, the emulation
root name isn't available and "/emul/???" is used.  Also namei() has to use
strlen() to get the lenght on the emulatoon root - even though it is a
compile-time constant string.


To generate a diff of this commit:
cvs rdiff -r1.121 -r1.122 src/sys/kern/kern_ktrace.c
cvs rdiff -r1.87 -r1.88 src/sys/kern/vfs_lookup.c
cvs rdiff -r1.46 -r1.47 src/sys/sys/ktrace.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index