projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Log agent reply in disable_event()
[lttng-tools.git]
/
src
/
bin
/
lttng-sessiond
/
agent.c
diff --git
a/src/bin/lttng-sessiond/agent.c
b/src/bin/lttng-sessiond/agent.c
index b69e929ca0eda857aaa233e483df05b6191e085b..ab6905190e0eb7082923832398fdababae09efbc 100644
(file)
--- a/
src/bin/lttng-sessiond/agent.c
+++ b/
src/bin/lttng-sessiond/agent.c
@@
-361,6
+361,7
@@
static int enable_event(struct agent_app *app, struct agent_event *event)
{
int ret;
uint64_t data_size;
{
int ret;
uint64_t data_size;
+ uint32_t reply_ret_code;
struct lttcomm_agent_enable msg;
struct lttcomm_agent_generic_reply reply;
struct lttcomm_agent_enable msg;
struct lttcomm_agent_generic_reply reply;
@@
-392,7
+393,9
@@
static int enable_event(struct agent_app *app, struct agent_event *event)
goto error_io;
}
goto error_io;
}
- switch (be32toh(reply.ret_code)) {
+ reply_ret_code = be32toh(reply.ret_code);
+ log_reply_code(reply_ret_code);
+ switch (reply_ret_code) {
case AGENT_RET_CODE_SUCCESS:
break;
case AGENT_RET_CODE_UNKNOWN_NAME:
case AGENT_RET_CODE_SUCCESS:
break;
case AGENT_RET_CODE_UNKNOWN_NAME:
@@
-423,6
+426,7
@@
static int disable_event(struct agent_app *app, struct agent_event *event)
{
int ret;
uint64_t data_size;
{
int ret;
uint64_t data_size;
+ uint32_t reply_ret_code;
struct lttcomm_agent_disable msg;
struct lttcomm_agent_generic_reply reply;
struct lttcomm_agent_disable msg;
struct lttcomm_agent_generic_reply reply;
@@
-452,7
+456,9
@@
static int disable_event(struct agent_app *app, struct agent_event *event)
goto error_io;
}
goto error_io;
}
- switch (be32toh(reply.ret_code)) {
+ reply_ret_code = be32toh(reply.ret_code);
+ log_reply_code(reply_ret_code);
+ switch (reply_ret_code) {
case AGENT_RET_CODE_SUCCESS:
break;
case AGENT_RET_CODE_UNKNOWN_NAME:
case AGENT_RET_CODE_SUCCESS:
break;
case AGENT_RET_CODE_UNKNOWN_NAME:
This page took
0.024228 seconds
and
4
git commands to generate.