- * find_session_ust_trace_by_pid
- *
- * Iterate over the session ust_traces and
- * return a pointer or NULL if not found.
- */
-static struct ltt_ust_trace *find_session_ust_trace_by_pid(
- struct ltt_session *session, pid_t pid)
-{
- struct ltt_ust_trace *iter;
-
- cds_list_for_each_entry(iter, &session->ust_traces, list) {
- if (iter->pid == pid) {
- /* Found */
- return iter;
- }
- }
-
- return NULL;
-}
-
-/*
- * get_trace_count_per_session
- *
- * Return the total count of traces (ust and kernel)
- * for the specified session.
- */
-int get_trace_count_per_session(struct ltt_session *session)
-{
- return session->ust_trace_count + session->kern_session_count;
-}
-
-/*
- * get_traces_per_session
- *
- * Fill the lttng_trace array of all the
- * available trace of the session.