Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 16 Feb 2022 20:16:14 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 261999] [dtruss] dtrace: invalid probe specifier => lstat* not found
Message-ID:  <bug-261999-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D261999

            Bug ID: 261999
           Summary: [dtruss] dtrace: invalid probe specifier =3D> lstat* not
                    found
           Product: Base System
           Version: 12.3-STABLE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: joerg@FreeBSD.org

Plain dtruss(1) on FreeBSD 12.3-stable gives:

# dtruss ls
dtrace: invalid probe specifier=20
#pragma D option quiet
#pragma D option switchrate=3D10

/*
 * Command line arguments
 */
inline int OPT_command   =3D 1;
inline int OPT_follow    =3D 0;
inline int OPT_printid   =3D 0;
inline int OPT_relative  =3D 0;
inline int OPT_elapsed   =3D 0;
inline int OPT_cpu       =3D 0;
inline int OPT_counts    =3D 0;
inline int OPT_pid       =3D 0;
inline int OPT_name      =3D 0;
inline int OPT_trace     =3D 0;
inline int OPT_stack     =3D 0;
inline string NAME       =3D ".";
inline string TRACE      =3D ".";
=E2=80=A6
/* print 3 args, arg0 as a string */
syscall::access*:return,
syscall::stat*:return,=20
syscall::lstat*:return,=20
syscall::readlink*:return,
syscall::open*:return
/self->start/
{
=E2=80=A6

When I run it with DTRACE_DEBUG, I see

=E2=80=A6
libdtrace DEBUG: set context to syscall::access*:return [0] prp=3D0x0
attr=3D[u/u/c] argc=3D0
libdtrace DEBUG: set label to <action list>
libdtrace DEBUG: set label to <NULL>
libdtrace DEBUG: set label to <predicate>
libdtrace DEBUG: set label to <NULL>
libdtrace DEBUG: set context to syscall::stat*:return [0] prp=3D0x0 attr=3D=
[u/u/c]
argc=3D0
libdtrace DEBUG: set label to <action list>
libdtrace DEBUG: set label to <NULL>
libdtrace DEBUG: set label to <predicate>
libdtrace DEBUG: set label to <NULL>
dtrace: invalid probe specifier=20
=E2=80=A6

So apparently, the last correctly parsed probe specifier is
"syscall::stat*:return", then it bails out.

Removing the "syscall::lstat*:return," line makes it work. Note sure why th=
at
probe is missing though.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-261999-227>