perf_event is the Linux kernel library and tool to simplify access to performance monitoring utilities infrastructure.

learn more… | top users | synonyms

1
vote
0answers
27 views

Bash check if firefox use internet

I want to check how much internet use Firefox with a shell script. Here I found good examples to see performances. #!/bin/sh free -m | awk 'NR==2{printf "Memory Usage: %s/%sMB (%.2f%%)\n", $3,$2,$3*...
0
votes
0answers
137 views

Missing stack symbols with perf_event's perf report, despite -fno-omit-frame-pointer compilation

I'm struggling getting perf_events to give me stack traces with symbols, despite reading many tutorials on the subject and doing (I think) all the necessary things. It's possible that my local install ...
1
vote
1answer
147 views

Why can't I find hardware cache event in my perf list?

I have a problem in using linux perf on a newly bought laptop: there is no available hardware cache effect in my perf list!!! Well, this is really all important information that I wish to sample!! ...
4
votes
0answers
15 views

Problem in making Perf Kernel Counter work

I have written a kernel module which creates a performance counter via "perf_event_create_kernel_counter" API and then periodically reads its value. My application works on Kernel version-4.0.9 (and ...
0
votes
1answer
109 views

View current kernel parameters?

I saw in my syslog kernel.perf_event_max_sample_rate get changed. I was wondering if I could write a quick script to log this variable every few minutes. Currently it is: sysctl -a | grep kernel....
1
vote
0answers
175 views

How does performance measurement tool 'perf' actually work?

perf is a tool which accesses the performance counter registers of an machine and gives out metrics to user to analyze the system performance. What I am curious about is, when I read the parts of ...
1
vote
1answer
150 views

Incoherent measures with perf record

While trying to get some measures from HPC with perf record, I'm getting some incoherent values, I think. I'm using the next command to get some mesures: perf record -T -F997 -e cache-misses:u,...
0
votes
1answer
267 views

perf error: failed to mmap with 25 (Inappropriate ioctl for device)

I am trying to use perf in a system with 3.8 linux kernel. When I used the following command, error happens: $ perf record -c 100000 -e '{cycles,instructions}:S' ./nonloop 1000 failed to mmap with 25 ...
1
vote
0answers
193 views

Perf Tool Linux - Not counting cycles-t and cycles-ct

am using the Linux Perf tool to monitor certain events for my benchmarking runs. In the event list argument -e, I added cycles-t and cycles-ct since I want to capture them. But both of them always ...
2
votes
1answer
79 views

Understanding Unit Masks on Perf

I'm counting events with perf stat -e. I consulted my processor manufacturer's manual and found the event I'm interested in. However, not only does it have the event number, but it also has a list of ...
2
votes
1answer
767 views

Understanding Perf tool output

I recently installed Perf tool On my platform and wanted to use it for profiling my platform. I started profiling a standalone application.Below command I used perf start ./helloworld ...
2
votes
1answer
5k views

Where Do I get Source package for Perf tool

I am looking for source package of perf tool ,which I wanted to compile for ARM Linux ,I have already set up the cross compile tool chain. I have compiled the the oprofile and got it source(Oprofile-...
4
votes
2answers
5k views

Measure disk IO latencies of a running process

I'm trying to measure the disk IO latencies of a running process to make a histogram. I could do this with DTrace in operating systems that provide it (e.g. as in this Joyent paper), but my ...
1
vote
1answer
99 views

Where is the documentation for perf events?

I cant seem to find documentation on the events listed when you do perf list; can someone point me in the right direction?
1
vote
2answers
2k views

How to analyze profile data from `perf record --a` (system-wide collection)?

I am using perf from linux-2.6.36-gentoo-r4. The /proc/sys/kernel/perf_event_paranoid is set to 0, so there should be no problems from there. Because long-running application I am profiling ...
4
votes
1answer
442 views

Fail to install perf on slackware 13.1

I was trying to install perf on slackware 13.1 When I first ran make at /usr/src/linux/tools/perf I got some errors. And I found this patch http://www.valimar.it/repo/linux/perf_fix-2.6.33.patch And ...
9
votes
1answer
5k views

Do I need root (admin) permissions to run userspace 'perf' tool? (perf events are enabled in Linux kernel)

Do I need to have to run perf userspace tool as system administrator (root), or can I run it (or at least some subcommands) as an ordinary user?
5
votes
1answer
12k views

How to check that perf events are enabled in Linux kernel, and how to install perf userland as non-root?

From what I have checked it looks like kernel side of 'perf' subsystem is enabled on computer I work on. Checking kernel configuration shows the following $ zgrep "_PERF[_= ]" /proc/config.gz ...