OSDN Git Service

cachefiles: Add a couple of tracepoints for logging errors
authorDavid Howells <dhowells@redhat.com>
Thu, 21 Oct 2021 07:42:18 +0000 (08:42 +0100)
committerDavid Howells <dhowells@redhat.com>
Fri, 7 Jan 2022 13:41:01 +0000 (13:41 +0000)
commitecf5a6ce15f90d1fe6bc326c720d21fc0e73fc88
tree5f9c548fc869bf7640c5ef167e310020bb7157cd
parenta70f6526267e9f5fbf958a69c6112938b0b14bc4
cachefiles: Add a couple of tracepoints for logging errors

Add two trace points to log errors, one for vfs operations like mkdir or
create, and one for I/O operations, like read, write or truncate.

Also add the beginnings of a struct that is going to represent a data file
and place a debugging ID in it for the tracepoints to record.

Signed-off-by: David Howells <dhowells@redhat.com>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
cc: linux-cachefs@redhat.com
Link: https://lore.kernel.org/r/163819625632.215744.17907340966178411033.stgit@warthog.procyon.org.uk/
Link: https://lore.kernel.org/r/163906926297.143852.18267924605548658911.stgit@warthog.procyon.org.uk/
Link: https://lore.kernel.org/r/163967135390.1823006.2512120406360156424.stgit@warthog.procyon.org.uk/
Link: https://lore.kernel.org/r/164021534029.640689.1875723624947577095.stgit@warthog.procyon.org.uk/
fs/cachefiles/internal.h
include/trace/events/cachefiles.h