Bug 267619

Summary: dtrace: Compiler produces bogus error message: internal error -- token type 316 is not a valid D compilation token
Product: Base System Reporter: Mark Johnston <markj>
Component: binAssignee: freebsd-dtrace (Nobody) <dtrace>
Status: Open ---    
Severity: Affects Some People CC: dtrace, emaste
Priority: --- Keywords: needs-qa
Version: CURRENTFlags: koobs: mfc-stable13?
koobs: mfc-stable12?
Hardware: Any   
OS: Any   

Description Mark Johnston freebsd_committer freebsd_triage 2022-11-07 16:14:18 UTC
mjg@ reports:

# dtrace -n 'fbt::zfs_freebsd_fsync:entry { @[args[0]->a_vp] == count(); }'
dtrace: invalid probe specifier fbt::zfs_freebsd_fsync:entry { @[args[0]->a_vp] == count(); }: internal error -- token type 316 is not a valid D compilation token

The problem is "==" instead of "=" but dtrace should produce a proper error message.