diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2021-10-04 17:16:26 +0300 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2021-10-04 22:40:15 +0300 |
commit | 22a027e8c03f9a7794d16daa3b4b117ac6d340c3 (patch) | |
tree | d01c749279ec39f2b944d1a167293a490f9840a4 /include/trace | |
parent | 45f135846815ef787b41767ad3823194de5ccfdf (diff) | |
download | linux-22a027e8c03f9a7794d16daa3b4b117ac6d340c3.tar.xz |
SUNRPC: Add trace event when alloc_pages_bulk() makes no progress
This is an operational low memory situation that needs to be
flagged. The new tracepoint records a timestamp and the nfsd thread
that failed to allocate pages.
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'include/trace')
-rw-r--r-- | include/trace/events/sunrpc.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/include/trace/events/sunrpc.h b/include/trace/events/sunrpc.h index 2d04eb96d418..fb016308c185 100644 --- a/include/trace/events/sunrpc.h +++ b/include/trace/events/sunrpc.h @@ -1859,6 +1859,24 @@ TRACE_EVENT(svc_wake_up, TP_printk("pid=%d", __entry->pid) ); +TRACE_EVENT(svc_alloc_arg_err, + TP_PROTO( + unsigned int pages + ), + + TP_ARGS(pages), + + TP_STRUCT__entry( + __field(unsigned int, pages) + ), + + TP_fast_assign( + __entry->pages = pages; + ), + + TP_printk("pages=%u", __entry->pages) +); + TRACE_EVENT(svc_handle_xprt, TP_PROTO(struct svc_xprt *xprt, int len), |