X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=lttng-calibrate.c;h=55cb1c46ff2d3c726b2cde2efccacf534d3a598f;hb=1b25fe5879436a90fd22a731e9d3371807e78ba1;hp=0bf413d461d18c8ab3397143f31ee48a9b07ab9a;hpb=9b4a21cced19f3c661fdf5e08d40688ff2539ad7;p=lttng-modules.git diff --git a/lttng-calibrate.c b/lttng-calibrate.c index 0bf413d4..55cb1c46 100644 --- a/lttng-calibrate.c +++ b/lttng-calibrate.c @@ -1,25 +1,38 @@ /* * lttng-calibrate.c * - * Copyright 2011 (c) - Mathieu Desnoyers - * * LTTng probe calibration. * - * Dual LGPL v2.1/GPL v2 license. + * Copyright (C) 2010-2012 Mathieu Desnoyers + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; only + * version 2.1 of the License. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "ltt-debugfs-abi.h" -#include "ltt-events.h" +#include +#include +noinline void lttng_calibrate_kretprobe(void) { asm volatile (""); } -int lttng_calibrate(struct lttng_calibrate *calibrate) +int lttng_calibrate(struct lttng_kernel_calibrate *calibrate) { switch (calibrate->type) { - case LTTNG_CALIBRATE_KRETPROBE: + case LTTNG_KERNEL_CALIBRATE_KRETPROBE: lttng_calibrate_kretprobe(); break; default: