Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7987771
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T12:14:41+00:00 2026-06-04T12:14:41+00:00

I want to collect the performance counter numbers while running some workload. This can

  • 0

I want to collect the performance counter numbers while running some workload.
This can be done easily using existing LAPI performance counter infrastructure.
But, I want some more statistics like

  1. Number of instructions in ring level 0,1,2,3
  2. Number of load requests for l1 cache by different ring levels
  3. Length of a ring-level switch

So, effectively I want distinction between memory accesses of operating system and application.

Can someone please guide me as to how to do this ?
PS : I have not used performance counters before. So, things that may seem a bit trivial to you may actually help me. Thanks

PS : Is there any way to obtain execution trace and the memory access trace of a system without changing application behavior.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T12:14:42+00:00Added an answer on June 4, 2026 at 12:14 pm

    You can use hardware performance counter like perf.

    Modern hardware provides hardware performance counter, so there are pretty good chances that your machine has this feature. Also you might need to put kernel drivers for it. (on ubuntu sudo apt-get is magic for this).

    A little description of perf (imported from above link)

    Perf is a profiler tool for Linux 2.6+ based systems that abstracts
    away CPU hardware differences in Linux performance measurements and
    presents a simple commandline interface. Perf is based on the
    perf_events interface exported by recent versions of the Linux kernel.

    The perf tool supports a list of measurable events

    where those events are listed in above link.

    Say out of many events, you want to get stats of cycles event for below

    perf stat -e cycles:u -e cycles:k -e cycles dd if=/dev/zero of=/dev/null count=100000
    where u and k stands user and kernel respectively. you can also put all the events by separating them using comma.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to collect some useful & common animatios in ios. Is there any
want to know why String behaves like value type while using ==. String s1
I want to collect the hang dumps using adplus. Do I have to run
I want to collect device attributes and send them to the mdm server using
I'm using Html Agility Pack to fetch a webpage. I want to collect all
I want to collect performance data from a Windows 2008 R2 Server with PowerShell.
I am new to android and working on accelerometer. I want to collect 20
I want to grep my server logs to collect all of the unique IP
I want my C# program to collect data. Then, when the OK button is
I have this script that collects data from users and I want to check

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.