Fix: ensure power of 2 check handles 64-bit size_t entirely
[lttng-modules.git] / lttng-calibrate.c
... / ...
CommitLineData
1/*
2 * lttng-calibrate.c
3 *
4 * Copyright 2011 (c) - Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
5 *
6 * LTTng probe calibration.
7 *
8 * Dual LGPL v2.1/GPL v2 license.
9 */
10
11#include "lttng-abi.h"
12#include "lttng-events.h"
13
14noinline
15void lttng_calibrate_kretprobe(void)
16{
17 asm volatile ("");
18}
19
20int lttng_calibrate(struct lttng_kernel_calibrate *calibrate)
21{
22 switch (calibrate->type) {
23 case LTTNG_KERNEL_CALIBRATE_KRETPROBE:
24 lttng_calibrate_kretprobe();
25 break;
26 default:
27 return -EINVAL;
28 }
29 return 0;
30}
This page took 0.024009 seconds and 4 git commands to generate.