[Bug 295059] dtrace: Probe description does not truncate whitespace (e.g., "dtrace: description 'profile-97 ' matched 2 probes")
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 06 May 2026 15:40:32 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=295059
Bug ID: 295059
Summary: dtrace: Probe description does not truncate whitespace
(e.g., "dtrace: description 'profile-97 ' matched 2
probes")
Product: Base System
Version: Unspecified
Hardware: Any
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: misc
Assignee: bugs@FreeBSD.org
Reporter: 0mp@FreeBSD.org
Script:
dtrace -x stackframes=100 \
-n 'profile-97 /execname == "ls"/ { @[stack()] = count(); } tick-60s {
exit(0); }' \
-o out.stacks
Output:
dtrace: description 'profile-97 ' matched 2 probes
Problem: there is an extra space after profile-97.
It seems like compile_str() crops the name. Perhaps we could also strip leading
and trailing whitespace while here.
--
You are receiving this mail because:
You are the assignee for the bug.