Bug 150255

Summary: dtrace description should mention makeoptions DEBUG=-g
Product: Documentation Reporter: Alexander Pyhalov <alp>
Component: Books & ArticlesAssignee: Dru Lavigne <dru>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description Alexander Pyhalov 2010-09-03 19:30:02 UTC
Documentation in handbook doesn't clearly state that "makeoptions DEBUG=-g" option should be present in kernel config for DTrace to work. 
In the absence of this options all (or most) dtrace scripts complain on unknown uid_t symbol in psinfo.d, because this symbol is not found in kernel debugging info. This can be seen with ctfdump - kernel contains CTF data but no info about uid_t (and some other symbols).

Fix: 

Document this behavior.
How-To-Repeat: Create kernel config with options KDTRACE_HOOKS and DDB_CTF but without "makeoptions DEBUG=-g", then execute "make kernel WITH_CTF=1 KERNCONF=YourConfig".
Comment 1 Dru Lavigne freebsd_committer freebsd_triage 2014-04-16 00:36:05 UTC
Responsible Changed
From-To: freebsd-doc->dru

I'll take this one.
Comment 2 Dru Lavigne freebsd_committer freebsd_triage 2014-04-16 00:36:29 UTC
State Changed
From-To: open->closed

Fixed in r44571.