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: [email protected]
          Reporter: [email protected]

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.

Reply via email to