trace.h (ff36e78fdb251b9fa65028554689806961e011eb) | trace.h (f01274a9335307eca729b5d12609976afcf21530) |
---|---|
1/* SPDX-License-Identifier: GPL-2.0 */ 2/* 3 * Copyright (c) 2014 Christoph Hellwig. 4 */ 5#undef TRACE_SYSTEM 6#define TRACE_SYSTEM nfsd 7 8#if !defined(_NFSD_TRACE_H) || defined(TRACE_HEADER_MULTI_READ) --- 36 unchanged lines hidden (view full) --- 45 __entry->status = be32_to_cpu(status); 46 __assign_str(name, name); 47 ), 48 TP_printk("op=%u/%u %s status=%d", 49 __entry->resp_opcnt, __entry->args_opcnt, 50 __get_str(name), __entry->status) 51) 52 | 1/* SPDX-License-Identifier: GPL-2.0 */ 2/* 3 * Copyright (c) 2014 Christoph Hellwig. 4 */ 5#undef TRACE_SYSTEM 6#define TRACE_SYSTEM nfsd 7 8#if !defined(_NFSD_TRACE_H) || defined(TRACE_HEADER_MULTI_READ) --- 36 unchanged lines hidden (view full) --- 45 __entry->status = be32_to_cpu(status); 46 __assign_str(name, name); 47 ), 48 TP_printk("op=%u/%u %s status=%d", 49 __entry->resp_opcnt, __entry->args_opcnt, 50 __get_str(name), __entry->status) 51) 52 |
53DECLARE_EVENT_CLASS(nfsd_fh_err_class, 54 TP_PROTO(struct svc_rqst *rqstp, 55 struct svc_fh *fhp, 56 int status), 57 TP_ARGS(rqstp, fhp, status), 58 TP_STRUCT__entry( 59 __field(u32, xid) 60 __field(u32, fh_hash) 61 __field(int, status) 62 ), 63 TP_fast_assign( 64 __entry->xid = be32_to_cpu(rqstp->rq_xid); 65 __entry->fh_hash = knfsd_fh_hash(&fhp->fh_handle); 66 __entry->status = status; 67 ), 68 TP_printk("xid=0x%08x fh_hash=0x%08x status=%d", 69 __entry->xid, __entry->fh_hash, 70 __entry->status) 71) 72 73#define DEFINE_NFSD_FH_ERR_EVENT(name) \ 74DEFINE_EVENT(nfsd_fh_err_class, nfsd_##name, \ 75 TP_PROTO(struct svc_rqst *rqstp, \ 76 struct svc_fh *fhp, \ 77 int status), \ 78 TP_ARGS(rqstp, fhp, status)) 79 80DEFINE_NFSD_FH_ERR_EVENT(set_fh_dentry_badexport); 81DEFINE_NFSD_FH_ERR_EVENT(set_fh_dentry_badhandle); 82 |
|
53DECLARE_EVENT_CLASS(nfsd_io_class, 54 TP_PROTO(struct svc_rqst *rqstp, 55 struct svc_fh *fhp, 56 loff_t offset, 57 unsigned long len), 58 TP_ARGS(rqstp, fhp, offset, len), 59 TP_STRUCT__entry( 60 __field(u32, xid) --- 258 unchanged lines hidden --- | 83DECLARE_EVENT_CLASS(nfsd_io_class, 84 TP_PROTO(struct svc_rqst *rqstp, 85 struct svc_fh *fhp, 86 loff_t offset, 87 unsigned long len), 88 TP_ARGS(rqstp, fhp, offset, len), 89 TP_STRUCT__entry( 90 __field(u32, xid) --- 258 unchanged lines hidden --- |