From patchwork Fri Jun 30 21:19:53 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Suren Baghdasaryan X-Patchwork-Id: 13298784 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 6E2BAEB64DA for ; Fri, 30 Jun 2023 21:20:09 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id E58778E004D; Fri, 30 Jun 2023 17:20:08 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id D27958E000F; Fri, 30 Jun 2023 17:20:08 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id BC22B8E004D; Fri, 30 Jun 2023 17:20:08 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id AE08C8E000F for ; Fri, 30 Jun 2023 17:20:08 -0400 (EDT) Received: from smtpin24.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id 8130740DED for ; Fri, 30 Jun 2023 21:20:08 +0000 (UTC) X-FDA: 80960682096.24.A0B5016 Received: from mail-yw1-f202.google.com (mail-yw1-f202.google.com [209.85.128.202]) by imf30.hostedemail.com (Postfix) with ESMTP id AF34A8000A for ; Fri, 30 Jun 2023 21:20:06 +0000 (UTC) Authentication-Results: imf30.hostedemail.com; dkim=pass header.d=google.com header.s=20221208 header.b=CmiBSAVO; dmarc=pass (policy=reject) header.from=google.com; spf=pass (imf30.hostedemail.com: domain of 3BUefZAYKCDwqspclZemmejc.amkjglsv-kkitYai.mpe@flex--surenb.bounces.google.com designates 209.85.128.202 as permitted sender) smtp.mailfrom=3BUefZAYKCDwqspclZemmejc.amkjglsv-kkitYai.mpe@flex--surenb.bounces.google.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1688160006; a=rsa-sha256; cv=none; b=D3/zGR5FZfFcWkro38orGuotMIKgVH9hLI3rRPTFSu5cGqg0izDcjGyFhJ8h1nOuRxQFMj X7nN46gMP14bbTbZKIWnpTf3rubUG2rGWdt2VX6LqcT0fqcEeCtGckdt2FT8anVoCXwo/L wHXhqsfuTJi0dIjHjx6TMSHMGzEXxeY= ARC-Authentication-Results: i=1; imf30.hostedemail.com; dkim=pass header.d=google.com header.s=20221208 header.b=CmiBSAVO; dmarc=pass (policy=reject) header.from=google.com; spf=pass (imf30.hostedemail.com: domain of 3BUefZAYKCDwqspclZemmejc.amkjglsv-kkitYai.mpe@flex--surenb.bounces.google.com designates 209.85.128.202 as permitted sender) smtp.mailfrom=3BUefZAYKCDwqspclZemmejc.amkjglsv-kkitYai.mpe@flex--surenb.bounces.google.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1688160006; 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=wxpT0wtXiDyXAkq9m4Ft7pVFAXex2TsyXSa3a6xpvEY=; b=k2C1warLPIejf53iOoDC3zWQJLcRs8BTYBOqADLM1+Gl1HGObhdsyBQzOzYyyX+R3HEAKV OkAVZK8uGQuEB7QNKX74zMpTv6+BwifIMFvq4u3UBzaYFKbCjFLwysxoBaqokvd+a/cRPV plLEFJJS1v28J0l9b09Rb9hzIDkOYIM= Received: by mail-yw1-f202.google.com with SMTP id 00721157ae682-56942442eb0so23260757b3.1 for ; Fri, 30 Jun 2023 14:20:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1688160005; x=1690752005; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=wxpT0wtXiDyXAkq9m4Ft7pVFAXex2TsyXSa3a6xpvEY=; b=CmiBSAVOd2SJ9KkajKb82g1sbktJiFYJzW5mhwIbhohJMYg+6NliTNYNRvGr7qH9J3 DZo+DChiKr23yUB7iM6WjoSuQzJ60wZzKLuuQC3mPPiMY/9zG+OpIZguJ/pnwtM1HRR0 jBN8ksj8AloU+LK/FwdRLkImKs42oA6n1CCvxR0nsaaBTrAKU+TX0aGyoCQJSV1nSteg QfJaV+ROJPuT8NGWeSCLb3CVxDPCwNixwjO7DkBpmWVUjULNQteVd1/J2ReFt69J8GlU 8FBGmlqRK/+OBL1joScBwgOrtRwZ7y3x0w5Ya6f3GZ8X35wlWUNahWE+vUb7f9HVQmrH GL/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688160005; x=1690752005; 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=wxpT0wtXiDyXAkq9m4Ft7pVFAXex2TsyXSa3a6xpvEY=; b=JKNMYkxoBgsmJaU8wn0AA61gh1LJ0S+R75AnD2erXiYw+5iA+/sE72SdjVyEG6EORE DQ54Mwqis/hoU6ZPcr54ApK25rvFJ83X7rxYyOBUCwzqSQgMEG9BVr4ghPw6JefwtXLY TRHPuinBDSmN3NlCq6Fg2KQ1dILiMgRnvgjKGQCgNuP3Ugs14kMVRfaHmFd6Nsw5oL8U /SzNzjBk5aIPlFKsIScBDJ6Nh71SJHU+EAzbmAB4nILtN3eKKixs++WkYay1OhG1Y+xh fVSR5kgVPHO39RodddMp6BQ2HtQlNH2Hb0F/F1RSfKogA7+O/5xNGUByskwc+R16xdFl rAFw== X-Gm-Message-State: ABy/qLaS8fUrSRDQNHDwSRx3pZ3oOK7vPP5M6MW0llAB4RAhd58i4wCC jvb/9+2h4AFnHJansunD9XbbbPq+Ybs= X-Google-Smtp-Source: APBJJlF5ztBBwyWteO2XW01iQph/9sOhVVQ5xerSWUbLHw3eJriy3uuhavoxZfleLDq4B516ZDfLMavujZQ= X-Received: from surenb-desktop.mtv.corp.google.com ([2620:15c:211:201:b54c:4d64:f00a:1b67]) (user=surenb job=sendgmr) by 2002:a0d:d890:0:b0:565:9bf1:f6b with SMTP id a138-20020a0dd890000000b005659bf10f6bmr29618ywe.8.1688160005788; Fri, 30 Jun 2023 14:20:05 -0700 (PDT) Date: Fri, 30 Jun 2023 14:19:53 -0700 In-Reply-To: <20230630211957.1341547-1-surenb@google.com> Mime-Version: 1.0 References: <20230630211957.1341547-1-surenb@google.com> X-Mailer: git-send-email 2.41.0.255.g8b1d071c50-goog Message-ID: <20230630211957.1341547-3-surenb@google.com> Subject: [PATCH v7 2/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-Rspam-User: X-Rspamd-Server: rspam06 X-Rspamd-Queue-Id: AF34A8000A X-Stat-Signature: ajtordiwibz9d41i9ttkn7bs6j18tnnd X-HE-Tag: 1688160006-422176 X-HE-Meta: U2FsdGVkX1+q4+mViy02kTuFwj18g8airp2ZTrOoSsx6u4n9wmwtdJjuq/UndyiScNewQHXWuxf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XSyeL1aJyO/oA2S61sjxg8Zwk6tVBjUZDG5H2XoaS2YgGBFC0B0p9wLtjvJGO3mJJ8BPBe7GGAq6++lVe2ETIb4dvFlQ1fBaDwofHdsCQCHmCGQy/ZbuZF22UozS9Sj8w6BXqkWHjv0GFXSiBk7bMohnOtjtV5Rlaa82SUBtGvSHkkRbnYVK3nFjt44mhXErhQjjb0RdHEkb8rBQE1QlxrmcJTCJ/Fo41ZC+d5c8u2txFrQ3FCDirkASwAk5l3L/Rwrhdr3ZRjvJwmOXw/7iBPtx36X+oPIuwJjq6Anv+QdfDq7yJ35cioDOuOcESqstuzka1X22o1WjhMaWws0U0LdMvLTj0hrFyNu0mharcMCOm3uizeK7pcjz3V/n6f6MEnqB3oCHh0TEnKrFjhmEe0hsymuxEa8oKAOot7dtoEUH6z41tTS5NEnUpwKrZRc1GuTUxR72p+AVPjRNFCaiF2B/8xevcXcZlJuxraSIfn+gLa10HLdldcSbGlUc3Akimr2SCfTgUn+fWHzwd+pPmz7iAIu4ed8GEHluXL+PBxabq4HDKhnin9gBZvNUT4d9dHE+eIsOZNXHDQx+Oc4A99wE 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 de10fc797c8e..39cd34b4dbaa 100644 --- a/include/linux/mm_types.h +++ b/include/linux/mm_types.h @@ -1077,7 +1077,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]". */