Within include/linux/sunrpc/clnt.h:struct rpc_cltn, the cl_clid field
is an unsigned integer, which is the type expected by the tracepoint
signature.
However, looking into net/sunrpc/clnt.c:rpc_alloc_clid(), its allocation
considers negative signed integer as errors.
Therefore, in order to properly show "-1" in the trace output (rather
than MAX_INT) when called with a NULL task->tk_client, move to a
signed integer as backing type for the client_id field.
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
TP_FIELDS(
ctf_integer(unsigned int, task_id, task->tk_pid)
TP_FIELDS(
ctf_integer(unsigned int, task_id, task->tk_pid)
- ctf_integer(unsigned int, client_id, task->tk_client->cl_clid)
+ ctf_integer(int, client_id, task->tk_client->cl_clid)
ctf_integer(int, status, task->tk_status)
)
)
ctf_integer(int, status, task->tk_status)
)
)
TP_FIELDS(
ctf_integer(unsigned int, task_id, task->tk_pid)
TP_FIELDS(
ctf_integer(unsigned int, task_id, task->tk_pid)
- ctf_integer(unsigned int, client_id, task->tk_client->cl_clid)
+ ctf_integer(int, client_id, task->tk_client->cl_clid)
ctf_integer(int, status, task->tk_status)
)
)
ctf_integer(int, status, task->tk_status)
)
)
TP_FIELDS(
ctf_integer(unsigned int, task_id, task->tk_pid)
TP_FIELDS(
ctf_integer(unsigned int, task_id, task->tk_pid)
- ctf_integer(unsigned int, client_id, task->tk_client->cl_clid)
+ ctf_integer(int, client_id, task->tk_client->cl_clid)
ctf_integer(int, status, task->tk_status)
)
)
ctf_integer(int, status, task->tk_status)
)
)
TP_FIELDS(
ctf_integer(unsigned int, task_id, task->tk_pid)
TP_FIELDS(
ctf_integer(unsigned int, task_id, task->tk_pid)
- ctf_integer(unsigned int, client_id, task->tk_client->cl_clid)
+ ctf_integer(int, client_id, task->tk_client->cl_clid)
ctf_integer(int, status, status)
)
)
ctf_integer(int, status, status)
)
)
TP_FIELDS(
ctf_integer(unsigned int, task_id, task->tk_pid)
TP_FIELDS(
ctf_integer(unsigned int, task_id, task->tk_pid)
- ctf_integer(unsigned int, client_id, task->tk_client ? task->tk_client->cl_clid : -1)
+ ctf_integer(int, client_id, task->tk_client ?
+ task->tk_client->cl_clid : -1)
ctf_integer_hex(const void *, action, action)
ctf_integer(unsigned long, runstate, task->tk_runstate)
ctf_integer(int, status, task->tk_status)
ctf_integer_hex(const void *, action, action)
ctf_integer(unsigned long, runstate, task->tk_runstate)
ctf_integer(int, status, task->tk_status)
TP_FIELDS(
ctf_integer(unsigned int, task_id, task->tk_pid)
TP_FIELDS(
ctf_integer(unsigned int, task_id, task->tk_pid)
- ctf_integer(unsigned int, client_id, task->tk_client ?
+ ctf_integer(int, client_id, task->tk_client ?
task->tk_client->cl_clid : -1)
ctf_integer(unsigned long, timeout, task->tk_timeout)
ctf_integer(unsigned long, runstate, task->tk_runstate)
task->tk_client->cl_clid : -1)
ctf_integer(unsigned long, timeout, task->tk_timeout)
ctf_integer(unsigned long, runstate, task->tk_runstate)
TP_FIELDS(
ctf_integer(unsigned int, task_id, task->tk_pid)
TP_FIELDS(
ctf_integer(unsigned int, task_id, task->tk_pid)
- ctf_integer(unsigned int, client_id, task->tk_client ? task->tk_client->cl_clid : -1)
+ ctf_integer(int, client_id, task->tk_client ?
+ task->tk_client->cl_clid : -1)
ctf_integer_hex(const void *, action, action)
ctf_integer(unsigned long, runstate, task->tk_runstate)
ctf_integer(int, status, task->tk_status)
ctf_integer_hex(const void *, action, action)
ctf_integer(unsigned long, runstate, task->tk_runstate)
ctf_integer(int, status, task->tk_status)
TP_FIELDS(
ctf_integer(unsigned int, task_id, task->tk_pid)
TP_FIELDS(
ctf_integer(unsigned int, task_id, task->tk_pid)
- ctf_integer(unsigned int, client_id, task->tk_client->cl_clid)
+ ctf_integer(int, client_id, task->tk_client ?
+ task->tk_client->cl_clid : -1)
ctf_integer(unsigned long, timeout, task->tk_timeout)
ctf_integer(unsigned long, runstate, task->tk_runstate)
ctf_integer(int, status, task->tk_status)
ctf_integer(unsigned long, timeout, task->tk_timeout)
ctf_integer(unsigned long, runstate, task->tk_runstate)
ctf_integer(int, status, task->tk_status)