linux-perf-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Sebastiano Miano <mianosebastiano@gmail.com>
To: linux-perf-users@vger.kernel.org
Subject: perf-stat: count events for BPF programs
Date: Mon, 5 Dec 2022 13:52:15 +0100	[thread overview]
Message-ID: <CAMENy5rSv0G45yZ-5Wmj9oZCb8XDVCX-oO8RsQ942q-zSF8yCA@mail.gmail.com> (raw)

Dear all,
I have a question regarding the use of the new 'perf stat -b' feature
to collect various events for a specific eBPF program.

I am running the following command on kernel 6.0.9-060009-generic:
sudo ./perf stat -e cycles --bpf-prog 96 --interval-print 1000

but I am unable to get any metric. The output is the following:
#   time                   counts unit              events
     1.001015662    <not supported>      cycles
     2.002171264    <not supported>      cycles
     3.003229801    <not supported>      cycles

any idea/suggestion of which could be the problem?

Thanks,
Sebastiano

                 reply	other threads:[~2022-12-05 12:52 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAMENy5rSv0G45yZ-5Wmj9oZCb8XDVCX-oO8RsQ942q-zSF8yCA@mail.gmail.com \
    --to=mianosebastiano@gmail.com \
    --cc=linux-perf-users@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).