In many cases, tracepoints already report these errors. In others, the dprintks were mainly useful when this code was less mature.
Showing the changes to include/trace (1 of 2 files). Show all
Unified · Split
| @@ -1269,6 +1269,41 @@ TRACE_EVENT(xs_stream_read_request, · 1268 unmodified lines | ||
| 1269 | 1269 | __entry->copied, __entry->reclen, __entry->offset) |
| 1270 | 1270 | ); |
| 1271 | 1271 | |
| 1272 | +TRACE_EVENT(rpcb_getport, | |
| 1273 | + TP_PROTO( | |
| 1274 | + const struct rpc_clnt *clnt, | |
| 1275 | + const struct rpc_task *task, | |
| 1276 | + unsigned int bind_version | |
| 1277 | + ), | |
| 1278 | + | |
| 1279 | + TP_ARGS(clnt, task, bind_version), | |
| 1280 | + | |
| 1281 | + TP_STRUCT__entry( | |
| 1282 | + __field(unsigned int, task_id) | |
| 1283 | + __field(unsigned int, client_id) | |
| 1284 | + __field(unsigned int, program) | |
| 1285 | + __field(unsigned int, version) | |
| 1286 | + __field(int, protocol) | |
| 1287 | + __field(unsigned int, bind_version) | |
| 1288 | + __string(servername, task->tk_xprt->servername) | |
| 1289 | + ), | |
| 1290 | + | |
| 1291 | + TP_fast_assign( | |
| 1292 | + __entry->task_id = task->tk_pid; | |
| 1293 | + __entry->client_id = clnt->cl_clid; | |
| 1294 | + __entry->program = clnt->cl_prog; | |
| 1295 | + __entry->version = clnt->cl_vers; | |
| 1296 | + __entry->protocol = task->tk_xprt->prot; | |
| 1297 | + __entry->bind_version = bind_version; | |
| 1298 | + __assign_str(servername, task->tk_xprt->servername); | |
| 1299 | + ), | |
| 1300 | + | |
| 1301 | + TP_printk("task:%u@%u server=%s program=%u version=%u protocol=%d bind_version=%u", | |
| 1302 | + __entry->task_id, __entry->client_id, __get_str(servername), | |
| 1303 | + __entry->program, __entry->version, __entry->protocol, | |
| 1304 | + __entry->bind_version | |
| 1305 | + ) | |
| 1306 | +); | |
| 1272 | 1307 | |
| 1273 | 1308 | DECLARE_EVENT_CLASS(svc_xdr_buf_class, |
| 1274 | 1309 | TP_PROTO( |