From patchwork Wed Jun 28 17:25:25 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Suren Baghdasaryan X-Patchwork-Id: 13296085 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 EB87AEB64DC for ; Wed, 28 Jun 2023 17:25:41 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 94B568D0005; Wed, 28 Jun 2023 13:25:40 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 8D4EF8D0001; Wed, 28 Jun 2023 13:25:40 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 7267E8D0005; Wed, 28 Jun 2023 13:25:40 -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 63A718D0001 for ; Wed, 28 Jun 2023 13:25:40 -0400 (EDT) Received: from smtpin22.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id 14BD2C0272 for ; Wed, 28 Jun 2023 17:25:40 +0000 (UTC) X-FDA: 80952833640.22.B92C87F Received: from mail-yb1-f201.google.com (mail-yb1-f201.google.com [209.85.219.201]) by imf10.hostedemail.com (Postfix) with ESMTP id 44AD8C0009 for ; Wed, 28 Jun 2023 17:25:38 +0000 (UTC) Authentication-Results: imf10.hostedemail.com; dkim=pass header.d=google.com header.s=20221208 header.b=UokIsNFS; dmarc=pass (policy=reject) header.from=google.com; spf=pass (imf10.hostedemail.com: domain of 3EW2cZAYKCIg463qzns00sxq.o0yxuz69-yyw7mow.03s@flex--surenb.bounces.google.com designates 209.85.219.201 as permitted sender) smtp.mailfrom=3EW2cZAYKCIg463qzns00sxq.o0yxuz69-yyw7mow.03s@flex--surenb.bounces.google.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1687973138; 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=83rYaWFW6QNQhfB0rTt9RkG69OVxHHwKFqolT0xWQu0=; b=FEfPkc/sRzU/9E2YkyNB6TKWEmSnSf6Jxs07vs/zmy1aTQK+9R6mC4VO1u72O4VlO/lvNr oEGk2YkxyPkj7C1aW5L25WKsDIpiaI+NKo0TOj/WDUwgWqmp4FaI/3XZag8nVtSw6fLdh4 ocZeU7HnTmP/QcAfTVwg2mJZCbU7GyQ= ARC-Authentication-Results: i=1; imf10.hostedemail.com; dkim=pass header.d=google.com header.s=20221208 header.b=UokIsNFS; dmarc=pass (policy=reject) header.from=google.com; spf=pass (imf10.hostedemail.com: domain of 3EW2cZAYKCIg463qzns00sxq.o0yxuz69-yyw7mow.03s@flex--surenb.bounces.google.com designates 209.85.219.201 as permitted sender) smtp.mailfrom=3EW2cZAYKCIg463qzns00sxq.o0yxuz69-yyw7mow.03s@flex--surenb.bounces.google.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1687973138; a=rsa-sha256; cv=none; b=RCfCUANeEDuAsuN3+QQVGtUCxuB03v9AoQaVHnZYC/PV0Acm+5sYeK0pFT14pqykMs4bBC 5LQCmM3Qaw9uHEA625TiOof20dKkK9ht/6UG2q4cZtLQvUn7jd65IFC8GnBdnNOwOTH/s4 jWcEJWZdPBx5U4P7woFN1NTqVeFSwWY= Received: by mail-yb1-f201.google.com with SMTP id 3f1490d57ef6-bd476ef40e0so7681810276.1 for ; Wed, 28 Jun 2023 10:25:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1687973137; x=1690565137; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=83rYaWFW6QNQhfB0rTt9RkG69OVxHHwKFqolT0xWQu0=; b=UokIsNFS7/P5ifE0g0gbJ51af5XfHkQTHzAgzLLCATuc/7MAyN3e2BIPy1izcYPkLY z5f44UMQRnCVB/vZkWWNMEwOIDkzuui+0Zwrl35SVD1vVSw69/uOHfZ8N6f04+Hc4UE8 OMS5qOGaEvHe2e7Pkp97+c129PKIZIfcz2hG05HLZYnQzbeA5Kf51CkDDRCs5Gj3bCn3 IyzanXcnxJEZy6IFmpLEMW/Hpa919YAfn1aORWnHhQljmXr6br6YiaYfYPvCtBgZON7s ICsPLNMrtcvCAid/Y2Aigd28hxg2v4s1SjgCANnNW3FUlDE6VL5Cwje43GGlxg+Y6Z5I IRYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687973137; x=1690565137; 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=83rYaWFW6QNQhfB0rTt9RkG69OVxHHwKFqolT0xWQu0=; b=C9Y84rY3Id7myVJmlKtcsAZy4EKFbvLTFeczq99h2fp7WtVt7QTmcxFkmZcc3w8iHX gpww3F/FouiVIqom+n/OJBWhT2+gALgbRqjhuqMi4o5yoQhkqczf4I4iA/cfOBD38g7T MMFycGFc30qYIcimGaMeupv274pQAyq5Eikd575Ou4+77YVNOtkSSodMjGkH4dLl4J3O 2eu0kcx6K70FMERCQ3SJwu4iKS4AbLrQ+lFRqbcAtMFzKc3Y6ivaZQc+Q2TfHFOWyUNr Rq8br6afVkYC6spV9djmaWFFKjFm+f84MF+ZcEdzTRJ67kX/OAMsv0V+ef4+jIoDFhEn NeLw== X-Gm-Message-State: AC+VfDzRqAU7ggu9YyJSExkuCFr2eb/IHhe4Mc92ZWlxh+m1s5r0tamO Kgg/0Y1qNyQ5d1O3gI4mReocoBsmx98= X-Google-Smtp-Source: ACHHUZ7JjKtitm+lPkm21TpKtpBUVfUzi/WI1UUa7vSu8SsD9xW8kKDV4Pf2ivIVJgyup2CqnecVVXuo0yI= X-Received: from surenb-desktop.mtv.corp.google.com ([2620:15c:211:201:eea3:e898:7d7a:1125]) (user=surenb job=sendgmr) by 2002:a25:ad94:0:b0:ba6:e7ee:bb99 with SMTP id z20-20020a25ad94000000b00ba6e7eebb99mr14318213ybi.12.1687973137283; Wed, 28 Jun 2023 10:25:37 -0700 (PDT) Date: Wed, 28 Jun 2023 10:25:25 -0700 In-Reply-To: <20230628172529.744839-1-surenb@google.com> Mime-Version: 1.0 References: <20230628172529.744839-1-surenb@google.com> X-Mailer: git-send-email 2.41.0.162.gfafddb0af9-goog Message-ID: <20230628172529.744839-3-surenb@google.com> Subject: [PATCH v5 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-Rspamd-Server: rspam09 X-Rspamd-Queue-Id: 44AD8C0009 X-Stat-Signature: fo8sfcxt7z1gabc6zjef783ugxbzu8si X-Rspam-User: X-HE-Tag: 1687973138-412608 X-HE-Meta: U2FsdGVkX198vk4JtM8HiBu9zNHuHUVzFl7KS5LNRoD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k4JiLnWYnidbi1KsXSLtH6i/RmsveAra2z7fv7mKPi92fFrvBW9TkoYFgE7Imt0QN9uEt42uGirqZw9wCORLYEI+4+e+D9OcIuRIjFVybjAu7LvWPt7MO3eVHYcFgfBWEmzrwluNjXD6DJ+7LXYTLgl8IZ5jrGvVLozURDdwNze2PudiIRFHaHBxGWgVdxDgsRYdZFFJqsYN8tNLuMlUn2RxMT2+nq1igvchfip/fQUxrash1av1vEevSHXbB1EkRU6PenW2ZN/dPzuP+L2QOr5QDSTaYu7Tj+QQJHD1U7drB5ILj7Vt4pWHT5BE/XaPjT2MvtQMmQedgCsTRpb3sYrVq35PlaVJI3lSfGhARfP7Fh5a5sszfEoylFRHGia/CiwA/Ze4gGaPaVm0i5YCJuRJ3TobTFV/FRtSwUQPY/OeEjve/G27PO/e3KwjYXkmjq/otNRZ8+PnpOv2zY12MUt3q5IXQfqOG/uPNoQyN/F2xttPWVFYuuDzTSMBbw3eWuDEOC3cl+NkRBwWy7r/+Z5d1j3Bvy0V7+oc5pIwZmeSN016LL/PeBApFtTg== 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]". */