Actions
Bug #15498
opendtrace -A -o should leave /etc/system alone
Start date:
Due date:
% Done:
0%
Estimated time:
Difficulty:
Bite-size
Tags:
Gerrit CR:
External Bug:
Description
It is possible to use -o
with dtrace -A
so that it writes the generated DOF to an alternative file, rather than updating /kernel/drv/dtrace.conf
on the running system.
However, even with this option present, dtrace
will modify /etc/system
. This seems wrong.
Here is the default behaviour, without -o
, where dtrace updates the two system files:
% pfexec dtrace -A -s anon.d dtrace: saved anonymous enabling in /kernel/drv/dtrace.conf dtrace: added forceload directives to /etc/system dtrace: run update_drv(8) or reboot to enable changes
and here is what happens if the -o
option is also provided:
% pfexec dtrace -A -s anon.d -o anon.out dtrace: saved anonymous enabling in anon.out dtrace: added forceload directives to /etc/system <------ still modifies /etc/system dtrace: run update_drv(8) or reboot to enable changes
I propose that if the -o
option is provided, then /etc/system
is left alone, and the message regarding update_drv is also unecessary.
Actions