| 1 |
// timers tapset |
| 2 |
// |
| 3 |
// Copyright (C) 2009 Red Hat Inc. |
| 4 |
// |
| 5 |
// This file is part of systemtap, and is free software. You can |
| 6 |
// redistribute it and/or modify it under the terms of the GNU General |
| 7 |
// Public License (GPL); either version 2, or (at your option) any |
| 8 |
// later version. |
| 9 |
|
| 10 |
// Most of the timer probes are defined in tapset-timers.cxx; |
| 11 |
// however, timer.profile needs to fall back to perf in certain |
| 12 |
// circumstances. |
| 13 |
|
| 14 |
/** |
| 15 |
* probe timer.profile - timer.profile.tick with a perf fallback on recent kernels |
| 16 |
* |
| 17 |
* This probe behaves identically to timer.profile.tick, except on |
| 18 |
* some recent kernels which lack the underlying profile timer |
| 19 |
* functionality. In those cases, timer.profile falls back to using |
| 20 |
* perf.sw.cpu_clock. */ |
| 21 |
probe timer.profile = timer.profile.tick ! , perf.sw.cpu_clock.sample(1000000) {} |
| 22 |
|
| 23 |
// This is used to pattern match for a .hz extension |
| 24 |
probe timer.profile.freq = perf.sw.cpu_clock {} |