return 0;
case LTTNG_KERNEL_CALIBRATE:
{
- struct lttng_calibrate __user *ucalibrate =
- (struct lttng_calibrate __user *) arg;
- struct lttng_calibrate calibrate;
+ struct lttng_kernel_calibrate __user *ucalibrate =
+ (struct lttng_kernel_calibrate __user *) arg;
+ struct lttng_kernel_calibrate calibrate;
int ret;
if (copy_from_user(&calibrate, ucalibrate, sizeof(calibrate)))
uint32_t sublevel;
};
-enum lttng_calibrate_type {
- LTTNG_CALIBRATE_KRETPROBE,
+enum lttng_kernel_calibrate_type {
+ LTTNG_KERNEL_CALIBRATE_KRETPROBE,
};
-struct lttng_calibrate {
- enum lttng_calibrate_type type; /* type (input) */
+struct lttng_kernel_calibrate {
+ enum lttng_kernel_calibrate_type type; /* type (input) */
};
enum lttng_kernel_context_type {
#define LTTNG_KERNEL_TRACEPOINT_LIST _IO(0xF6, 0x42)
#define LTTNG_KERNEL_WAIT_QUIESCENT _IO(0xF6, 0x43)
#define LTTNG_KERNEL_CALIBRATE \
- _IOWR(0xF6, 0x44, struct lttng_calibrate)
+ _IOWR(0xF6, 0x44, struct lttng_kernel_calibrate)
/* Session FD ioctl */
#define LTTNG_KERNEL_METADATA \
}
#endif
-int lttng_calibrate(struct lttng_calibrate *calibrate);
+int lttng_calibrate(struct lttng_kernel_calibrate *calibrate);
extern const struct file_operations lttng_tracepoint_list_fops;
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: