Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
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 {
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 = <tng_calibrate_kretprobe;
+ lttng_calibrate_kretprobe();
break;
default:
return -EINVAL;