]> git.baikalelectronics.ru Git - kernel.git/commit
fscache: Add a cookie debug ID and use that in traces
authorDavid Howells <dhowells@redhat.com>
Mon, 10 Feb 2020 10:00:22 +0000 (10:00 +0000)
committerDavid Howells <dhowells@redhat.com>
Fri, 27 Aug 2021 12:24:46 +0000 (13:24 +0100)
commit061c9c9689f6e5ab5a6c716358dfb68dc69c90b5
tree3bfc51416024a1b1f2043872a00d6a36d45625b3
parent1607374da8e2b3ecd8bf8ac76ad3c882b200a424
fscache: Add a cookie debug ID and use that in traces

Add a cookie debug ID and use that in traces and in procfiles rather than
displaying the (hashed) pointer to the cookie.  This is easier to correlate
and we don't lose anything when interpreting oops output since that shows
unhashed addresses and registers that aren't comparable to the hashed
values.

Changes:

ver #2:
 - Fix the fscache_op tracepoint to handle a NULL cookie pointer.

Signed-off-by: David Howells <dhowells@redhat.com>
Reviewed-by: Jeff Layton <jlayton@redhat.com>
cc: linux-cachefs@redhat.com
Link: https://lore.kernel.org/r/158861210988.340223.11688464116498247790.stgit@warthog.procyon.org.uk/
Link: https://lore.kernel.org/r/159465769844.1376105.14119502774019865432.stgit@warthog.procyon.org.uk/
Link: https://lore.kernel.org/r/160588459097.3465195.1273313637721852165.stgit@warthog.procyon.org.uk/
Link: https://lore.kernel.org/r/162431193544.2908479.17556704572948300790.stgit@warthog.procyon.org.uk/
fs/fscache/cookie.c
fs/fscache/fsdef.c
fs/fscache/object-list.c
include/linux/fscache.h
include/trace/events/cachefiles.h
include/trace/events/fscache.h