LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 02-25-2016, 06:24 PM   #1
Skidro
LQ Newbie
 
Registered: Feb 2016
Posts: 1

Rep: Reputation: Disabled
Problem in Making Perf Kernel Counter Work


Hi All,
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 prior revisions) but it doesn't work on Kernel version-4.1 (and later revisions). Basically in the later revisions of Kernel, I am able to read only Software counters (e.g. PERF_COUNT_SW_CPU_CYCLES) but none of the hardware counter (e.g. PERF_COUNT_HW_CACHE_MISSES). More specifically, the hardware counter always reads zero in the kernel revision 4.1 and later. Does anybody have an idea what might be causing this problem and how to fix it?

I will be grateful for any help!

Thanks!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Perf Sees Big Changes With Linux 3.7 Kernel LXer Syndicated Linux News 0 10-02-2012 03:50 PM
what does the columns of perf report (command of perf tool in linux) signifies? viv05 Linux - Software 2 06-01-2012 07:25 AM
Linux kernel perf tool and Slackware cgorac Slackware 0 03-07-2010 01:53 PM
making a FTP account, fedora SSH counter strike server seandan Linux - Newbie 1 10-13-2006 05:20 PM
making counter-strike server but annoying .bin file Nasera24 Linux - Newbie 1 08-16-2003 12:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 10:10 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration