X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=lttng-calibrate.c;fp=lttng-calibrate.c;h=45c01e32f73d3c028d5fb632f0cda3a0206bfbab;hb=57105fc258cabb75b3a579aaba53b2024fd340e0;hp=0000000000000000000000000000000000000000;hpb=7371f44c2c8ea6e60c0457671af008dd018c0b5f;p=lttng-modules.git diff --git a/lttng-calibrate.c b/lttng-calibrate.c new file mode 100644 index 00000000..45c01e32 --- /dev/null +++ b/lttng-calibrate.c @@ -0,0 +1,28 @@ +/* + * lttng-calibrate.c + * + * Copyright 2011 (c) - Mathieu Desnoyers + * + * LTTng probe calibration. + * + * Dual LGPL v2.1/GPL v2 license. + */ + +#include "ltt-debugfs-abi.h" +#include "ltt-events.h" + +void lttng_calibrate_kretprobe(void) +{ +} + +int lttng_calibrate(struct lttng_calibrate *calibrate) +{ + switch (calibrate->type) { + case LTTNG_CALIBRATE_KRETPROBE: + calibrate->u.kretprobe.addr = <tng_calibrate_kretprobe; + break; + default: + return -EINVAL; + } + return 0; +}