This module executes a command on a received trigger pulse.
- name: my_command
so_file: libmodule_command.so
config:
command: /path/to/stop_trace.sh
[ stop_trace: false ]
[ allow_concurrent_executions: true ]
trigger:
- dev_name: jitter.new_maxever.trigger
direct_mode: true
power_up: op
depends: timercommand : This specifies which command to execute. In our example this will stop the currently running trace process. (if set to special value `stop-trace` no command will be executed, only tracing is stopped, see below)
stop_trace : When set to true `0\n` will be written to `/sys/kernel/debug/tracing/tracing_on` before executing a shell command.
allow_concurrent_executions : when set to `false` (the default) the command will only be executed again when an earlier execution has finished.
The module needs to be attached to a trigger device.
Command