提交 da66e4e5 编写于 作者: M Mathieu Desnoyers 提交者: Greg Kroah-Hartman

lttng: timing calibration feature

This calibration feature is fairly limited for now, but provides an
example of how this can be performed.
Signed-off-by: NMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 6c19da35
/*
* lttng-calibrate.c
*
* Copyright 2011 (c) - Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
*
* LTTng probe calibration.
*
* Dual LGPL v2.1/GPL v2 license.
*/
#include "ltt-debugfs-abi.h"
#include "ltt-events.h"
noinline
void lttng_calibrate_kretprobe(void)
{
asm volatile ("");
}
int lttng_calibrate(struct lttng_kernel_calibrate *calibrate)
{
switch (calibrate->type) {
case LTTNG_KERNEL_CALIBRATE_KRETPROBE:
lttng_calibrate_kretprobe();
break;
default:
return -EINVAL;
}
return 0;
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册