cdist configuration management
Latest manual: https://www.cdi.st/manual/latest/
Home page: https://www.cdi.st
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
405 B
23 lines
405 B
#!/bin/sh -x |
|
|
|
# Cleanup |
|
opcontrol --no-vmlinux |
|
opcontrol --stop |
|
opcontrol --shutdown |
|
opcontrol --reset |
|
|
|
# Record all calls |
|
opcontrol --separate=none |
|
|
|
# NMI conflicts with oprofile |
|
echo 0 > /proc/sys/kernel/nmi_watchdog |
|
|
|
# Select events to be recorded |
|
opcontrol --event=CPU_CLK_UNHALTED:30000:0:1:1 |
|
|
|
opcontrol --start |
|
# The actual programm |
|
"$@" |
|
opcontrol --stop |
|
opcontrol --dump |
|
echo "Output: opreport -l"
|
|
|