File: benchmark-oprofile

package info (click to toggle)
cdist 7.0.0-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 9,992 kB
  • sloc: sh: 16,815; python: 9,199; makefile: 344; awk: 261
file content (23 lines) | stat: -rwxr-xr-x 405 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/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"