Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dtruss and statsnoop are broken on FreeBSD 12 #14

Open
seschwar opened this issue Jan 4, 2019 · 2 comments
Open

dtruss and statsnoop are broken on FreeBSD 12 #14

seschwar opened this issue Jan 4, 2019 · 2 comments

Comments

@seschwar
Copy link

seschwar commented Jan 4, 2019

Trying to execute dtruss or statsnoop immediately leads to errors on FreeBSD 12:

# dtruss true
dtrace: invalid probe specifier 
(...)
: probe description syscall::lstat*:return does not match any probes
# statsnoop
dtrace: invalid probe specifier 
(...)
: probe description syscall::stat:entry does not match any probes

Some version information:

$ uname -a
FreeBSD epiphron 12.0-RELEASE FreeBSD 12.0-RELEASE r341666 GENERIC  amd64
$ freebsd-version
12.0-RELEASE-p1
$ pkg query %v dtrace-toolkit
1.0_4
@grahamperrin
Copy link

From https://www.freshports.org/sysutils/dtrace-toolkit/#message:

Many of the DTraceToolkit scripts will not work as they are either too Solaris-specific or use probes which are unsupported at this time on FreeBSD.

@grahamperrin
Copy link

grahamperrin commented Nov 20, 2021

Similarly (FreeBSD 14.0-CURRENT),

root@mowa219-gjp4-8570p-freebsd:~ # sudo /usr/local/share/dtrace-toolkit/Bin/bitesize.d
dtrace: failed to compile script /usr/local/share/dtrace-toolkit/Bin/bitesize.d: line 1: b_bcount is not a member of struct bio
root@mowa219-gjp4-8570p-freebsd:~ # sudo /usr/local/share/dtrace-toolkit/Disk/bitesize.d
dtrace: failed to compile script /usr/local/share/dtrace-toolkit/Disk/bitesize.d: line 1: b_bcount is not a member of struct bio
root@mowa219-gjp4-8570p-freebsd:~ # 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants