public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* [Bug runtime/19625] New: extern @perf() counter reading support to kernel space
@ 2016-02-12 20:14 fche at redhat dot com
  2017-10-27 17:07 ` [Bug runtime/19625] extend " fche at redhat dot com
  0 siblings, 1 reply; 2+ messages in thread
From: fche at redhat dot com @ 2016-02-12 20:14 UTC (permalink / raw)
  To: systemtap

https://sourceware.org/bugzilla/show_bug.cgi?id=19625

            Bug ID: 19625
           Summary: extern @perf() counter reading support to kernel space
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: runtime
          Assignee: systemtap at sourceware dot org
          Reporter: fche at redhat dot com
  Target Milestone: ---

It appears as though the upstream kernel is growing out its capabilities to
read configured performance counter values from within kernel space.  (Search
via "bpf_perf_event_read".)  This should let systemtap measure perfctr usage
between perhaps arbitrary pairs of events.

See also http://article.gmane.org/gmane.linux.kernel.perf.user/2577 for an
ebpf/perf/llvm C program that should become expressible in a dozen lines of
stap script.

-- 
You are receiving this mail because:
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug runtime/19625] extend @perf() counter reading support to kernel space
  2016-02-12 20:14 [Bug runtime/19625] New: extern @perf() counter reading support to kernel space fche at redhat dot com
@ 2017-10-27 17:07 ` fche at redhat dot com
  0 siblings, 0 replies; 2+ messages in thread
From: fche at redhat dot com @ 2017-10-27 17:07 UTC (permalink / raw)
  To: systemtap

https://sourceware.org/bugzilla/show_bug.cgi?id=19625

Frank Ch. Eigler <fche at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|extern @perf() counter      |extend @perf() counter
                   |reading support to kernel   |reading support to kernel
                   |space                       |space

--- Comment #1 from Frank Ch. Eigler <fche at redhat dot com> ---
See also kernel function perf_event_read_local() and pals.
It may make it possible for perf.* probes to supply a $value context variable.

-- 
You are receiving this mail because:
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-10-27 17:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-02-12 20:14 [Bug runtime/19625] New: extern @perf() counter reading support to kernel space fche at redhat dot com
2017-10-27 17:07 ` [Bug runtime/19625] extend " fche at redhat dot com

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 read-only IMAP folder(s) and NNTP newsgroup(s).