Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
The bpf syscall and selftests conflicts were trivial overlapping changes. The r8169 change involved moving the added mdelay from 'net' into a different function. A TLS close bug fix overlapped with the splitting of the TLS state into separate TX and RX parts. I just expanded the tests in the bug fix from "ctx->conf == X" into "ctx->tx_conf == X && ctx->rx_conf == X". Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
@@ -15,6 +15,7 @@
|
||||
#define _TRACE_RXRPC_H
|
||||
|
||||
#include <linux/tracepoint.h>
|
||||
#include <linux/errqueue.h>
|
||||
|
||||
/*
|
||||
* Define enums for tracing information.
|
||||
@@ -210,6 +211,20 @@ enum rxrpc_congest_change {
|
||||
rxrpc_cong_saw_nack,
|
||||
};
|
||||
|
||||
enum rxrpc_tx_fail_trace {
|
||||
rxrpc_tx_fail_call_abort,
|
||||
rxrpc_tx_fail_call_ack,
|
||||
rxrpc_tx_fail_call_data_frag,
|
||||
rxrpc_tx_fail_call_data_nofrag,
|
||||
rxrpc_tx_fail_call_final_resend,
|
||||
rxrpc_tx_fail_conn_abort,
|
||||
rxrpc_tx_fail_conn_challenge,
|
||||
rxrpc_tx_fail_conn_response,
|
||||
rxrpc_tx_fail_reject,
|
||||
rxrpc_tx_fail_version_keepalive,
|
||||
rxrpc_tx_fail_version_reply,
|
||||
};
|
||||
|
||||
#endif /* end __RXRPC_DECLARE_TRACE_ENUMS_ONCE_ONLY */
|
||||
|
||||
/*
|
||||
@@ -437,6 +452,19 @@ enum rxrpc_congest_change {
|
||||
EM(RXRPC_CALL_LOCAL_ERROR, "LocalError") \
|
||||
E_(RXRPC_CALL_NETWORK_ERROR, "NetError")
|
||||
|
||||
#define rxrpc_tx_fail_traces \
|
||||
EM(rxrpc_tx_fail_call_abort, "CallAbort") \
|
||||
EM(rxrpc_tx_fail_call_ack, "CallAck") \
|
||||
EM(rxrpc_tx_fail_call_data_frag, "CallDataFrag") \
|
||||
EM(rxrpc_tx_fail_call_data_nofrag, "CallDataNofrag") \
|
||||
EM(rxrpc_tx_fail_call_final_resend, "CallFinalResend") \
|
||||
EM(rxrpc_tx_fail_conn_abort, "ConnAbort") \
|
||||
EM(rxrpc_tx_fail_conn_challenge, "ConnChall") \
|
||||
EM(rxrpc_tx_fail_conn_response, "ConnResp") \
|
||||
EM(rxrpc_tx_fail_reject, "Reject") \
|
||||
EM(rxrpc_tx_fail_version_keepalive, "VerKeepalive") \
|
||||
E_(rxrpc_tx_fail_version_reply, "VerReply")
|
||||
|
||||
/*
|
||||
* Export enum symbols via userspace.
|
||||
*/
|
||||
@@ -460,6 +488,7 @@ rxrpc_propose_ack_traces;
|
||||
rxrpc_propose_ack_outcomes;
|
||||
rxrpc_congest_modes;
|
||||
rxrpc_congest_changes;
|
||||
rxrpc_tx_fail_traces;
|
||||
|
||||
/*
|
||||
* Now redefine the EM() and E_() macros to map the enums to the strings that
|
||||
@@ -1374,6 +1403,62 @@ TRACE_EVENT(rxrpc_resend,
|
||||
__entry->anno)
|
||||
);
|
||||
|
||||
TRACE_EVENT(rxrpc_rx_icmp,
|
||||
TP_PROTO(struct rxrpc_peer *peer, struct sock_extended_err *ee,
|
||||
struct sockaddr_rxrpc *srx),
|
||||
|
||||
TP_ARGS(peer, ee, srx),
|
||||
|
||||
TP_STRUCT__entry(
|
||||
__field(unsigned int, peer )
|
||||
__field_struct(struct sock_extended_err, ee )
|
||||
__field_struct(struct sockaddr_rxrpc, srx )
|
||||
),
|
||||
|
||||
TP_fast_assign(
|
||||
__entry->peer = peer->debug_id;
|
||||
memcpy(&__entry->ee, ee, sizeof(__entry->ee));
|
||||
memcpy(&__entry->srx, srx, sizeof(__entry->srx));
|
||||
),
|
||||
|
||||
TP_printk("P=%08x o=%u t=%u c=%u i=%u d=%u e=%d %pISp",
|
||||
__entry->peer,
|
||||
__entry->ee.ee_origin,
|
||||
__entry->ee.ee_type,
|
||||
__entry->ee.ee_code,
|
||||
__entry->ee.ee_info,
|
||||
__entry->ee.ee_data,
|
||||
__entry->ee.ee_errno,
|
||||
&__entry->srx.transport)
|
||||
);
|
||||
|
||||
TRACE_EVENT(rxrpc_tx_fail,
|
||||
TP_PROTO(unsigned int debug_id, rxrpc_serial_t serial, int ret,
|
||||
enum rxrpc_tx_fail_trace what),
|
||||
|
||||
TP_ARGS(debug_id, serial, ret, what),
|
||||
|
||||
TP_STRUCT__entry(
|
||||
__field(unsigned int, debug_id )
|
||||
__field(rxrpc_serial_t, serial )
|
||||
__field(int, ret )
|
||||
__field(enum rxrpc_tx_fail_trace, what )
|
||||
),
|
||||
|
||||
TP_fast_assign(
|
||||
__entry->debug_id = debug_id;
|
||||
__entry->serial = serial;
|
||||
__entry->ret = ret;
|
||||
__entry->what = what;
|
||||
),
|
||||
|
||||
TP_printk("c=%08x r=%x ret=%d %s",
|
||||
__entry->debug_id,
|
||||
__entry->serial,
|
||||
__entry->ret,
|
||||
__print_symbolic(__entry->what, rxrpc_tx_fail_traces))
|
||||
);
|
||||
|
||||
#endif /* _TRACE_RXRPC_H */
|
||||
|
||||
/* This part must be outside protection */
|
||||
|
||||
@@ -224,6 +224,8 @@ TRACE_EVENT(rpc_stats_latency,
|
||||
TP_ARGS(task, backlog, rtt, execute),
|
||||
|
||||
TP_STRUCT__entry(
|
||||
__field(unsigned int, task_id)
|
||||
__field(unsigned int, client_id)
|
||||
__field(u32, xid)
|
||||
__field(int, version)
|
||||
__string(progname, task->tk_client->cl_program->name)
|
||||
@@ -231,13 +233,11 @@ TRACE_EVENT(rpc_stats_latency,
|
||||
__field(unsigned long, backlog)
|
||||
__field(unsigned long, rtt)
|
||||
__field(unsigned long, execute)
|
||||
__string(addr,
|
||||
task->tk_xprt->address_strings[RPC_DISPLAY_ADDR])
|
||||
__string(port,
|
||||
task->tk_xprt->address_strings[RPC_DISPLAY_PORT])
|
||||
),
|
||||
|
||||
TP_fast_assign(
|
||||
__entry->client_id = task->tk_client->cl_clid;
|
||||
__entry->task_id = task->tk_pid;
|
||||
__entry->xid = be32_to_cpu(task->tk_rqstp->rq_xid);
|
||||
__entry->version = task->tk_client->cl_vers;
|
||||
__assign_str(progname, task->tk_client->cl_program->name)
|
||||
@@ -245,14 +245,10 @@ TRACE_EVENT(rpc_stats_latency,
|
||||
__entry->backlog = ktime_to_us(backlog);
|
||||
__entry->rtt = ktime_to_us(rtt);
|
||||
__entry->execute = ktime_to_us(execute);
|
||||
__assign_str(addr,
|
||||
task->tk_xprt->address_strings[RPC_DISPLAY_ADDR]);
|
||||
__assign_str(port,
|
||||
task->tk_xprt->address_strings[RPC_DISPLAY_PORT]);
|
||||
),
|
||||
|
||||
TP_printk("peer=[%s]:%s xid=0x%08x %sv%d %s backlog=%lu rtt=%lu execute=%lu",
|
||||
__get_str(addr), __get_str(port), __entry->xid,
|
||||
TP_printk("task:%u@%d xid=0x%08x %sv%d %s backlog=%lu rtt=%lu execute=%lu",
|
||||
__entry->task_id, __entry->client_id, __entry->xid,
|
||||
__get_str(progname), __entry->version, __get_str(procname),
|
||||
__entry->backlog, __entry->rtt, __entry->execute)
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user