From patchwork Fri Jun 9 00:51:55 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Suren Baghdasaryan X-Patchwork-Id: 13273054 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4420DC7EE37 for ; Fri, 9 Jun 2023 00:52:13 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id CD4238E0006; Thu, 8 Jun 2023 20:52:12 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id C5CC08E0001; Thu, 8 Jun 2023 20:52:12 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id AFE208E0006; Thu, 8 Jun 2023 20:52:12 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id 9E80B8E0001 for ; Thu, 8 Jun 2023 20:52:12 -0400 (EDT) Received: from smtpin24.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id 6DF791A039C for ; Fri, 9 Jun 2023 00:52:12 +0000 (UTC) X-FDA: 80881382904.24.D0672DC Received: from mail-yb1-f202.google.com (mail-yb1-f202.google.com [209.85.219.202]) by imf11.hostedemail.com (Postfix) with ESMTP id ABB3140006 for ; Fri, 9 Jun 2023 00:52:10 +0000 (UTC) Authentication-Results: imf11.hostedemail.com; dkim=pass header.d=google.com header.s=20221208 header.b="zXF0/SOz"; dmarc=pass (policy=reject) header.from=google.com; spf=pass (imf11.hostedemail.com: domain of 3uXeCZAYKCNwQSPCL9EMMEJC.AMKJGLSV-KKIT8AI.MPE@flex--surenb.bounces.google.com designates 209.85.219.202 as permitted sender) smtp.mailfrom=3uXeCZAYKCNwQSPCL9EMMEJC.AMKJGLSV-KKIT8AI.MPE@flex--surenb.bounces.google.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1686271930; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=JqcDdPqSbAUSGbTjmvLRcpjiA0c+o9DbrViIiTIy+Ug=; b=X0WTjEWZfotkC4LeI2UVij6/bdUqj9QZapEXYjK1g9aBG9M4Zn0TSC5YEEsJBAPrWsKtf+ mDu5wTYznvT5R0gSJCjYEWg9zMR1ibvKhEGPPTlLqm27saPrKga3tZlsALlNf/Ms8T08Ia jWpJgsdO/EZsAUEL7jFrIVjl89HrLLA= ARC-Authentication-Results: i=1; imf11.hostedemail.com; dkim=pass header.d=google.com header.s=20221208 header.b="zXF0/SOz"; dmarc=pass (policy=reject) header.from=google.com; spf=pass (imf11.hostedemail.com: domain of 3uXeCZAYKCNwQSPCL9EMMEJC.AMKJGLSV-KKIT8AI.MPE@flex--surenb.bounces.google.com designates 209.85.219.202 as permitted sender) smtp.mailfrom=3uXeCZAYKCNwQSPCL9EMMEJC.AMKJGLSV-KKIT8AI.MPE@flex--surenb.bounces.google.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1686271930; a=rsa-sha256; cv=none; b=Om+fDMwINPEZFHghE4LpAqE+EAmEZa5k8+baKUecDAOX3upNs1gNEfVbv4HI5um168ridA qwHc33vTOnZViLCPqyVM+e6Lfi/vuoUzKojZlVzceVBFrYN1hiiTMENuQ4rfZ1psoicv66 CHnfZhdDfhPseoUAYS4kHR0kMG2WqC8= Received: by mail-yb1-f202.google.com with SMTP id 3f1490d57ef6-ba8338f20bdso1718291276.0 for ; Thu, 08 Jun 2023 17:52:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1686271930; x=1688863930; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=JqcDdPqSbAUSGbTjmvLRcpjiA0c+o9DbrViIiTIy+Ug=; b=zXF0/SOz02AqM5BWf2P/zwcWEHhQEqJOZyXi3UZpbx8VPRWxCUcaRMvo1gco/xsra2 1KRka8Fv7Cz5TdkzcXaQgC6O85k85tL3gyx/iy3cDrh6mP1AOUruXIGz0ftmdJxZ1KRm ZZx2kRtlsPb6qeLOZNriXbpH5lr8UltQBDA01BaTWp8gpunXX21xn4/zrUa5rAnUvMfl mCkY25J/3lnSqtjOJla8DOtGiyoeA+L2vJd0IiqnWI7c7ZShrlyswyCHOWMMkPwl9HjW QFj7gjWymWSTqWnDk2iKhq+C7yb+32Ze1ontuD7AeEZ5CFFfLh23UfHmunZhj1vbgoCU wHiw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686271930; x=1688863930; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=JqcDdPqSbAUSGbTjmvLRcpjiA0c+o9DbrViIiTIy+Ug=; b=aY0Ax0Hs6Hzt9nOhrTMh/nYKtKIntroeP+Y4Tgf3R+/oXlrAedlQCT3zqmdZurtwRn y1hqbC5eRi0oty5eAq6bKYf/JwsqO2J2VosQQnBSqkOKrr87YP3ZEt94F1L+JlfxPdcY wR41qCMGq1NpW87Fc/rAJIAtxp5Qoxcx2zFsntFO2MJ9UIAP2t+6ywlBsuTwazWVmQKT vLbZ6SU38kaapQHFVdlyISV1XhRhttG5aU0CTUFB/A4UZBEIFCPzPV072Qlg2UlvXhqA R5kdSAmnnB+7FiXUfwC3e3w7jCO2XwAWViwnfWf+jHkjAlHkYcVPkDzZyLy50+d2qS/a UJrA== X-Gm-Message-State: AC+VfDymqHrfMZUfeOu5O16NXyTMKiKGXdwjt3rI3T0S6YDMrK7gGoF0 rhJj4pBN7FldSOowDiDq3Su/jnnMmUQ= X-Google-Smtp-Source: ACHHUZ5YbGKMEwsx1wWALVdFMCpP8nhO2N5qAulNG9AhZTP2wq6KaJAphozg0TQUY00Q3mKklpdD+wtUbrM= X-Received: from surenb-desktop.mtv.corp.google.com ([2620:15c:211:201:c03e:d3b7:767a:9467]) (user=surenb job=sendgmr) by 2002:a25:db09:0:b0:bb1:5962:6fde with SMTP id g9-20020a25db09000000b00bb159626fdemr677035ybf.13.1686271929776; Thu, 08 Jun 2023 17:52:09 -0700 (PDT) Date: Thu, 8 Jun 2023 17:51:55 -0700 In-Reply-To: <20230609005158.2421285-1-surenb@google.com> Mime-Version: 1.0 References: <20230609005158.2421285-1-surenb@google.com> X-Mailer: git-send-email 2.41.0.162.gfafddb0af9-goog Message-ID: <20230609005158.2421285-4-surenb@google.com> Subject: [PATCH v2 3/6] mm: add missing VM_FAULT_RESULT_TRACE name for VM_FAULT_COMPLETED From: Suren Baghdasaryan To: akpm@linux-foundation.org Cc: willy@infradead.org, hannes@cmpxchg.org, mhocko@suse.com, josef@toxicpanda.com, jack@suse.cz, ldufour@linux.ibm.com, laurent.dufour@fr.ibm.com, michel@lespinasse.org, liam.howlett@oracle.com, jglisse@google.com, vbabka@suse.cz, minchan@google.com, dave@stgolabs.net, punit.agrawal@bytedance.com, lstoakes@gmail.com, hdanton@sina.com, apopple@nvidia.com, peterx@redhat.com, ying.huang@intel.com, david@redhat.com, yuzhao@google.com, dhowells@redhat.com, hughd@google.com, viro@zeniv.linux.org.uk, brauner@kernel.org, pasha.tatashin@soleen.com, surenb@google.com, linux-mm@kvack.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-team@android.com X-Rspamd-Queue-Id: ABB3140006 X-Rspam-User: X-Rspamd-Server: rspam02 X-Stat-Signature: cnheaxt8o4j3h89gu4n75ihq6r5egoyk X-HE-Tag: 1686271930-845897 X-HE-Meta: U2FsdGVkX1/UHzUrL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EyR2Nt5FT3/Mdx541WmQ2bFnPJxhjbvhlJQPTv8euY96MP8Bf/fnLpKhD1gs/Bv7gP13MC19P4uf2w30u4H4h2XnnqUZlpAx8zmVOx6d2YrCbu2rA0KLpVVMMuLxrC5fkm6AJmaHd2BoGSS49630dDf6ztdAYRN2ATdIijuwEl0MZU0nMQ8ktQKoLA8pEqZXy6CMj+STWkP2t9jWYEof7R/EfnskvPjHRCf+7BywTLEeE5m7hYtLCPu12aRqzYwq50QpFpfES6PA7mHdSoas1wor2GqAxuq/6mWdSR25T1giHgwtGp++ejGsnC3LgJY1srs5sSCtBDxGa1YdK6bbwS8MtHSa6XOhHlzMsFEiK3QAbHwdipwIFmx4f/JhHRFOtnEfeE6YvTf5bS7pizXXssnHiVH2tfdmZAqxsBSZe8fApi/y8qy6NM98g2kkFahvzMkGSw2Jz2ciR7pC2HVJsudrol7athoWj/upghHTLvTEKMtyhnuU8Aov52PeXWMORrsjDXZxpa7RWAmIxTdvbw== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: VM_FAULT_RESULT_TRACE should contain an element for every vm_fault_reason to be used as flag_array inside trace_print_flags_seq(). The element for VM_FAULT_COMPLETED is missing, add it. Signed-off-by: Suren Baghdasaryan Reviewed-by: Peter Xu --- include/linux/mm_types.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/linux/mm_types.h b/include/linux/mm_types.h index 306a3d1a0fa6..79765e3dd8f3 100644 --- a/include/linux/mm_types.h +++ b/include/linux/mm_types.h @@ -1070,7 +1070,8 @@ enum vm_fault_reason { { VM_FAULT_RETRY, "RETRY" }, \ { VM_FAULT_FALLBACK, "FALLBACK" }, \ { VM_FAULT_DONE_COW, "DONE_COW" }, \ - { VM_FAULT_NEEDDSYNC, "NEEDDSYNC" } + { VM_FAULT_NEEDDSYNC, "NEEDDSYNC" }, \ + { VM_FAULT_COMPLETED, "COMPLETED" } struct vm_special_mapping { const char *name; /* The name, e.g. "[vdso]". */