projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Cleanup: ua_sess is never used create_ust_app_channel_context()
[lttng-tools.git]
/
src
/
bin
/
lttng-sessiond
/
ust-app.c
diff --git
a/src/bin/lttng-sessiond/ust-app.c
b/src/bin/lttng-sessiond/ust-app.c
index 7da6f1aae821394abe9359709efb27ad8870baac..67dac65d56f6fcc4e108293c8655d1499d0f83e7 100644
(file)
--- a/
src/bin/lttng-sessiond/ust-app.c
+++ b/
src/bin/lttng-sessiond/ust-app.c
@@
-979,7
+979,7
@@
end:
* Alloc new UST app session.
*/
static
* Alloc new UST app session.
*/
static
-struct ust_app_session *alloc_ust_app_session(
struct ust_app *app
)
+struct ust_app_session *alloc_ust_app_session(
void
)
{
struct ust_app_session *ua_sess;
{
struct ust_app_session *ua_sess;
@@
-2171,7
+2171,7
@@
static int find_or_create_ust_app_session(struct ltt_ust_session *usess,
if (ua_sess == NULL) {
DBG2("UST app pid: %d session id %" PRIu64 " not found, creating it",
app->pid, usess->id);
if (ua_sess == NULL) {
DBG2("UST app pid: %d session id %" PRIu64 " not found, creating it",
app->pid, usess->id);
- ua_sess = alloc_ust_app_session(
app
);
+ ua_sess = alloc_ust_app_session();
if (ua_sess == NULL) {
/* Only malloc can failed so something is really wrong */
ret = -ENOMEM;
if (ua_sess == NULL) {
/* Only malloc can failed so something is really wrong */
ret = -ENOMEM;
@@
-2347,8
+2347,7
@@
end:
* Called with UST app session lock held and a RCU read side lock.
*/
static
* Called with UST app session lock held and a RCU read side lock.
*/
static
-int create_ust_app_channel_context(struct ust_app_session *ua_sess,
- struct ust_app_channel *ua_chan,
+int create_ust_app_channel_context(struct ust_app_channel *ua_chan,
struct lttng_ust_context_attr *uctx,
struct ust_app *app)
{
struct lttng_ust_context_attr *uctx,
struct ust_app *app)
{
@@
-5224,7
+5223,7
@@
int ust_app_add_ctx_channel_glb(struct ltt_ust_session *usess,
}
ua_chan = caa_container_of(ua_chan_node, struct ust_app_channel,
node);
}
ua_chan = caa_container_of(ua_chan_node, struct ust_app_channel,
node);
- ret = create_ust_app_channel_context(ua_
sess, ua_
chan, &uctx->ctx, app);
+ ret = create_ust_app_channel_context(ua_chan, &uctx->ctx, app);
if (ret < 0) {
goto next_app;
}
if (ret < 0) {
goto next_app;
}
@@
-6149,8
+6148,7
@@
int ust_app_uid_get_channel_runtime_stats(uint64_t ust_session_id,
*lost = 0;
ret = buffer_reg_uid_consumer_channel_key(
*lost = 0;
ret = buffer_reg_uid_consumer_channel_key(
- buffer_reg_uid_list, ust_session_id,
- uchan_id, &consumer_chan_key);
+ buffer_reg_uid_list, uchan_id, &consumer_chan_key);
if (ret < 0) {
/* Not found */
ret = 0;
if (ret < 0) {
/* Not found */
ret = 0;
This page took
0.025522 seconds
and
4
git commands to generate.