public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* [Bug translator/13820] New: timer.profile(NNN) variant using perf probes
@ 2012-03-08  1:34 fche at redhat dot com
  2012-03-08  1:49 ` [Bug translator/13820] " fche at redhat dot com
  2015-12-02 21:30 ` flu at redhat dot com
  0 siblings, 2 replies; 3+ messages in thread
From: fche at redhat dot com @ 2012-03-08  1:34 UTC (permalink / raw)
  To: systemtap

http://sourceware.org/bugzilla/show_bug.cgi?id=13820

             Bug #: 13820
           Summary: timer.profile(NNN) variant using perf probes
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: translator
        AssignedTo: systemtap@sourceware.org
        ReportedBy: fche@redhat.com
    Classification: Unclassified


It would be nice to have some syntactic sugar implemented in the
translator to present a profiling/backtrace-capable probe point
at arbitrary frequencies, and implement them in terms of 
perf.hw.cpu_cycles (unscaled variant if possible), related to
the cpu core speed and the script-requested Hz rate.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

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

* [Bug translator/13820] timer.profile(NNN) variant using perf probes
  2012-03-08  1:34 [Bug translator/13820] New: timer.profile(NNN) variant using perf probes fche at redhat dot com
@ 2012-03-08  1:49 ` fche at redhat dot com
  2015-12-02 21:30 ` flu at redhat dot com
  1 sibling, 0 replies; 3+ messages in thread
From: fche at redhat dot com @ 2012-03-08  1:49 UTC (permalink / raw)
  To: systemtap

http://sourceware.org/bugzilla/show_bug.cgi?id=13820

--- Comment #1 from Frank Ch. Eigler <fche at redhat dot com> 2012-03-08 01:48:28 UTC ---
e.g.

  probe timer.profile.hz(997) { }

could map on a 2000 MHz core to perf.hw.cpu_clock

  probe perf.type(0).config(0).sample(2006018) { }

(where 2006018 would be 2,000,000,000 / 997).
This would have to be calculated at module startup time.
And it may be that we'd actually need a more complicated
function, or even some sort of baby PLL, to approximate
the desired frequency.

It would probably be unwise to map timer.{hz,ms,etc.}(NNN)
to this because this uses up scarce resources, so can't be
unprivileged-safe.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

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

* [Bug translator/13820] timer.profile(NNN) variant using perf probes
  2012-03-08  1:34 [Bug translator/13820] New: timer.profile(NNN) variant using perf probes fche at redhat dot com
  2012-03-08  1:49 ` [Bug translator/13820] " fche at redhat dot com
@ 2015-12-02 21:30 ` flu at redhat dot com
  1 sibling, 0 replies; 3+ messages in thread
From: flu at redhat dot com @ 2015-12-02 21:30 UTC (permalink / raw)
  To: systemtap

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

Felix Lu <flu at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |flu at redhat dot com
         Resolution|---                         |FIXED

--- Comment #2 from Felix Lu <flu at redhat dot com> ---
Added a probe point timer.profile.freq.hz(N).

This is only accurate up to 100 hz.

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

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

end of thread, other threads:[~2015-12-02 21:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-03-08  1:34 [Bug translator/13820] New: timer.profile(NNN) variant using perf probes fche at redhat dot com
2012-03-08  1:49 ` [Bug translator/13820] " fche at redhat dot com
2015-12-02 21:30 ` flu 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).