From: Mathieu Desnoyers Date: Thu, 12 Dec 2019 18:17:38 +0000 (-0500) Subject: relayd: viewer_session: expose viewer_session_set_trace_chunk_copy symbol X-Git-Tag: v2.12.0-rc1~121 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=b3ab5004b1b4ad1cec80cd5ef25fb6ea835e13f8;p=lttng-tools.git relayd: viewer_session: expose viewer_session_set_trace_chunk_copy symbol Expose viewer_session_set_trace_chunk_copy() so it can be used from relayd live.c. Needed for clear feature. Signed-off-by: Mathieu Desnoyers Change-Id: Ie5892353a13a80481da52f847e691a984e02000f Signed-off-by: Jérémie Galarneau --- diff --git a/src/bin/lttng-relayd/viewer-session.c b/src/bin/lttng-relayd/viewer-session.c index 20f3d0e43..1d9fdf47a 100644 --- a/src/bin/lttng-relayd/viewer-session.c +++ b/src/bin/lttng-relayd/viewer-session.c @@ -41,7 +41,7 @@ end: return vsession; } -static int viewer_session_set_trace_chunk_copy(struct relay_viewer_session *vsession, +int viewer_session_set_trace_chunk_copy(struct relay_viewer_session *vsession, struct lttng_trace_chunk *relay_session_trace_chunk) { int ret = 0; diff --git a/src/bin/lttng-relayd/viewer-session.h b/src/bin/lttng-relayd/viewer-session.h index d57337926..f6b5a60ef 100644 --- a/src/bin/lttng-relayd/viewer-session.h +++ b/src/bin/lttng-relayd/viewer-session.h @@ -55,5 +55,7 @@ int viewer_session_is_attached(struct relay_viewer_session *vsession, struct relay_session *session); void viewer_session_close_one_session(struct relay_viewer_session *vsession, struct relay_session *session); +int viewer_session_set_trace_chunk_copy(struct relay_viewer_session *vsession, + struct lttng_trace_chunk *relay_session_trace_chunk); #endif /* _VIEWER_SESSION_H */