summaryrefslogtreecommitdiffstats
path: root/include/trace
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2024-07-09 10:45:46 +0200
committerChristian Brauner <brauner@kernel.org>2024-09-05 11:00:41 +0200
commit51e9a86a4f75c6dc8531407b2ab2ccc4ad137e5a (patch)
tree48e8bb62c1fe0ef0554e4b0aec0b54426bb2c888 /include/trace
parentnetfs: Move max_len/max_nr_segs from netfs_io_subrequest to netfs_io_stream (diff)
downloadlinux-51e9a86a4f75c6dc8531407b2ab2ccc4ad137e5a.tar.xz
linux-51e9a86a4f75c6dc8531407b2ab2ccc4ad137e5a.zip
netfs: Reserve netfs_sreq_source 0 as unset/unknown
Reserve the 0-valued netfs_sreq_source to mean unset or unknown so that it can be seen in the trace as such rather than appearing as download-from-server when it's going to get switched to something else. Signed-off-by: David Howells <dhowells@redhat.com> cc: Jeff Layton <jlayton@kernel.org> cc: netfs@lists.linux.dev cc: linux-fsdevel@vger.kernel.org Link: https://lore.kernel.org/r/20240814203850.2240469-9-dhowells@redhat.com/ # v2 Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'include/trace')
-rw-r--r--include/trace/events/netfs.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/trace/events/netfs.h b/include/trace/events/netfs.h
index a4fd5dea52f4..f4105b8e5894 100644
--- a/include/trace/events/netfs.h
+++ b/include/trace/events/netfs.h
@@ -60,6 +60,7 @@
E_(netfs_rreq_trace_write_done, "WR-DONE")
#define netfs_sreq_sources \
+ EM(NETFS_SOURCE_UNKNOWN, "----") \
EM(NETFS_FILL_WITH_ZEROES, "ZERO") \
EM(NETFS_DOWNLOAD_FROM_SERVER, "DOWN") \
EM(NETFS_READ_FROM_CACHE, "READ") \