You are on page 1of 11

pi@raspberrypi:~/evaluasi/naive $ perf stat -e cpu-cycles,instructions,cachereferences,cache-misses,branch-instructions,cpu-clock,task-clock,pagefaults,context-switches,cpu-migrations,minor-faults,major-faults,alignmentfaults,emulation-faults .

/loop_blocking
Couldn't open result file
Performance counter stats for './loop_blocking':
2170695 cycles
# 0.593 GHz
609385 instructions
# 0.28 insns per cycle
263196 cache-references
# 71.853 M/sec
7738 cache-misses
# 2.940 % of all cache refs
66172 branches
# 18.065 M/sec
3.664114 cpu-clock
3.662969 task-clock
# 0.696 CPUs utilized
43 page-faults
# 0.012 M/sec
2 context-switches
# 0.546 K/sec
0 CPU-migrations
# 0.000 K/sec
43 minor-faults
# 0.012 M/sec
0 major-faults
# 0.000 K/sec
0 alignment-faults
# 0.000 K/sec
0 emulation-faults
# 0.000 K/sec
0.005265078 seconds time elapsed
pi@raspberrypi:~/evaluasi/naive $ perf record -e cpucycles,instructions,cache-references,cache-misses,branch-instructions,cpuclock,task-clock,page-faults,context-switches,cpu-migrations,minor-faults,majorfaults,alignment-faults,emulation-faults ./loop_blocking

Couldn't open result file


[ perf record: Woken up 1 times to write data ]
[ perf record: Captured and wrote 0.022 MB perf.data (~969 samples) ]

pi@raspberrypi:~/evaluasi/naive $ perf report --stdio --sort comm,dso


# ========
# captured on: Sun Apr 10 09:58:57 2016
# hostname : raspberrypi
# os release : 4.1.18-v7+
# perf version : 3.6.0
# arch : armv7l
# nrcpus online : 4
# nrcpus avail : 4
# cpudesc : (null)
# total memory : 948060 kB
# cmdline : /usr/bin/perf record -e cpu-cycles,instructions,cache-references,cac
# event : name = cycles, type = 0, config = 0x0, config1 = 0x0, config2 = 0x0, e
# event : name = instructions, type = 0, config = 0x1, config1 = 0x0, config2 =
# event : name = cache-references, type = 0, config = 0x2, config1 = 0x0,
config
# event : name = cache-misses, type = 0, config = 0x3, config1 = 0x0, config2
=
# event : name = branches, type = 0, config = 0x4, config1 = 0x0, config2 =
0x0,
# event : name = cpu-clock, type = 1, config = 0x0, config1 = 0x0, config2 =
0x0
# event : name = task-clock, type = 1, config = 0x1, config1 = 0x0, config2 =
0x
# event : name = page-faults, type = 1, config = 0x2, config1 = 0x0, config2 =
0
# event : name = context-switches, type = 1, config = 0x3, config1 = 0x0,
config

# event : name = CPU-migrations, type = 1, config = 0x4, config1 = 0x0,


config2
# event : name = minor-faults, type = 1, config = 0x5, config1 = 0x0, config2 =
# event : name = major-faults, type = 1, config = 0x6, config1 = 0x0, config2 =
# event : name = alignment-faults, type = 1, config = 0x7, config1 = 0x0, config
# event : name = emulation-faults, type = 1, config = 0x8, config1 = 0x0, config
# HEADER_CPU_TOPOLOGY info available, use -I to display
# ========
#
# Samples: 60 of event 'cycles'
# Event count (approx.): 4334847
#
# Overhead
Command
Shared Object
# ........ ............. .................
#
86.16% loop_blocking [kernel.kallsyms]
10.41% loop_blocking ld-2.19.so
3.43% loop_blocking libc-2.19.so
#
#
#
#
#
#

Samples: 54 of event 'instructions'


Event count (approx.): 1474898
Overhead
Command
........ ............. .................

Shared Object

82.30% loop_blocking [kernel.kallsyms]


10.65% loop_blocking ld-2.19.so
7.05% loop_blocking libc-2.19.so
#
#
#
#
#
#

Samples: 57 of event 'cache-references'


Event count (approx.): 687265
Overhead
Command
........ ............. .................

Shared Object

83.86% loop_blocking [kernel.kallsyms]


9.63% loop_blocking ld-2.19.so
6.51% loop_blocking libc-2.19.so
#
#
#
#
#
#

Samples: 49 of event 'cache-misses'


Event count (approx.): 21942
Overhead
Command
........ ............. .................

Shared Object

91.71% loop_blocking [kernel.kallsyms]


4.38% loop_blocking libc-2.19.so
3.91% loop_blocking ld-2.19.so
# Samples: 55 of event 'branches'

# Event count (approx.): 174181


#
# Overhead
Command
Shared Object
# ........ ............. .................
#
77.01% loop_blocking [kernel.kallsyms]
16.73% loop_blocking ld-2.19.so
6.26% loop_blocking libc-2.19.so
#
#
#
#
#
#

Samples: 34 of event 'cpu-clock'


Event count (approx.): 8500000
Overhead
Command
........ ............. .................

Shared Object

82.35% loop_blocking [kernel.kallsyms]


14.71% loop_blocking ld-2.19.so
2.94% loop_blocking libc-2.19.so
#
#
#
#
#
#

Samples: 34 of event 'task-clock'


Event count (approx.): 8500000
Overhead
Command
........ ............. .................

Shared Object

82.35% loop_blocking [kernel.kallsyms]


14.71% loop_blocking ld-2.19.so
2.94% loop_blocking libc-2.19.so
#
#
#
#
#
#

Samples: 14 of event 'page-faults'


Event count (approx.): 51
Overhead
Command
........ ............. .................
60.78%
33.33%
3.92%
1.96%

#
#
#
#
#
#

loop_blocking
loop_blocking
loop_blocking
loop_blocking

Shared Object

ld-2.19.so
libc-2.19.so
[kernel.kallsyms]
perf

Samples: 4 of event 'context-switches'


Event count (approx.): 4
Overhead
Command Shared Object
........ ............. .............
100.00% loop_blocking [unknown]

# Samples: 0 of event 'CPU-migrations'

# Event count (approx.): 0


#
# Overhead Command Shared Object
# ........ ....... .............
#
#
#
#
#
#
#

Samples: 14 of event 'minor-faults'


Event count (approx.): 51
Overhead
Command
........ ............. .................
60.78%
33.33%
3.92%
1.96%

loop_blocking
loop_blocking
loop_blocking
loop_blocking

Shared Object

ld-2.19.so
libc-2.19.so
[kernel.kallsyms]
perf

#
#
#
#
#
#

Samples: 0 of event 'major-faults'


Event count (approx.): 0

#
#
#
#
#
#

Samples: 0 of event 'alignment-faults'


Event count (approx.): 0

#
#
#
#
#
#

Samples: 0 of event 'emulation-faults'


Event count (approx.): 0

Overhead Command Shared Object


........ ....... .............

Overhead Command Shared Object


........ ....... .............

Overhead Command Shared Object


........ ....... .............

pi@raspberrypi:~/evaluasi/naive $ perf report --stdio


--dsos=loop_blocking,libc-2.19.so
# ========
# captured on: Sun Apr 10 09:58:57 2016
# hostname : raspberrypi
# os release : 4.1.18-v7+
# perf version : 3.6.0
# arch : armv7l
# nrcpus online : 4
# nrcpus avail : 4
# cpudesc : (null)

# total memory : 948060 kB


# cmdline : /usr/bin/perf record -e cpu-cycles,instructions,cache-references,cac
# event : name = cycles, type = 0, config = 0x0, config1 = 0x0, config2 = 0x0, e
# event : name = instructions, type = 0, config = 0x1, config1 = 0x0, config2 =
# event : name = cache-references, type = 0, config = 0x2, config1 = 0x0,
config
# event : name = cache-misses, type = 0, config = 0x3, config1 = 0x0, config2
=
# event : name = branches, type = 0, config = 0x4, config1 = 0x0, config2 =
0x0,
# event : name = cpu-clock, type = 1, config = 0x0, config1 = 0x0, config2 =
0x0
# event : name = task-clock, type = 1, config = 0x1, config1 = 0x0, config2 =
0x
# event : name = page-faults, type = 1, config = 0x2, config1 = 0x0, config2 =
0
# event : name = context-switches, type = 1, config = 0x3, config1 = 0x0,
config
# event : name = CPU-migrations, type = 1, config = 0x4, config1 = 0x0,
config2
# event : name = minor-faults, type = 1, config = 0x5, config1 = 0x0, config2 =
# event : name = major-faults, type = 1, config = 0x6, config1 = 0x0, config2 =
# event : name = alignment-faults, type = 1, config = 0x7, config1 = 0x0, config
# event : name = emulation-faults, type = 1, config = 0x8, config1 = 0x0, config
# HEADER_CPU_TOPOLOGY info available, use -I to display
# ========
#
# Samples: 1 of event 'cycles'
# Event count (approx.): 148777
#
# Overhead
Command Shared Object
Symbol
# ........ ............. ............. ............
#
100.00% loop_blocking libc-2.19.so [.] _dl_addr
#
#
#
#
#
#

Samples: 2 of event 'instructions'


Event count (approx.): 103998
Overhead
Command Shared Object
........ ............. ............. ............

Symbol

100.00% loop_blocking libc-2.19.so [.] _dl_addr


#
#
#
#
#
#

Samples: 2 of event 'cache-references'


Event count (approx.): 44759
Overhead
Command Shared Object
........ ............. ............. ............

Symbol

100.00% loop_blocking libc-2.19.so [.] _dl_addr

#
#
#
#
#
#

Samples: 1 of event 'cache-misses'


Event count (approx.): 960
Overhead
Command Shared Object
........ ............. ............. ............

Symbol

100.00% loop_blocking libc-2.19.so [.] _dl_addr


#
#
#
#
#
#

Samples: 2 of event 'branches'


Event count (approx.): 10910
Overhead
Command Shared Object
........ ............. ............. ............

Symbol

100.00% loop_blocking libc-2.19.so [.] _dl_addr


#
#
#
#
#
#

Samples: 1 of event 'cpu-clock'


Event count (approx.): 250000
Overhead
Command Shared Object
........ ............. ............. ............

Symbol

100.00% loop_blocking libc-2.19.so [.] _dl_addr


#
#
#
#
#
#

Samples: 1 of event 'task-clock'


Event count (approx.): 250000
Overhead
Command Shared Object
........ ............. ............. ............

Symbol

100.00% loop_blocking libc-2.19.so [.] _dl_addr


#
#
#
#
#
#

Samples: 3 of event 'page-faults'


Event count (approx.): 17
Overhead
Command Shared Object
........ ............. ............. ....................

Symbol

47.06% loop_blocking libc-2.19.so [.] __GI___libc_open


47.06% loop_blocking libc-2.19.so [.] __init_misc
5.88% loop_blocking libc-2.19.so [.] strchr
#
#
#
#
#
#

Samples: 4 of event 'context-switches'


Event count (approx.): 4
Overhead
Command Shared Object Symbol
........ ............. ............. ......
100.00% loop_blocking [unknown]

[.] 00000000

#
#
#
#
#
#

Samples: 0 of event 'CPU-migrations'


Event count (approx.): 0

#
#
#
#
#
#

Samples: 3 of event 'minor-faults'


Event count (approx.): 17

Overhead Command Shared Object Symbol


........ ....... ............. ......

Overhead
Command Shared Object
........ ............. ............. ....................

Symbol

47.06% loop_blocking libc-2.19.so [.] __GI___libc_open


47.06% loop_blocking libc-2.19.so [.] __init_misc
5.88% loop_blocking libc-2.19.so [.] strchr
#
#
#
#
#
#

Samples: 0 of event 'major-faults'


Event count (approx.): 0

#
#
#
#
#
#

Samples: 0 of event 'alignment-faults'


Event count (approx.): 0

#
#
#
#
#
#

Samples: 0 of event 'emulation-faults'


Event count (approx.): 0

Overhead Command Shared Object Symbol


........ ....... ............. ......

Overhead Command Shared Object Symbol


........ ....... ............. ......

Overhead Command Shared Object Symbol


........ ....... ............. ......

#
# (For a higher level overview, try: perf report --sort comm,dso)
#
(END)
(END)
pi@raspberrypi:~/evaluasi/naive $ perf record -e cpu-clock --freq=8000
./loop_blocking

Couldn't open result file


[ perf record: Woken up 1 times to write data ]
[ perf record: Captured and wrote 0.006 MB perf.data (~269 samples) ]
pi@raspberrypi:~/evaluasi/naive $ perf evlist -F
cpu-clock: sample_freq=8000
pi@raspberrypi:~/evaluasi/naive $ perf report --stdio --show-nr-sample
--dsos=loop_blocking
Error:
The perf.data file has no samples!
# dso: loop_blocking
# ========
# captured on: Sun Apr 10 10:06:11 2016
# hostname : raspberrypi
# os release : 4.1.18-v7+
# perf version : 3.6.0
# arch : armv7l
# nrcpus online : 4
# nrcpus avail : 4
# cpudesc : (null)
# total memory : 948060 kB
# cmdline : /usr/bin/perf record -e cpu-clock --freq=8000 ./loop_blocking
# event : name = cpu-clock, type = 1, config = 0x0, config1 = 0x0, config2 =
0x0
# HEADER_CPU_TOPOLOGY info available, use -I to display
# ========
#

You might also like