Signed-off-by: David Goulet <david.goulet@polymtl.ca>
lks->kconsumer_fds_sent = 0;
session->kernel_session = lks;
- session->kern_session_count++;
DBG("Kernel session created (fd: %d)", lks->fd);
trace_destroy_kernel_session(session->kernel_session);
/* Extra precaution */
session->kernel_session = NULL;
- /* Decrement session count */
- session->kern_session_count--;
}
}
/* Init kernel session */
new_session->kernel_session = NULL;
- new_session->kern_session_count = 0;
/* Init list */
CDS_INIT_LIST_HEAD(&new_session->ust_traces);
struct cds_list_head ust_traces;
struct ltt_kernel_session *kernel_session;
unsigned int ust_trace_count;
- unsigned int kern_session_count;
pid_t ust_consumer;
};
*/
int get_trace_count_per_session(struct ltt_session *session)
{
- return session->ust_trace_count + session->kern_session_count;
+ return session->ust_trace_count;
}
/*