summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorNam Cao <namcao@linutronix.de>2024-10-31 18:14:21 +0300
committerThomas Gleixner <tglx@linutronix.de>2024-11-07 04:47:05 +0300
commit444cb7db4c9f9b5d96be17c38b3e989df7bfabd5 (patch)
tree3cc8406fc58cd8c84696bfdf2df4e56075790638 /tools/perf/scripts/python/stackcollapse.py
parent908a1d775422ba2e27a5e33d0c130b522419e121 (diff)
downloadlinux-444cb7db4c9f9b5d96be17c38b3e989df7bfabd5.tar.xz
hrtimers: Introduce hrtimer_setup_on_stack()
To initialize hrtimer on stack, hrtimer_init_on_stack() needs to be called and also hrtimer::function must be set. This is error-prone and awkward to use. Introduce hrtimer_setup_on_stack() which does both of these things, so that users of hrtimer can be simplified. The new setup function also has a sanity check for the provided function pointer. If NULL, a warning is emitted and a dummy callback installed. hrtimer_init_on_stack() will be removed as soon as all of its users have been converted to the new function. Signed-off-by: Nam Cao <namcao@linutronix.de> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Link: https://lore.kernel.org/all/4b05e2ab3a82c517adf67fabc0f0cd8fe118b97c.1730386209.git.namcao@linutronix.de
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions