projects
/
lttng-modules.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Cleanup: Move lttng-modules instrumentation headers
[lttng-modules.git]
/
lttng-calibrate.c
diff --git
a/lttng-calibrate.c
b/lttng-calibrate.c
index 45c01e32f73d3c028d5fb632f0cda3a0206bfbab..38863194672aafbc6c88d2b1f6d67758fe5e54bb 100644
(file)
--- a/
lttng-calibrate.c
+++ b/
lttng-calibrate.c
@@
-1,25
+1,26
@@
-/*
- * lttng-calibrate.c
+/* SPDX-License-Identifier: (GPL-2.0-only or LGPL-2.1-only)
*
*
- *
Copyright 2011 (c) - Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
+ *
lttng-calibrate.c
*
* LTTng probe calibration.
*
*
* LTTng probe calibration.
*
- *
Dual LGPL v2.1/GPL v2 license.
+ *
Copyright (C) 2010-2012 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
*/
*/
-#include
"ltt-debugfs-abi.h"
-#include
"ltt-events.h"
+#include
<lttng/abi.h>
+#include
<lttng/events.h>
+noinline
void lttng_calibrate_kretprobe(void)
{
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) {
{
switch (calibrate->type) {
- case LTTNG_CALIBRATE_KRETPROBE:
-
calibrate->u.kretprobe.addr = <tng_calibrate_kretprobe
;
+ case LTTNG_
KERNEL_
CALIBRATE_KRETPROBE:
+
lttng_calibrate_kretprobe()
;
break;
default:
return -EINVAL;
break;
default:
return -EINVAL;
This page took
0.024424 seconds
and
4
git commands to generate.