Update calibration v2.0-pre4
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 29 Jul 2011 16:08:38 +0000 (12:08 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 29 Jul 2011 16:08:38 +0000 (12:08 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
ltt-debugfs-abi.h
lttng-calibrate.c

index 3a2b81f14bb35fcbd4bd0c352ff7e322b056cd33..f041476f259696a58c55d3de27f41cdc8e9f9599 100644 (file)
@@ -87,11 +87,6 @@ enum lttng_calibrate_type {
 
 struct lttng_calibrate {
        enum lttng_calibrate_type type; /* type (input) */
-       union {
-               struct {
-                       uint64_t addr;  /* address to probe (output) */
-               } kretprobe;
-       } u;
 };
 
 enum lttng_kernel_context_type {
index 45c01e32f73d3c028d5fb632f0cda3a0206bfbab..0bf413d461d18c8ab3397143f31ee48a9b07ab9a 100644 (file)
 
 void lttng_calibrate_kretprobe(void)
 {
+       asm volatile ("");
 }
 
 int lttng_calibrate(struct lttng_calibrate *calibrate)
 {
        switch (calibrate->type) {
        case LTTNG_CALIBRATE_KRETPROBE:
-               calibrate->u.kretprobe.addr = &lttng_calibrate_kretprobe;
+               lttng_calibrate_kretprobe();
                break;
        default:
                return -EINVAL;
This page took 0.027778 seconds and 4 git commands to generate.