]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
cachefiles: add output string to cachefiles_obj_[get|put]_ondemand_fd
authorBaokun Li <libaokun1@huawei.com>
Wed, 22 May 2024 11:42:57 +0000 (19:42 +0800)
committerChristian Brauner <brauner@kernel.org>
Wed, 29 May 2024 11:03:29 +0000 (13:03 +0200)
This lets us see the correct trace output.

Fixes: c8383054506c ("cachefiles: notify the user daemon when looking up cookie")
Signed-off-by: Baokun Li <libaokun1@huawei.com>
Link: https://lore.kernel.org/r/20240522114308.2402121-2-libaokun@huaweicloud.com
Acked-by: Jeff Layton <jlayton@kernel.org>
Reviewed-by: Jingbo Xu <jefflexu@linux.alibaba.com>
Signed-off-by: Christian Brauner <brauner@kernel.org>
include/trace/events/cachefiles.h

index cf4b98b9a9edc7462eba967965b525bdde694f4e..e3213af847cdf361913efffeb506059dc6ef5857 100644 (file)
@@ -127,7 +127,9 @@ enum cachefiles_error_trace {
        EM(cachefiles_obj_see_lookup_cookie,    "SEE lookup_cookie")    \
        EM(cachefiles_obj_see_lookup_failed,    "SEE lookup_failed")    \
        EM(cachefiles_obj_see_withdraw_cookie,  "SEE withdraw_cookie")  \
-       E_(cachefiles_obj_see_withdrawal,       "SEE withdrawal")
+       EM(cachefiles_obj_see_withdrawal,       "SEE withdrawal")       \
+       EM(cachefiles_obj_get_ondemand_fd,      "GET ondemand_fd")      \
+       E_(cachefiles_obj_put_ondemand_fd,      "PUT ondemand_fd")
 
 #define cachefiles_coherency_traces                                    \
        EM(cachefiles_coherency_check_aux,      "BAD aux ")             \