PERFORCE change 135421 for review
John Birrell
jb at FreeBSD.org
Thu Feb 14 18:44:07 PST 2008
http://perforce.freebsd.org/chv.cgi?CH=135421
Change 135421 by jb at jb_freebsd1 on 2008/02/15 02:43:14
Add an option to allow CTF data to be loaded with the ELF file.
The CTF data has type information and for functions, the list
or arguments too. This list is useful for the DTrace Function
Boundary Trace (fbt) provider so that it can set the types for
the functions it probes. Without this information, the arguments
are uintptr_t's and have to be cast to a usable type.
The CTF data is probably useful for DDB too and it may be useful
even if the DTrace hooks aren't in the kernel.
Of course the CTF data needs to be present as an ELF section in
the file and it it isn't there, well, umm, life still needs to
go on.
So DDB_CTF tells the kernel to load TF data if it is there.
Affected files ...
.. //depot/projects/dtrace/src/sys/conf/options#40 edit
Differences ...
==== //depot/projects/dtrace/src/sys/conf/options#40 (text+ko) ====
@@ -50,6 +50,7 @@
DDB
DDB_CAPTURE_DEFAULTBUFSIZE opt_ddb.h
DDB_CAPTURE_MAXBUFSIZE opt_ddb.h
+DDB_CTF opt_ddb.h
DDB_NUMSYM opt_ddb.h
GDB
KDB opt_global.h
More information about the p4-projects
mailing list