Questions tagged [perf]

Perf is a profiler tool for Linux 2.6+ based systems.

Perf is a profiling tool for Linux 2.6+ based systems that uses the perf_events kernel interface to provide a command-line interface to underlying hardware, software and kernel performance counters. It abstracts away differences in performance counters implemented across different CPU architectures, allowing consistency across different hardware.

See also the perf wiki.

1032 questions
0
votes
1 answer

Understanding memory pressure using perf

I am trying to profile an application using perf and I am for now interested only in the traffic to/from DRAM. I was not able to understand from the results what is the throughput this application is getting from DRAM. This is how I invoked the perf…
igon
  • 3,016
  • 1
  • 22
  • 37
0
votes
1 answer

Display cumulative cycles in perf graph

I would like to see the fraction of time spent in a function and all its descendants using perf report. That is, if I have something like void foo() { biz(); // 3,300 cycles baz(); // 3,300 cycles // ... 100 cycles } int main() { …
JRG
  • 2,065
  • 2
  • 14
  • 29
0
votes
0 answers

which cache level does cache-misses consider?

As you know, there is an event in Perf called cache-misses. there are two or three levels of cache in multi-core systems. May i know cache which of them is considered by cache-misses event?
0
votes
1 answer

Upgrading linux perf

The only source code related to perf I could find is in the kernel source, so am not sure what I need to do to get the latest perf. If I upgrade the kernel version (leavin the rest of my distro unchanged), will I now get the latest version of perf…
MK.
  • 3,907
  • 5
  • 34
  • 46
0
votes
0 answers

Oprofile success on android?

I was wondering, has anyone managed to successfully configure oprofile for Android? Specifically, to measure hardware counter events (NOT the standard oprofile timer-interrupt based mode). If so, what model phone did you use, and which kernel…
lietuviuHimnas
  • 135
  • 1
  • 8
0
votes
1 answer

perf tool on android does not impart result

I set the below kernek configs and built the kernel. And separately built perf in kernel/tools/perf using http://kwangwoo.blogspot.in/2011/11/performance-monitoring-on-arm.html CONFIG_HAVE_PERF_EVENTS=y CONFIG_PERF_USE_VMALLOC=y …
0
votes
0 answers

perf not working for some commands?

I'd like to use perf to profile the monkey command on Android, but I got stuck with this. Normally, when I run following: monkey -v -p com.google.android.youtube 500 -it works (it generates 500 user events for youtube) BUT, when I want to get…
0
votes
1 answer

Using perf for application routine tracing

Is it possible to capture the arguments to userspace function in a precompiled binary with the linux perf tool ? I couldn't figure this out via the documentation or google ? If not any other suggestions ? Thanks...
FZ896
  • 11
  • 1
  • 4
0
votes
1 answer

Setting up perf to monitor hardware events

I'm trying to profile a program using perf stat. Unfortunately, I get for all the hardware events. How do I set things up so that it supports hardware events? Do I need to install something else or change some setting? I'm running…
user1033777
  • 199
  • 1
  • 1
  • 4
0
votes
1 answer

Perf reported IP value incomplete

I try to profile my program myprog using perf, and here's what I get: # # Overhead Symbol Shared Object # ........ …
KrahnacK
  • 313
  • 2
  • 7
0
votes
1 answer

what do these trace events stand for?

I just learned to use ftrace and perf and there are some stuff they are in common I don't understand--trace events. I guess they are some kernel internal functions, ftrace will record their name when they're called if they're enabled. Is that right?…
user2539662
  • 130
  • 2
  • 10
0
votes
3 answers

Remove from list by index when index is not contained in another list

Is there a way to make this code more efficient ? if (includeRows != null && includeRows.Count > 0) { for (int i = aList.Count - 1; i >= 0; i--) { if (!includeRows.Exists(j => j == (i + 1))) { aList.RemoveAt(i); …
tsukimi
  • 1,605
  • 2
  • 21
  • 36
-1
votes
2 answers

Why are the result files not being generated for each counter in the new directory?

I am attempting to use the Linux perf tool to monitor counters. I am measuring counters in intervals of 500 milliseconds over a span of 10 minutes. I am trying to output the results of each counter into their own respective output files in a new…
-1
votes
1 answer

Meaning of the [k] symbol in perf report output

What is the meaning of the [k] symbol I can see in the following perf report output: + 63.93% 0.10% sample libc.so.6 [.] __GI___fstatat64 + 63.82% 63.82% sample [unknown] [k] 0xffffffffa90001a2 <----…
imrichardcole
  • 4,633
  • 3
  • 23
  • 45
-1
votes
1 answer

why dose perf stat -a --topdown not support on my system?

I try to use the perf topdown tool to analyze the CPU utilization of my program and find out the bottleneck.Here is the command: perf stat -a --topdown ./benchmark But perf shows that: System does not support topdown My perf tool version is: perf…
komonzhang
  • 67
  • 5
1 2 3
68
69