Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/1.1/patches/2229736/?format=api
{ "id": 2229736, "url": "http://patchwork.ozlabs.org/api/1.1/patches/2229736/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-cifs-client/patch/20260428160804.281745-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": "<20260428160804.281745-16-sprasad@microsoft.com>", "date": "2026-04-28T16:08:01", "name": "[v3,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/20260428160804.281745-16-sprasad@microsoft.com/mbox/", "series": [ { "id": 501896, "url": "http://patchwork.ozlabs.org/api/1.1/series/501896/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-cifs-client/list/?series=501896", "date": "2026-04-28T16:07:57", "name": "[v3,01/19] cifs: change_conf needs to be called for session setup", "version": 3, "mbox": "http://patchwork.ozlabs.org/series/501896/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2229736/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2229736/checks/", "tags": {}, "headers": { "Return-Path": "\n <linux-cifs+bounces-11253-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=LXtnm1Wa;\n\tdkim-atps=neutral", "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=2600:3c15:e001:75::12fc:5321; helo=sin.lore.kernel.org;\n envelope-from=linux-cifs+bounces-11253-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=\"LXtnm1Wa\"", "smtp.subspace.kernel.org;\n arc=none smtp.client-ip=209.85.214.174", "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 sin.lore.kernel.org (sin.lore.kernel.org\n [IPv6:2600:3c15:e001:75::12fc:5321])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4g4mTs6QqYz1yHv\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 29 Apr 2026 02:43:45 +1000 (AEST)", "from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby sin.lore.kernel.org (Postfix) with ESMTP id 1C85C30664A9\n\tfor <incoming@patchwork.ozlabs.org>; Tue, 28 Apr 2026 16:14:44 +0000 (UTC)", "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id 9F0B744D6AB;\n\tTue, 28 Apr 2026 16:08:37 +0000 (UTC)", "from mail-pl1-f174.google.com (mail-pl1-f174.google.com\n [209.85.214.174])\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 6CDA744D01D\n\tfor <linux-cifs@vger.kernel.org>; Tue, 28 Apr 2026 16:08:35 +0000 (UTC)", "by mail-pl1-f174.google.com with SMTP id\n d9443c01a7336-2ab232cc803so56045545ad.3\n for <linux-cifs@vger.kernel.org>;\n Tue, 28 Apr 2026 09:08:35 -0700 (PDT)", "from sprasad-dev1.corp.microsoft.com ([167.220.110.216])\n by smtp.gmail.com with ESMTPSA id\n d9443c01a7336-2b97ac7894csm30864465ad.50.2026.04.28.09.08.32\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Tue, 28 Apr 2026 09:08:33 -0700 (PDT)" ], "ARC-Seal": "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1777392517; cv=none;\n b=jqePxfEIZ+h7cKAqW4qUYNsyuFIfva9H0wIUUcFPk8/OUZdkh7OztBDXoUMbh+C8l3dPhLTQbuwnPQubcBt0kH5HFxpWq5LvUdcsaeWLFZnbPS1WyJNBwPWfZnhkruhkmNExhdw5E7OkpW0sU+dw36osp/o2VbMdFsXwdlYX2W4=", "ARC-Message-Signature": "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1777392517; c=relaxed/simple;\n\tbh=EDqu8J/Cj3OnUosHQqw97x6VT5My9mRZIBiZu8DHN/8=;\n\th=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:\n\t MIME-Version;\n b=IBTML9iogtEGcrasurtDAcPKvk6KmuDDhHtTHLCCVCC42HFo6W9rzVFX7bhuZbZcxC4/7dSRzF+mqQYlLMJErIkZsWncmJbs67V5Pv5rIkVWuINC++ArSwm79qEiMgCvPHWZMdS+9YWg1z+gbSvckGdSFOvjz/VudVZRuJLOh7Q=", "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=LXtnm1Wa; arc=none smtp.client-ip=209.85.214.174", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=gmail.com; s=20251104; t=1777392514; x=1777997314;\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=aJZoFnYLto/Rz6vgRyUrEsw5PIdTqEOL5GHZLukOXPk=;\n b=LXtnm1Wa5YL/+ZEK9/DQ7tvMq81bFgvPk3Jl/TwYsyJt5iLxJ5b6aTHS/vn7HZ3JBb\n X97P6dZAfBTJvvnmHHf2KADz/6CLW9ugcN/z8IaNQPwB4mvEJa3/8BivYjhLFMRlBu67\n lovb+luOJRUWBiZJ77RP8qkhbKgIFulZnyfYLHHWO3IoGzwI90+GHbIn+fbWuRxwxHOi\n fDe+hXZ9aQzbvbCqqbmtIsNYvI1tx227dCk5DRYBpbXJvKA04MSeQnhCVQQ7p5Ez5F3s\n BO54X69DoYxLv2zXWz0967OpyuxIQHetRzRZrt3XV8V+umDp3/6ahV6onLaGKtmilIr1\n qVmA==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1777392514; x=1777997314;\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=aJZoFnYLto/Rz6vgRyUrEsw5PIdTqEOL5GHZLukOXPk=;\n b=WEsYTAy/CV60693GSxQnG01VpdyzGxJMEaNMtbGl0RazfkXZkIfGiql/f+y7qUNLl9\n itSU8C83LKrkzaEsqlo11Zp/hQIyM2xphvYWDyKEEmVZSWkd5UNmzlMmk4ja7E06o9za\n A3A3BOMqhfpz9sRh7F0d0hpQGKEiCzUs1/LJSA9BKFjCEnrdj2KjMDl6dUnq1/ajOCVW\n 0XOl1WQLwVPnOi5JPHOgolMNt3bnZ7KqzpuE6m5foxUxqscC9ox5W5kIZ55mrnYptdHW\n BB3lV5KOeFb/mUMec8xMqND9udSNg//EOVpkt51r6oY6LhwrXEDxc3lDIbPNR8h9Ri9a\n 7C1A==", "X-Gm-Message-State": "AOJu0Yw1J1d7CZBd9+RRtibNmOmK+uuh3+wHBzF4ka49wVQuIQm/fsne\n\tcdaZEWieOhxrHOdiYsauwXFFOfZOYaDdQana9g8B8DYLj5C8l6aKU0Gbt3x+18ljHo0=", "X-Gm-Gg": "AeBDietjYi9EfYZD98Cal9Uy905zW0x9yUgN+/34aKDIce4NDPNw5apZNu1FO36QG0n\n\t318wdVBBFLjgeGFAltKvaBg2XrylkxkJdtnT6BkOv2yf+TcB7vKeZan8jHPod57qHWnbWZKCiSJ\n\tWjIciu+N3ejBwt5etKKF3tS27x25Ec1VSxW6h0xFsFGFc6IZIx+449qRD5/Hl4vrzbqjC9x+2dd\n\tt7QsgKjb7Q9pA69oaWzIc+0AaQ//8XXTif0M4zNVGO9ujG78wjHfdKRReHNQgNtePFaSrz1i9rO\n\tjCzf/7JSszGzcjM2VcN6SXmM4oeA4u5WIOSbRMJQAUYHGQb0MmQGPDR2Q4cUUrKEE7ZAvu729xB\n\thb21UBejZP85NKP6w/nrP8wqYIRs0IT5ZaqcgKyRi1pcaOaEhB1P3tckb/RHaSf+ok+zIyt68YH\n\t8zQw8j3+cndXgAdCOPVfkAlEToI09otX99fns+xtaK0xtP6x9Fi7iya/UeLTuSl86+", "X-Received": "by 2002:a17:903:1ae6:b0:2b2:57f3:8d07 with SMTP id\n d9443c01a7336-2b97c3cc06amr39418025ad.7.1777392514150;\n Tue, 28 Apr 2026 09:08:34 -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 v3 16/19] cifs: trace points for cached_dir operations", "Date": "Tue, 28 Apr 2026 21:38:01 +0530", "Message-ID": "<20260428160804.281745-16-sprasad@microsoft.com>", "X-Mailer": "git-send-email 2.43.0", "In-Reply-To": "<20260428160804.281745-1-sprasad@microsoft.com>", "References": "<20260428160804.281745-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 f03371abcfef9..75f9f29d303f2 100644\n--- a/fs/smb/client/inode.c\n+++ b/fs/smb/client/inode.c\n@@ -2865,20 +2865,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@@ -2888,6 +2899,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": [ "v3", "16/19" ] }