}
/* Quiescent wait after starting trace */
- kernel_wait_quiescent(wpipe);
+ kernel_wait_quiescent(kernel_tracer_fd);
ksess->started = 1;
{
struct ltt_kernel_channel *kchan;
- /* Mandatory for a kernel channel. */
- assert(wpipe > 0);
-
kchan = trace_kernel_get_channel_by_name(attr->name,
session->kernel_session);
if (kchan == NULL) {
goto error;
}
- kernel_wait_quiescent(wpipe);
+ kernel_wait_quiescent(kernel_tracer_fd);
/*
* If the session was previously started, start as well this newly
* Command LTTNG_ADD_CONTEXT processed by the client thread.
*/
int cmd_add_context(struct ltt_session *session, int domain,
- char *channel_name, char *event_name, struct lttng_event_context *ctx,
- int kwpipe)
+ char *channel_name, struct lttng_event_context *ctx, int kwpipe)
{
int ret;
}
/* Add kernel context to kernel tracer */
- ret = context_kernel_add(session->kernel_session, ctx,
- event_name, channel_name);
+ ret = context_kernel_add(session->kernel_session, ctx, channel_name);
if (ret != LTTNG_OK) {
goto error;
}
free(attr);
}
-
- ret = context_ust_add(usess, domain, ctx, event_name, channel_name);
+ ret = context_ust_add(usess, domain, ctx, channel_name);
if (ret != LTTNG_OK) {
goto error;
}
* Command LTTNG_SET_FILTER processed by the client thread.
*/
int cmd_set_filter(struct ltt_session *session, int domain,
- char *channel_name, char *event_name,
+ char *channel_name, struct lttng_event *event,
struct lttng_filter_bytecode *bytecode)
{
int ret;
{
struct ltt_ust_session *usess = session->ust_session;
- ret = filter_ust_set(usess, domain, bytecode, event_name, channel_name);
+ ret = filter_ust_set(usess, domain, bytecode, event, channel_name);
if (ret != LTTNG_OK) {
goto error;
}