Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/1.1/patches/2231757/?format=api
{ "id": 2231757, "url": "http://patchwork.ozlabs.org/api/1.1/patches/2231757/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-cifs-client/patch/20260501112023.338005-16-sprasad@microsoft.com/", "project": { "id": 12, "url": "http://patchwork.ozlabs.org/api/1.1/projects/12/?format=api", "name": "Linux CIFS Client", "link_name": "linux-cifs-client", "list_id": "linux-cifs.vger.kernel.org", "list_email": "linux-cifs@vger.kernel.org", "web_url": "", "scm_url": "", "webscm_url": "" }, "msgid": "<20260501112023.338005-16-sprasad@microsoft.com>", "date": "2026-05-01T11:20:19", "name": "[v4,16/19] cifs: trace points for cached_dir operations", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "a76cfca1ea5838df8f488c8ce7849a90792f1550", "submitter": { "id": 79368, "url": "http://patchwork.ozlabs.org/api/1.1/people/79368/?format=api", "name": "Shyam Prasad N", "email": "nspmangalore@gmail.com" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/linux-cifs-client/patch/20260501112023.338005-16-sprasad@microsoft.com/mbox/", "series": [ { "id": 502444, "url": "http://patchwork.ozlabs.org/api/1.1/series/502444/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-cifs-client/list/?series=502444", "date": "2026-05-01T11:20:06", "name": "[v4,01/19] cifs: change_conf needs to be called for session setup", "version": 4, "mbox": "http://patchwork.ozlabs.org/series/502444/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2231757/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2231757/checks/", "tags": {}, "headers": { "Return-Path": "\n <linux-cifs+bounces-11341-incoming=patchwork.ozlabs.org@vger.kernel.org>", "X-Original-To": [ "incoming@patchwork.ozlabs.org", "linux-cifs@vger.kernel.org" ], "Delivered-To": "patchwork-incoming@legolas.ozlabs.org", "Authentication-Results": [ "legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256\n header.s=20251104 header.b=CPct0nfy;\n\tdkim-atps=neutral", "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=2600:3c0a:e001:db::12fc:5321; helo=sea.lore.kernel.org;\n envelope-from=linux-cifs+bounces-11341-incoming=patchwork.ozlabs.org@vger.kernel.org;\n receiver=patchwork.ozlabs.org)", "smtp.subspace.kernel.org;\n\tdkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com\n header.b=\"CPct0nfy\"", "smtp.subspace.kernel.org;\n arc=none smtp.client-ip=209.85.215.181", "smtp.subspace.kernel.org;\n dmarc=pass (p=none dis=none) header.from=gmail.com", "smtp.subspace.kernel.org;\n spf=pass smtp.mailfrom=gmail.com" ], "Received": [ "from sea.lore.kernel.org (sea.lore.kernel.org\n [IPv6:2600:3c0a:e001:db::12fc:5321])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4g6TLZ17KZz1xqf\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 01 May 2026 21:28:22 +1000 (AEST)", "from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby sea.lore.kernel.org (Postfix) with ESMTP id 5AFD630C5299\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 1 May 2026 11:23:03 +0000 (UTC)", "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id 1F10C3A169B;\n\tFri, 1 May 2026 11:20:52 +0000 (UTC)", "from mail-pg1-f181.google.com (mail-pg1-f181.google.com\n [209.85.215.181])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))\n\t(No client certificate requested)\n\tby smtp.subspace.kernel.org (Postfix) with ESMTPS id 95D5839FCB4\n\tfor <linux-cifs@vger.kernel.org>; Fri, 1 May 2026 11:20:50 +0000 (UTC)", "by mail-pg1-f181.google.com with SMTP id\n 41be03b00d2f7-c7b9f54d3deso1124035a12.1\n for <linux-cifs@vger.kernel.org>;\n Fri, 01 May 2026 04:20:50 -0700 (PDT)", "from sprasad-dev1.corp.microsoft.com ([167.220.110.216])\n by smtp.gmail.com with ESMTPSA id\n d2e1a72fcca58-8351587db67sm2331922b3a.13.2026.05.01.04.20.48\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Fri, 01 May 2026 04:20:48 -0700 (PDT)" ], "ARC-Seal": "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1777634452; cv=none;\n b=XyX7Nje0SDpgg6F4bPPOYlKUg4wRxbbX68J8jYfWFoiimLQQWad8lzNVLLZW+r46cjuB2ile+hL9erZyKNZcaST70dMGHpYTviOGVYC7U+HKNrB+AR2NHpifBX7+98LbV/Xew5VT80vrovY9RrCeBSNscltsTFRPN9UcBfSy/SU=", "ARC-Message-Signature": "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1777634452; c=relaxed/simple;\n\tbh=MdJ8m3r5V6Rvr2rTIpFa9hpgg2l/LBzYWlBo+7IApZs=;\n\th=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:\n\t MIME-Version;\n b=R6STzxtbybjUpu91gfotQlB3MYcHNmoYbKmCQ3GJ5zMV55bPz6J0w6LKgTRArTe1jlydpTGzZvPnZIHOnmxh+wfIB75iuzlLetnMbIVmFZ8p2vr1dw3pCiglHcPKRTbpe779JH7s6EodncBPdymspLHrJqBv7EJqrmHSkSEAmnE=", "ARC-Authentication-Results": "i=1; smtp.subspace.kernel.org;\n dmarc=pass (p=none dis=none) header.from=gmail.com;\n spf=pass smtp.mailfrom=gmail.com;\n dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com\n header.b=CPct0nfy; arc=none smtp.client-ip=209.85.215.181", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=gmail.com; s=20251104; t=1777634450; x=1778239250;\n darn=vger.kernel.org;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:cc:to:from:from:to:cc:subject:date\n :message-id:reply-to;\n bh=nEBzsKVOccaRuqwJVltSCg/NMccRGqheY7hvQNJsWpw=;\n b=CPct0nfyIIMdaUeNHL2eSb+xD+MRrPEPN8L3M+mmAiDXkUqAZI5b0UV06AAUvYlmAU\n iyiP47Uc105CQGzIhJdFccJB9tU8NF53tN+uadCpbUI+7FqEs4PJGmPMlp5FF76XrKxs\n RAo0Ci0+HABlNfXoyCuETgeoBky0rRzWMAJNhaU2p73hn6hR2y5qzQsdSNmS6afYbzj0\n JCPU+QcWqupFwIc4vBoQanrEAUbwLHRcKJ+1M2K8nvkKCIpBgRL+5dJak74icK0cSIlC\n RuMLOVfFK57TlwJf6d4rTUZicgQrkrRjh6Hdq0ENRoVdobvSGVHe21MVFj7s9hjt5NJ7\n 5sFQ==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1777634450; x=1778239250;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from\n :to:cc:subject:date:message-id:reply-to;\n bh=nEBzsKVOccaRuqwJVltSCg/NMccRGqheY7hvQNJsWpw=;\n b=GFPBRJl4liFBxI9W2FyL8BsAaGQkU89fJ2UL46Ol0IEBLFd9MnUwWUTzBCka9DJplb\n mm0CYQ9Ap56ZAa2Y8pLBICOnQUSHt6QWCfLF7wP9KikoUzAlvVuqV6l4wpKZ/MjjpNVf\n VcsDZmf39VT10oQ3AzhWczRNeQkRak4al5vBkkJ9hZeHbynRA2lerNus++gwoVfz4nQX\n 8Li/mSxpXYafv5P+8rY2yBNmJFhNvwIqcWmesmOLzHUFKHb4iqC7EI9Hpx0BPUqn98W5\n reMAEueZnypCnz+E3ERhLJaXgplBW1R3YXk1J0QzyILkSzJe6ofaKZB/HP0LplUt1j88\n mwkw==", "X-Gm-Message-State": "AOJu0YxDSh9uTpGoDOnPPXk4msGDXBHX4cp//cfjRustBN7ExZCOu2tV\n\tlQe6XcfbLrjKqKjX1VDBhRvzo9YTK0CQtVd+RRsvyiUUdsiQnqjNMRQlBOGoh4wZLEY=", "X-Gm-Gg": "AeBDiet7DJqdRJkv/Rn+H5M61jNvz/12odcNxILWpwJV2YZ4KprZs4d/bzn4Oo5Tmqo\n\td8eCQe05kqQ5fvk3GllK+hA2HjFEGwIzR/VY8V4Kn4DSOa49104JIHqDRtRpp0iGXqq91czlkUI\n\tTUFvia+n1v8nEkbKDQMELYEWpRhh9D03X/JpBgNW090pQkPezXxpsS6iMccTzjXQe041GPh1J1r\n\t6ELl7CB/DbCNNijrv4zT/tQ4EL9EwTeiWSoL1O5wMVYPELaoyW3jaRyoLMuT+oxrmIw34f54B3a\n\t1y/RzJ/dO8NgV6Snwo5Qe2ow14ue/KxZ3buuuIgcNG9v6k/+rv1HvaB7s/RrIQqwlLx/+lkKi9G\n\tBTfrEWGbO8uPMPADFScDG9LriX2FnK52cYfWAsck7Ats/SdSk0PsVFx1MVULACZbnAMoEWhBUda\n\t5lNXGNTjNWO09yjbvkzhHkNZWdd2alK8bb5MgSk38N9va2k2/COgKpB1f/BzZ3zgrK", "X-Received": "by 2002:a05:6a00:f0a:b0:82f:5051:f022 with SMTP id\n d2e1a72fcca58-834fdbd3eddmr7678466b3a.32.1777634449377;\n Fri, 01 May 2026 04:20:49 -0700 (PDT)", "From": "nspmangalore@gmail.com", "X-Google-Original-From": "sprasad@microsoft.com", "To": "linux-cifs@vger.kernel.org,\n\tsmfrench@gmail.com,\n\tpc@manguebit.org,\n\tbharathsm@microsoft.com,\n\tdhowells@redhat.com,\n\thenrique.carvalho@suse.com,\n\tematsumiya@suse.de", "Cc": "Shyam Prasad N <sprasad@microsoft.com>", "Subject": "[PATCH v4 16/19] cifs: trace points for cached_dir operations", "Date": "Fri, 1 May 2026 16:50:19 +0530", "Message-ID": "<20260501112023.338005-16-sprasad@microsoft.com>", "X-Mailer": "git-send-email 2.43.0", "In-Reply-To": "<20260501112023.338005-1-sprasad@microsoft.com>", "References": "<20260501112023.338005-1-sprasad@microsoft.com>", "Precedence": "bulk", "X-Mailing-List": "linux-cifs@vger.kernel.org", "List-Id": "<linux-cifs.vger.kernel.org>", "List-Subscribe": "<mailto:linux-cifs+subscribe@vger.kernel.org>", "List-Unsubscribe": "<mailto:linux-cifs+unsubscribe@vger.kernel.org>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit" }, "content": "From: Shyam Prasad N <sprasad@microsoft.com>\n\nThis change introduces ftrace tracepoints for cached_dir operations.\nIntended to be used for debugging cached_dir.\n\nSigned-off-by: Shyam Prasad N <sprasad@microsoft.com>\n---\n fs/smb/client/cached_dir.c | 21 ++++++++++-\n fs/smb/client/inode.c | 13 +++++++\n fs/smb/client/trace.h | 73 ++++++++++++++++++++++++++++++++++++++\n 3 files changed, 106 insertions(+), 1 deletion(-)", "diff": "diff --git a/fs/smb/client/cached_dir.c b/fs/smb/client/cached_dir.c\nindex 863b8d666ea95..6fb88c4c97dc1 100644\n--- a/fs/smb/client/cached_dir.c\n+++ b/fs/smb/client/cached_dir.c\n@@ -1011,6 +1011,7 @@ bool add_to_cached_dir(struct cached_fid *cfid,\n \t\tatomic64_sub(-bytes_diff, &cfid->cfids->total_dirents_bytes);\n \t\tatomic64_sub(-bytes_diff, &cifs_dircache_bytes_used);\n \t}\n+\ttrace_smb3_add_to_cached_dir(cfid, name, namelen, added ? 0 : -1);\n \n \n \treturn added;\n@@ -1041,6 +1042,9 @@ void complete_cached_dir(struct cached_fid *cfid,\n \tcde = &cfid->dirents;\n \tmutex_lock(&cfid->dirents.de_mutex);\n \tfinished_cached_dirents_count(cde, ctx, file);\n+\ttrace_smb3_complete_cached_dir(cfid, ctx->pos, cde->pos,\n+\t\t\t\t\t cde->is_valid,\n+\t\t\t\t\t cde->is_failed);\n \tmutex_unlock(&cfid->dirents.de_mutex);\n }\n \n@@ -1076,12 +1080,14 @@ int lookup_cached_dir(struct cached_fid *cfid,\n \tentry = lookup_cached_dirent_entry_locked(&cfid->dirents, name, namelen);\n \tif (!entry || !entry->dirent) {\n \t\tmutex_unlock(&cfid->dirents.de_mutex);\n+\t\ttrace_smb3_lookup_cached_dir(cfid, name, namelen, -ENOENT);\n \t\treturn -ENOENT;\n \t}\n \n \tdirent = entry->dirent;\n \tif (dirent->tombstone) {\n \t\tmutex_unlock(&cfid->dirents.de_mutex);\n+\t\ttrace_smb3_lookup_cached_dir(cfid, name, namelen, -ENOENT);\n \t\treturn -ENOENT;\n \t}\n \n@@ -1089,6 +1095,7 @@ int lookup_cached_dir(struct cached_fid *cfid,\n \tmemcpy(&result->fattr, &dirent->fattr, sizeof(result->fattr));\n \n \tmutex_unlock(&cfid->dirents.de_mutex);\n+\ttrace_smb3_lookup_cached_dir(cfid, name, namelen, 0);\n \treturn 0;\n }\n \n@@ -1126,6 +1133,8 @@ bool update_dirent_in_cached_dir(struct cached_fid *cfid,\n \tupdated = update_cached_dirent_locked(&cfid->dirents, name,\n \t\t\t\t\t\t namelen, fattr);\n \tmutex_unlock(&cfid->dirents.de_mutex);\n+\ttrace_smb3_update_dirent_in_cached_dir(cfid, name, namelen,\n+\t\t\t\t\t updated ? 0 : -ENOENT);\n \treturn updated;\n }\n \n@@ -1185,6 +1194,7 @@ void cifs_complete_pending_dcache(struct cached_fid *cfid,\n \tmutex_unlock(&cfid->dirents.de_mutex);\n \tcifs_dbg(FYI, \"Dcache population of %.*s. status: %d\\n\",\n \t\t\t\t\tnamelen, name, ret);\n+\ttrace_smb3_dcache_complete(cfid, name, namelen, ret);\n }\n \n /*\n@@ -1226,6 +1236,7 @@ int cifs_wait_for_pending_dcache(struct cached_fid *cfid,\n \t\t}\n \t}\n \n+\ttrace_smb3_dcache_wait(cfid, name, namelen, ret);\n \treturn ret;\n }\n \n@@ -1399,6 +1410,7 @@ int open_cached_dir(unsigned int xid, struct cifs_tcon *tcon,\n \tif (cfid == NULL) {\n \t\tspin_unlock(&cfids->cfid_list_lock);\n \t\tkfree(utf16_path);\n+\t\ttrace_smb3_open_cached_dir(NULL, path, strlen(path), -ENOENT);\n \t\treturn -ENOENT;\n \t}\n \tspin_unlock(&cfids->cfid_list_lock);\n@@ -1637,6 +1649,7 @@ int open_cached_dir(unsigned int xid, struct cifs_tcon *tcon,\n \t\t*ret_cfid = cfid;\n \t\tatomic_inc(&tcon->num_remote_opens);\n \t}\n+\ttrace_smb3_open_cached_dir(cfid, path, strlen(path), rc);\n \tkfree(utf16_path);\n \n \tif (is_replayable_error(rc) &&\n@@ -1651,7 +1664,6 @@ int open_cached_dir_by_dentry(struct cifs_tcon *tcon,\n \t\t\t struct cached_fid **ret_cfid)\n {\n \tstruct cached_fid *cfid;\n-\tstruct cached_fid *trace_cfid = NULL;\n \tstruct cached_fids *cfids = tcon->cfids;\n \tint rc = -ENOENT;\n \n@@ -1667,6 +1679,7 @@ int open_cached_dir_by_dentry(struct cifs_tcon *tcon,\n \t\t\tspin_lock(&cfid->cfid_lock);\n \t\t\tif (!is_valid_cached_dir(cfid)) {\n \t\t\t\tspin_unlock(&cfid->cfid_lock);\n+\t\t\t\trc = -ENOENT;\n \t\t\t\tbreak;\n \t\t\t}\n \t\t\tcifs_dbg(FYI, \"found a cached file handle by dentry\\n\");\n@@ -1677,10 +1690,15 @@ int open_cached_dir_by_dentry(struct cifs_tcon *tcon,\n \t\t\ttrace_cfid = cfid;\n \t\t\tspin_unlock(&cfid->cfid_lock);\n \t\t\tspin_unlock(&cfids->cfid_list_lock);\n+\t\t\ttrace_smb3_open_cached_dir_by_dentry(cfid, dentry->d_name.name,\n+\t\t\t\t\t\t\t dentry->d_name.len, 0);\n \t\t\treturn rc;\n \t\t}\n \t}\n \tspin_unlock(&cfids->cfid_list_lock);\n+\ttrace_smb3_open_cached_dir_by_dentry(NULL, dentry->d_name.name,\n+\t\t\t\t\t dentry->d_name.len, rc);\n+\n \treturn rc;\n }\n \n@@ -1982,6 +2000,7 @@ static void free_cached_dir(struct cached_fid *cfid)\n \n \tWARN_ON(work_pending(&cfid->close_work));\n \tWARN_ON(work_pending(&cfid->put_work));\n+\ttrace_smb3_free_cached_dir(cfid, cfid->path, strlen(cfid->path), 0);\n \n \n \tdput(cfid->dentry);\ndiff --git a/fs/smb/client/inode.c b/fs/smb/client/inode.c\nindex ecc92e5c7f7b6..08cf0cfcda89b 100644\n--- a/fs/smb/client/inode.c\n+++ b/fs/smb/client/inode.c\n@@ -2859,20 +2859,31 @@ cifs_dentry_needs_reval(struct dentry *dentry)\n \t\t\tif (!rc && lookup.found && lookup.under_active_lease) {\n \t\t\t\tif (cifs_inode_has_writable_handle(inode)) {\n \t\t\t\t\tcifs_set_time(dentry, jiffies);\n+\t\t\t\t\ttrace_smb3_dcache_revalidate(cfid,\n+\t\t\t\t\t\t\t dentry->d_name.name,\n+\t\t\t\t\t\t\t dentry->d_name.len, 0);\n \t\t\t\t\tcifs_put_tlink(tlink);\n \t\t\t\t\treturn false;\n \t\t\t\t}\n \t\t\t\trc = cifs_fattr_to_inode(inode, &lookup.fattr, false);\n \t\t\t\tif (!rc) {\n \t\t\t\t\tcifs_set_time(dentry, jiffies);\n+\t\t\t\t\ttrace_smb3_dcache_revalidate(cfid,\n+\t\t\t\t\t\t\t dentry->d_name.name,\n+\t\t\t\t\t\t\t dentry->d_name.len, 0);\n \t\t\t\t\tcifs_put_tlink(tlink);\n \t\t\t\t\treturn false;\n \t\t\t\t}\n \t\t\t\tif (rc != -ESTALE) {\n+\t\t\t\t\ttrace_smb3_dcache_revalidate(cfid,\n+\t\t\t\t\t\t\t dentry->d_name.name,\n+\t\t\t\t\t\t\t dentry->d_name.len, rc);\n \t\t\t\t\tcifs_put_tlink(tlink);\n \t\t\t\t\treturn true;\n \t\t\t\t}\n \t\t\t}\n+\t\t\ttrace_smb3_dcache_revalidate(cfid, dentry->d_name.name,\n+\t\t\t\t\t\t dentry->d_name.len, rc);\n \t\t}\n \t}\n \n@@ -2882,6 +2893,8 @@ cifs_dentry_needs_reval(struct dentry *dentry)\n \t * cache lookup/update did not satisfy this dentry.\n \t */\n \tif (force_reval) {\n+\t\ttrace_smb3_dcache_revalidate(cfid, dentry->d_name.name,\n+\t\t\t\t\t dentry->d_name.len, -1);\n \t\tcifs_put_tlink(tlink);\n \t\treturn true;\n \t}\ndiff --git a/fs/smb/client/trace.h b/fs/smb/client/trace.h\nindex 54ee1317c5b12..9907a89ee4001 100644\n--- a/fs/smb/client/trace.h\n+++ b/fs/smb/client/trace.h\n@@ -1813,6 +1813,79 @@ TRACE_EVENT(smb3_eio,\n \t\t __entry->info, __entry->info2)\n \t );\n \n+/*\n+ * Trace events for async directory cache population work\n+ */\n+DECLARE_EVENT_CLASS(smb3_dcache,\n+\tTP_PROTO(const void *cfid,\n+\t\tconst char *name,\n+\t\tint namelen,\n+\t\tint result),\n+\tTP_ARGS(cfid, name, namelen, result),\n+\tTP_STRUCT__entry(\n+\t\t__field(const void *, cfid)\n+\t\t__string(name, name)\n+\t\t__field(int, namelen)\n+\t\t__field(int, result)\n+\t),\n+\tTP_fast_assign(\n+\t\t__entry->cfid = cfid;\n+\t\t__assign_str(name);\n+\t\t__entry->namelen = namelen;\n+\t\t__entry->result = result;\n+\t),\n+\tTP_printk(\"cfid=%p name=%.*s result=%d\",\n+\t\t__entry->cfid,\n+\t\t__entry->namelen, __get_str(name), __entry->result)\n+);\n+\n+#define DEFINE_SMB3_DCACHE_EVENT(name) \\\n+DEFINE_EVENT(smb3_dcache, smb3_##name, \\\n+\tTP_PROTO(const void *cfid,\t\t\\\n+\t\tconst char *name,\t\t\\\n+\t\tint namelen,\t\t\t\\\n+\t\tint result),\t\t\t\\\n+\tTP_ARGS(cfid, name, namelen, result))\n+\n+DEFINE_SMB3_DCACHE_EVENT(dcache_complete);\n+DEFINE_SMB3_DCACHE_EVENT(dcache_wait);\n+DEFINE_SMB3_DCACHE_EVENT(dcache_revalidate);\n+DEFINE_SMB3_DCACHE_EVENT(open_cached_dir);\n+DEFINE_SMB3_DCACHE_EVENT(open_cached_dir_by_dentry);\n+DEFINE_SMB3_DCACHE_EVENT(free_cached_dir);\n+DEFINE_SMB3_DCACHE_EVENT(add_to_cached_dir);\n+DEFINE_SMB3_DCACHE_EVENT(lookup_cached_dir);\n+DEFINE_SMB3_DCACHE_EVENT(update_dirent_in_cached_dir);\n+\n+TRACE_EVENT(smb3_complete_cached_dir,\n+\tTP_PROTO(const void *cfid,\n+\t\t loff_t ctx_pos,\n+\t\t loff_t cached_pos,\n+\t\t int is_valid,\n+\t\t int is_failed),\n+\tTP_ARGS(cfid, ctx_pos, cached_pos, is_valid, is_failed),\n+\tTP_STRUCT__entry(\n+\t\t__field(const void *, cfid)\n+\t\t__field(loff_t, ctx_pos)\n+\t\t__field(loff_t, cached_pos)\n+\t\t__field(int, is_valid)\n+\t\t__field(int, is_failed)\n+\t),\n+\tTP_fast_assign(\n+\t\t__entry->cfid = cfid;\n+\t\t__entry->ctx_pos = ctx_pos;\n+\t\t__entry->cached_pos = cached_pos;\n+\t\t__entry->is_valid = is_valid;\n+\t\t__entry->is_failed = is_failed;\n+\t),\n+\tTP_printk(\"cfid=%p ctx_pos=%lld cached_pos=%lld is_valid=%d is_failed=%d\",\n+\t\t__entry->cfid,\n+\t\t(long long)__entry->ctx_pos,\n+\t\t(long long)__entry->cached_pos,\n+\t\t__entry->is_valid,\n+\t\t__entry->is_failed)\n+);\n+\n #undef EM\n #undef E_\n #endif /* _CIFS_TRACE_H */\n", "prefixes": [ "v4", "16/19" ] }