X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=src%2Fcommon%2Fkernel-ctl%2Fkernel-ctl.h;h=4ef1b879562774a87a57bd3bdab41a300203912a;hb=90d13b3d56b65b0895251c8bf2fc22d8b8da289e;hp=ea2aa581928084cdaa4eb9aea4d0ff6ddbfa2277;hpb=1be4792f346ea9a05cfc0acd38e295417c67d122;p=lttng-tools.git diff --git a/src/common/kernel-ctl/kernel-ctl.h b/src/common/kernel-ctl/kernel-ctl.h index ea2aa5819..4ef1b8795 100644 --- a/src/common/kernel-ctl/kernel-ctl.h +++ b/src/common/kernel-ctl/kernel-ctl.h @@ -36,10 +36,27 @@ int kernctl_start_session(int fd); int kernctl_stop_session(int fd); int kernctl_tracepoint_list(int fd); +int kernctl_syscall_list(int fd); int kernctl_tracer_version(int fd, struct lttng_kernel_tracer_version *v); int kernctl_wait_quiescent(int fd); int kernctl_calibrate(int fd, struct lttng_kernel_calibrate *calibrate); +int kernctl_enable_syscall(int fd, const char *syscall_name); +int kernctl_disable_syscall(int fd, const char *syscall_name); + +/* + * kernctl_syscall_mask - Get syscall mask associated to a channel FD. + * + * The parameter @syscall_mask should initially be either NULL or point + * to memory allocated with malloc(3) or realloc(3). When the function + * returns, it will point to a memory area of the size required for the + * bitmask (using realloc(3) to resize the memory). + * + * It returns 0 if OK, -1 on error. In all cases (error and OK), + * @syscall_mask should be freed by the caller with free(3). + */ +int kernctl_syscall_mask(int fd, char **syscall_mask, + uint32_t *nr_bits); /* Buffer operations */ @@ -67,4 +84,13 @@ int kernctl_put_subbuf(int fd); int kernctl_buffer_flush(int fd); +/* index */ +int kernctl_get_timestamp_begin(int fd, uint64_t *timestamp_begin); +int kernctl_get_timestamp_end(int fd, uint64_t *timestamp_end); +int kernctl_get_events_discarded(int fd, uint64_t *events_discarded); +int kernctl_get_content_size(int fd, uint64_t *content_size); +int kernctl_get_packet_size(int fd, uint64_t *packet_size); +int kernctl_get_stream_id(int fd, uint64_t *stream_id); +int kernctl_get_current_timestamp(int fd, uint64_t *ts); + #endif /* _LTTNG_KERNEL_CTL_H */