Linux Kernel
3.7.1
|
Go to the source code of this file.
Macros | |
#define | TRACE_SYSTEM 9p |
#define | _TRACE_9P_H |
#define | show_9p_op(type) |
#define | P9_PROTO_DUMP_SZ 32 |
Functions | |
TRACE_EVENT (9p_client_req, TP_PROTO(struct p9_client *clnt, int8_t type, int tag), TP_ARGS(clnt, type, tag), TP_STRUCT__entry(__field(void *, clnt) __field(__u8, type) __field(__u32, tag)), TP_fast_assign(__entry->clnt=clnt;__entry->type=type;__entry->tag=tag;), TP_printk("client %lu request %s tag %d",(long) __entry->clnt, show_9p_op(__entry->type), __entry->tag)) | |
TRACE_EVENT (9p_client_res, TP_PROTO(struct p9_client *clnt, int8_t type, int tag, int err), TP_ARGS(clnt, type, tag, err), TP_STRUCT__entry(__field(void *, clnt) __field(__u8, type) __field(__u32, tag) __field(__u32, err)), TP_fast_assign(__entry->clnt=clnt;__entry->type=type;__entry->tag=tag;__entry->err=err;), TP_printk("client %lu response %s tag %d err %d",(long) __entry->clnt, show_9p_op(__entry->type), __entry->tag, __entry->err)) | |
TRACE_EVENT (9p_protocol_dump, TP_PROTO(struct p9_client *clnt, struct p9_fcall *pdu), TP_ARGS(clnt, pdu), TP_STRUCT__entry(__field(void *, clnt) __field(__u8, type) __field(__u16, tag) __array(unsigned char, line, P9_PROTO_DUMP_SZ)), TP_fast_assign(__entry->clnt=clnt;__entry->type=pdu->id;__entry->tag=pdu->tag;memcpy(__entry->line, pdu->sdata, P9_PROTO_DUMP_SZ);), TP_printk("clnt %lu %s(tag = %d)\n%.3x: ""%02x %02x %02x %02x %02x %02x %02x %02x ""%02x %02x %02x %02x %02x %02x %02x %02x\n""%.3x: ""%02x %02x %02x %02x %02x %02x %02x %02x ""%02x %02x %02x %02x %02x %02x %02x %02x\n",(long) __entry->clnt, show_9p_op(__entry->type), __entry->tag, 0, __entry->line[0], __entry->line[1], __entry->line[2], __entry->line[3], __entry->line[4], __entry->line[5], __entry->line[6], __entry->line[7], __entry->line[8], __entry->line[9], __entry->line[10], __entry->line[11], __entry->line[12], __entry->line[13], __entry->line[14], __entry->line[15], 16, __entry->line[16], __entry->line[17], __entry->line[18], __entry->line[19], __entry->line[20], __entry->line[21], __entry->line[22], __entry->line[23], __entry->line[24], __entry->line[25], __entry->line[26], __entry->line[27], __entry->line[28], __entry->line[29], __entry->line[30], __entry->line[31])) | |
TRACE_EVENT | ( | 9p_client_req | , |
TP_PROTO(struct p9_client *clnt, int8_t type, int tag) | , | ||
TP_ARGS(clnt, type, tag) | , | ||
TP_STRUCT__entry(__field(void *, clnt) __field(__u8, type) __field(__u32, tag)) | , | ||
TP_fast_assign(__entry->clnt=clnt;__entry->type=type;__entry->tag=tag;) | , | ||
TP_printk("client %lu request %s tag %d",(long) __entry->clnt, show_9p_op(__entry->type), __entry->tag) | |||
) |
TRACE_EVENT | ( | 9p_client_res | , |
TP_PROTO(struct p9_client *clnt, int8_t type, int tag, int err) | , | ||
TP_ARGS(clnt, type, tag, err) | , | ||
TP_STRUCT__entry(__field(void *, clnt) __field(__u8, type) __field(__u32, tag) __field(__u32, err)) | , | ||
TP_fast_assign(__entry->clnt=clnt;__entry->type=type;__entry->tag=tag;__entry->err=err;) | , | ||
TP_printk("client %lu response %s tag %d err %d",(long) __entry->clnt, show_9p_op(__entry->type), __entry->tag, __entry->err) | |||
) |
TRACE_EVENT | ( | 9p_protocol_dump | , |
TP_PROTO(struct p9_client *clnt, struct p9_fcall *pdu) | , | ||
TP_ARGS(clnt, pdu) | , | ||
TP_STRUCT__entry(__field(void *, clnt) __field(__u8, type) __field(__u16, tag) __array(unsigned char, line, P9_PROTO_DUMP_SZ)) | , | ||
TP_fast_assign(__entry->clnt=clnt;__entry->type=pdu->id;__entry->tag=pdu->tag;memcpy(__entry->line, pdu->sdata, P9_PROTO_DUMP_SZ);) | , | ||
TP_printk("clnt %lu %s(tag = %d)\n%.3x: ""%02x %02x %02x %02x %02x %02x %02x %02x ""%02x %02x %02x %02x %02x %02x %02x %02x\n""%.3x: ""%02x %02x %02x %02x %02x %02x %02x %02x ""%02x %02x %02x %02x %02x %02x %02x %02x\n",(long) __entry->clnt, show_9p_op(__entry->type), __entry->tag, 0, __entry->line[0], __entry->line[1], __entry->line[2], __entry->line[3], __entry->line[4], __entry->line[5], __entry->line[6], __entry->line[7], __entry->line[8], __entry->line[9], __entry->line[10], __entry->line[11], __entry->line[12], __entry->line[13], __entry->line[14], __entry->line[15], 16, __entry->line[16], __entry->line[17], __entry->line[18], __entry->line[19], __entry->line[20], __entry->line[21], __entry->line[22], __entry->line[23], __entry->line[24], __entry->line[25], __entry->line[26], __entry->line[27], __entry->line[28], __entry->line[29], __entry->line[30], __entry->line[31]) | |||
) |