From patchwork Tue Oct 18 18:10:47 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Uladzislau Rezki X-Patchwork-Id: 4278 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp2096332wrs; Tue, 18 Oct 2022 11:16:03 -0700 (PDT) X-Google-Smtp-Source: AMsMyM67xKeSM9ltr71iSqpaYXtqZ1TY875QRhwiTN2mApjJukUf4il7k92PakhEChTiVFeRntuT X-Received: by 2002:a17:906:5dac:b0:78d:fc53:7db1 with SMTP id n12-20020a1709065dac00b0078dfc537db1mr3391790ejv.99.1666116963559; Tue, 18 Oct 2022 11:16:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666116963; cv=none; d=google.com; s=arc-20160816; b=aVrbR27rnDs97T/Mwiv1UR9F7f3q4CyGhBAOBvgKrXyrqUqM3VcDq7S3U1xgVASjz2 dgQDJaQ3o1DSn7GXOCGHn7daJE2KnU3nk7oIKhGjC3/FSQqVycMn/wGf7UAsfwKN7zZy iWFkHUeL/5SVFl9KadxdrsGvj7XcZC+VwVE+FzJEu8909zeQJzI7oov57mWfvlB0QrQD q5QX/s3IS9mD7jS58WmZMdXv0q60MpxGTz6LRwzMvoo5Dhwkba/gitZ8EZioTiCAhUXq M2byoEzVXNVKlRp5Nh23OdsCddBq0ocomWixNnb5eOIoCDWq4tdlWf++Waci7fCzp4EV h8WA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=se3AV6vebDZ5YP2shntPND551GMkzS6L+QPXNqXiQ7o=; b=KbEIj0PsXs7M4/6xUDAPpSbPjY+DORZU6H0tS2w4Tj8aoXWDdTOuzIpFnQNC1r/qYf LC9p6/GjbkPFzObeTxGXShJG2UJaX0XkrpltSlmkPgQYBU1S4Vqg6Qa4R0OcrheDZNDL MyY5CA7n2STOrZu6JTFsj0BkBiRY+jSDVKopBRNnfpXHi5zNZJcJZSKdrrCvpUB9gmwl myQb8dPnazNkSeLREXzmyGmhlfbw9wSzle2HZvhpVk3B65/fQzEsXrjnOb5wyxKlYK2e EtBk+a1IsB0PAm6vj7AaNqo0nbBWlV4cpnpF0xgA7W1TeiG7wIPlyBtkKY5WZKOZvDYu kafg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=EiH1XPct; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id go37-20020a1709070da500b0078356aaeb61si13028136ejc.286.2022.10.18.11.15.36; Tue, 18 Oct 2022 11:16:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=EiH1XPct; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230059AbiJRSLD (ORCPT + 99 others); Tue, 18 Oct 2022 14:11:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45282 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229868AbiJRSLA (ORCPT ); Tue, 18 Oct 2022 14:11:00 -0400 Received: from mail-ed1-x535.google.com (mail-ed1-x535.google.com [IPv6:2a00:1450:4864:20::535]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 076212A402 for ; Tue, 18 Oct 2022 11:10:59 -0700 (PDT) Received: by mail-ed1-x535.google.com with SMTP id r14so21722458edc.7 for ; Tue, 18 Oct 2022 11:10:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=se3AV6vebDZ5YP2shntPND551GMkzS6L+QPXNqXiQ7o=; b=EiH1XPctTsH40jJoCVZZQ2IWCv/qUknaMjZUF6TgNR1NyiiSgP1FKDRwgS3YgvgusO KAuH+P3qhGPDvn9cHgJYQ3UTGZGWiJlnO/BPHA/hsY8Ri9HPyj/YX5Tr7/BV7dnuoHlQ AtOfDu0kXX/3QfwsV1hlmwVz9X+MeAL0TpbJIQ2awoBkxBa+iQkwbt4U+XoHEetoQ3J5 SnhRrjXJuyZiyawCxpUsB/X1SVmr2DP4dlXgGt39dKrXXpQnovJNwgHhtrEYxPAF9Yp5 zigl8L0Dn6HAeQDpPGtOBDWQmEvL6nC2ySfy50CgtLQmONHTErp3JDAE9H2hq5yQ3prC 3mvg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=se3AV6vebDZ5YP2shntPND551GMkzS6L+QPXNqXiQ7o=; b=OX1IU61dl/YpJSFrq5FQOwPupjrFA3CjPb9hSpmlpcAYhzOZ3QU73Byg8F65BVkwa6 w73GdIOmVjra30r/EVr95wWpbs2WkTMl4J8PhSylGe5ritKahZTzXKn74bx7s4aMVOTy iACTXSNXE8Q3/Z4TZcDNR1vvLQWy4WFgmbWQEF1Tf+ehm+K5h66BFRY8DKWuzKKqfsOc XCLJtX0mVXq8ZNkKGVeLNYswBdbimtNrDHqqbIwbxiQTVwzKVrzwYwnILwivXXRv8roc E3tNE8h8LvzmmmIVDPK/NxuZ/LcCG5nJpscIjeDsZaqnl8LwMakz6k/dNSlbDFmHFlzo Fkmw== X-Gm-Message-State: ACrzQf2IE7Be8Htm1vqm1/LwLdME0iGzzL8/pOLhkhmZbT7fJV8Exz3m zke7y5mTlglSpzEzVFaIUTE= X-Received: by 2002:a05:6402:5193:b0:45c:e2c6:6f0e with SMTP id q19-20020a056402519300b0045ce2c66f0emr3820266edd.29.1666116657449; Tue, 18 Oct 2022 11:10:57 -0700 (PDT) Received: from pc638.lan ([155.137.26.201]) by smtp.gmail.com with ESMTPSA id c1-20020a17090618a100b007877ad05b32sm7739302ejf.208.2022.10.18.11.10.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 Oct 2022 11:10:56 -0700 (PDT) From: "Uladzislau Rezki (Sony)" To: Andrew Morton Cc: linux-mm@kvack.org, LKML , Christoph Hellwig , Matthew Wilcox , Nicholas Piggin , Steven Rostedt , Uladzislau Rezki , Oleksiy Avramchenko Subject: [PATCH v2 1/7] mm: vmalloc: Add alloc_vmap_area trace event Date: Tue, 18 Oct 2022 20:10:47 +0200 Message-Id: <20221018181053.434508-2-urezki@gmail.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20221018181053.434508-1-urezki@gmail.com> References: <20221018181053.434508-1-urezki@gmail.com> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747050261255966821?= X-GMAIL-MSGID: =?utf-8?q?1747050261255966821?= It is for a debug purpose and for validation of passed parameters. Signed-off-by: Uladzislau Rezki (Sony) Reviewed-by: Christoph Hellwig --- include/trace/events/vmalloc.h | 56 ++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 include/trace/events/vmalloc.h diff --git a/include/trace/events/vmalloc.h b/include/trace/events/vmalloc.h new file mode 100644 index 000000000000..39fbd77c91e7 --- /dev/null +++ b/include/trace/events/vmalloc.h @@ -0,0 +1,56 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +#undef TRACE_SYSTEM +#define TRACE_SYSTEM vmalloc + +#if !defined(_TRACE_VMALLOC_H) || defined(TRACE_HEADER_MULTI_READ) +#define _TRACE_VMALLOC_H + +#include + +/** + * alloc_vmap_area - called when a new vmap allocation occurs + * @addr: an allocated address + * @size: a requested size + * @align: a requested alignment + * @vstart: a requested start range + * @vend: a requested end range + * @failed: an allocation failed or not + * + * This event is used for a debug purpose, it can give an extra + * information for a developer about how often it occurs and which + * parameters are passed for further validation. + */ +TRACE_EVENT(alloc_vmap_area, + + TP_PROTO(unsigned long addr, unsigned long size, unsigned long align, + unsigned long vstart, unsigned long vend, int failed), + + TP_ARGS(addr, size, align, vstart, vend, failed), + + TP_STRUCT__entry( + __field(unsigned long, addr) + __field(unsigned long, size) + __field(unsigned long, align) + __field(unsigned long, vstart) + __field(unsigned long, vend) + __field(int, failed) + ), + + TP_fast_assign( + __entry->addr = addr; + __entry->size = size; + __entry->align = align; + __entry->vstart = vstart; + __entry->vend = vend; + __entry->failed = failed; + ), + + TP_printk("va_start: %lu size=%lu align=%lu vstart=0x%lx vend=0x%lx failed=%d", + __entry->addr, __entry->size, __entry->align, + __entry->vstart, __entry->vend, __entry->failed) +); + +#endif /* _TRACE_VMALLOC_H */ + +/* This part must be outside protection */ +#include From patchwork Tue Oct 18 18:10:48 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Uladzislau Rezki X-Patchwork-Id: 4279 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp2096366wrs; Tue, 18 Oct 2022 11:16:09 -0700 (PDT) X-Google-Smtp-Source: AMsMyM51IbBmOISRvfTwnoa5IIO+9qq7E6D9cQl8bOMsNxi9apjS6aJoO5h0mND2u+u3lSHabDYa X-Received: by 2002:a17:907:2710:b0:78d:9be4:492a with SMTP id w16-20020a170907271000b0078d9be4492amr3410426ejk.151.1666116969563; Tue, 18 Oct 2022 11:16:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666116969; cv=none; d=google.com; s=arc-20160816; b=DM1m35T9H/SBI5RCo2OedInaj7Bp8rB+R2FP2w4CVeK71t8MiA/A0duRlRbMtL0b57 9XnXT6lfW5BTI598k6I5UyIIawgd/cGWeOFFuElw+62WVfISDgC9D9OZgpF9Nc6tU+W0 q/yeyPUU7GiIobZo4H3fO6eYGUuwCalqv1QUkCBOK2JvR4GO1aoqqObEEuGJnciZPE4T iBNMll4s5fvpgCxhufGrxNKgSzt8/79l7U7wmSxvFeVP3NFfJk70UdNaIiKYTmlr07qx Nebumz+uXjwzNOG+IQWtWmxciMjInfa/Xz9bU4dwkeObGqppnxmMsN0u1kjMuT2xEDt5 mkgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=9FJEHOoMkjVGRlOZfU33xcjvk8gVc0gJkKWOVMhT1hk=; b=N4ef6wvz8KPNnwmYDt0+YgaFCe7g3d4tjv9gC/uhWh5Cj9N6Yr4bise2CCIEH1Vcw1 EQM7h0345jpezHtF84jHKQx2w1J4ejXZaGq5ys1PEyOW5NOCLopZ7bBvF0NSGotx8KzO N//2BeIiHcIsRez1KOR1gi5zTZ7s4IBt9HQgSBnbPZ83Weu1INfUi/Jz+RS3TIGb/XGf BQ60L9MMO9sOy0X+hGOh9QK3AKI5QFW9YtJSW/4DdC0yAkaJyRoOS8ypW3T+PaRlZx3X 3LUC6jDPYvQ1YMGjjMVl5HWN63mlgFNCbMYvZESQOc3TfbejP0zTEkOlzFY1xxznetEV YnIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=YKVioc1c; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y11-20020a50eb0b000000b0045b50cee511si11272525edp.122.2022.10.18.11.15.43; Tue, 18 Oct 2022 11:16:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=YKVioc1c; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229752AbiJRSLG (ORCPT + 99 others); Tue, 18 Oct 2022 14:11:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45290 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229896AbiJRSLA (ORCPT ); Tue, 18 Oct 2022 14:11:00 -0400 Received: from mail-ej1-x634.google.com (mail-ej1-x634.google.com [IPv6:2a00:1450:4864:20::634]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0E9BD72EC2 for ; Tue, 18 Oct 2022 11:11:00 -0700 (PDT) Received: by mail-ej1-x634.google.com with SMTP id d26so34271072ejc.8 for ; Tue, 18 Oct 2022 11:10:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=9FJEHOoMkjVGRlOZfU33xcjvk8gVc0gJkKWOVMhT1hk=; b=YKVioc1cJrhW8j2q33izuLomY4JfzAqH6+8bDDXIqMvE4+VgTl1+DWt9X0JvJa96dS bjWwF2UlwQLI14UU085xpm9npwWQbW4iK3Sw30+tefJYDNaUP06vzKyETch6tOA7s2Yd F/KUA26JImniA6eEzt0bjQJpH9fNxjeIpw0qyvleGFF+p+lWtXc6UbwyirQn8qCbwUMe kirJf4P99BF4BV0Sr1O9g+L44sDFNkW71NnO7pDKFvrceM7QzalCKzDHyiuiz6U9WYML HoagkIuOoJwwxsMTZouT8vD0rRQNwMlVMjzNwyx2Wv3v6p+RV9btb5h605iO1R6WG655 p70A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=9FJEHOoMkjVGRlOZfU33xcjvk8gVc0gJkKWOVMhT1hk=; b=uC7zHmAVYPvmBeny5eVdOUheOJMkkKW5VZxS4d2iMwcJUJei5y7t3rTDPzzt9xoybC U4D9AYTzWSKHybroiAwu7QiqUjzgvU4VMcVHoky8upr1p1DY+oR7hyHxHEl9NqyOAxmZ UwT0JIQeQjeLfDcM10VotsFE6LsnHAjmWKGHzeTGRe4lDnw0d2xMnos6bVT2oVt07Rlr N4zWKdAs82ZJOveoaq01G3wB3dhI5vVwxFDakbcidNm0W9Hr3LC7Zsk5dbaDYlJEowvA UUdyfA2zz+vdb6+vJw8r97sOwLAG0GYikBKYwCxwH3pl2COUS4romGeHL46cfFdn1fr6 524Q== X-Gm-Message-State: ACrzQf23PpkaeUsvDNZh0hYWwMJlyzlGBNmXf48U6cI7lnJfwB3CSKHU /9R9qJHx/w3eaItHFh2eI60= X-Received: by 2002:a17:907:97c2:b0:78d:accc:c0a9 with SMTP id js2-20020a17090797c200b0078dacccc0a9mr3400841ejc.312.1666116658572; Tue, 18 Oct 2022 11:10:58 -0700 (PDT) Received: from pc638.lan ([155.137.26.201]) by smtp.gmail.com with ESMTPSA id c1-20020a17090618a100b007877ad05b32sm7739302ejf.208.2022.10.18.11.10.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 Oct 2022 11:10:58 -0700 (PDT) From: "Uladzislau Rezki (Sony)" To: Andrew Morton Cc: linux-mm@kvack.org, LKML , Christoph Hellwig , Matthew Wilcox , Nicholas Piggin , Steven Rostedt , Uladzislau Rezki , Oleksiy Avramchenko Subject: [PATCH v2 2/7] mm: vmalloc: Add purge_vmap_area_lazy trace event Date: Tue, 18 Oct 2022 20:10:48 +0200 Message-Id: <20221018181053.434508-3-urezki@gmail.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20221018181053.434508-1-urezki@gmail.com> References: <20221018181053.434508-1-urezki@gmail.com> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747050267739505516?= X-GMAIL-MSGID: =?utf-8?q?1747050267739505516?= It is for debug purpose to track number of freed vmap areas including a range it occurs on. Signed-off-by: Uladzislau Rezki (Sony) Reviewed-by: Christoph Hellwig --- include/trace/events/vmalloc.h | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/include/trace/events/vmalloc.h b/include/trace/events/vmalloc.h index 39fbd77c91e7..afeb8003a0f2 100644 --- a/include/trace/events/vmalloc.h +++ b/include/trace/events/vmalloc.h @@ -50,6 +50,39 @@ TRACE_EVENT(alloc_vmap_area, __entry->vstart, __entry->vend, __entry->failed) ); +/** + * purge_vmap_area_lazy - called when vmap areas were lazily freed + * @start: purging start address + * @end: purging end address + * @npurged: numbed of purged vmap areas + * + * This event is used for a debug purpose. It gives some + * indication about start:end range and how many objects + * are released. + */ +TRACE_EVENT(purge_vmap_area_lazy, + + TP_PROTO(unsigned long start, unsigned long end, + unsigned int npurged), + + TP_ARGS(start, end, npurged), + + TP_STRUCT__entry( + __field(unsigned long, start) + __field(unsigned long, end) + __field(unsigned int, npurged) + ), + + TP_fast_assign( + __entry->start = start; + __entry->end = end; + __entry->npurged = npurged; + ), + + TP_printk("start=0x%lx end=0x%lx num_purged=%u", + __entry->start, __entry->end, __entry->npurged) +); + #endif /* _TRACE_VMALLOC_H */ /* This part must be outside protection */ From patchwork Tue Oct 18 18:10:49 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Uladzislau Rezki X-Patchwork-Id: 4280 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp2096576wrs; Tue, 18 Oct 2022 11:16:37 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6hEUZB2MUJ1pQoQdrlD92Z712SYkE451Vm+8N2Bmz/PI0quVcWzfd7NuKDfV9yYcm505Rk X-Received: by 2002:a05:6402:909:b0:435:a8b:5232 with SMTP id g9-20020a056402090900b004350a8b5232mr3797317edz.240.1666116997257; Tue, 18 Oct 2022 11:16:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666116997; cv=none; d=google.com; s=arc-20160816; b=bMtuxWnHcS0w5IBdWTssvw/y4FyeofONiwwrJcSge7ov6dIIvlJpb/S/ukjODP2EEl GiAbf0SknRKr8aDg8u7rwm3ya0uhiaIkZq46y0zlj67zysj2Mr0bvDmaKvqdKHkg3ph/ iookTuhO35PrJm/gT2Gk2aZ7SJdJJf5PrGJc4vUWajlK9Hc9cAlPzSagUaiTGbeurbQ5 3gCNykCNx/YUrxuJLA/kppBTRAMRSCzkLDVEgJVypYNJEO/TwEVKvlWwvsFw4kSQjigW 0KY/e/yO/iOT3fay0xgjemAnVg4ChebjLVqFXwV4EpRICRiqb+GKB5m8HiOIex0JvYKX 79/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=vGvV10NBcCrSezhTjPfao8bP5T+d+bVsisSq+cCouQY=; b=r5rKQjJDEUtVj4wzM0V74GQ/vaTUDdjuR00i+jmulQyhbHg4Ky3DrsPAOKoYjeqPnk OH5QUneVjm2VGeNYtp7fSbHG/lu3D5Cp+cxhgEO/zfjA85d5jWuFYVJTtaFutPAJFR6a yJWwGnYTnWR5P9ZZqigsYdbxynplV/K5hQwG5Oh81r15tZI87trAj9YDaj462SlIl7ok f109Q3jpjTyl7BJ1xgaoapqGKy34Jey0jPtiEM/53N+wJubyOoC3nOoSC0ewKzl5lQUu RdHNENb165PDZS75aHZ1clJoSAR0+2P7bMZ/RPY33lOWM9Hz+I9zQaaiB1Rejvsk/u/q enfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="cp/WUR6a"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m18-20020a509992000000b0045c1782d77esi11785969edb.532.2022.10.18.11.16.12; Tue, 18 Oct 2022 11:16:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="cp/WUR6a"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230180AbiJRSLJ (ORCPT + 99 others); Tue, 18 Oct 2022 14:11:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45320 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229816AbiJRSLC (ORCPT ); Tue, 18 Oct 2022 14:11:02 -0400 Received: from mail-ed1-x530.google.com (mail-ed1-x530.google.com [IPv6:2a00:1450:4864:20::530]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 430752A402 for ; Tue, 18 Oct 2022 11:11:01 -0700 (PDT) Received: by mail-ed1-x530.google.com with SMTP id a67so21677911edf.12 for ; Tue, 18 Oct 2022 11:11:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=vGvV10NBcCrSezhTjPfao8bP5T+d+bVsisSq+cCouQY=; b=cp/WUR6aCWDI+OCpdo1Mqr37ZrkfYXFwt2cAJh73Rf++Ascr6Pz5amkT4eshLOmmx5 I0sXthOSWHzTxx7KwTkIx5m4VZyF/ULV3atv3AnIicjKIPTEetEh2ZZLctb+ClyI0De/ HxvvI0ijAX38uAiMRAP6Xop6Ar7rmg9DsM+kdALIDC2oqA0emaacv5H62+RRe09rHxOJ 0aBVQG16MsalBddkiNBvDbV5KYggQzgZwcDkzQ+CuOZ8VQiCGuzWTvV8hjafJ5trvg7A YmMWXKMxxqXNtEF6deex7PGOzGkiFnz/NsX00cO4/cIY6JCqUTNPCJiLqUM4jU9XVnoi +5xA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=vGvV10NBcCrSezhTjPfao8bP5T+d+bVsisSq+cCouQY=; b=On5lEBzWigNsDTcA/4RLi7CHzx2dwRops24GYcO1VGLgsAblL1TGr95BLEPuhCOJ8b mkLkhtDpGdGBqgXgpi3KeuG5mzSP4SZZgNWvD1s6ooZ6McZ5si2feZGkjjVLmTImm4O1 Y11hTrHX4Gnpn7f/U0blCVeUAYS2MoAuBlYrG6eNrQs9/zpMMvjnVQ8Mn8TNQCcuL/Cw McRD+9xb8BF15mYApnWaynfq6VpvZ1GSbyBPtN/khRN97B0d8jqzZVa+AZDTqkDIa88B mpvd5nsTWcqMAJL3wqn34VCDPIABvpTUcyIRWVPtfcCN/nBsBlzW90b05QWzwAGvbdzs pM9g== X-Gm-Message-State: ACrzQf1I1135y3b+sZ8EIFEzOM9Fo/A7RMCFlw2Wp0REYhkN6AQMbfl+ y0habHUTRxjG3ylB5ho//v/df5HZQew= X-Received: by 2002:a05:6402:320e:b0:45c:ae50:dbca with SMTP id g14-20020a056402320e00b0045cae50dbcamr3810327eda.104.1666116659623; Tue, 18 Oct 2022 11:10:59 -0700 (PDT) Received: from pc638.lan ([155.137.26.201]) by smtp.gmail.com with ESMTPSA id c1-20020a17090618a100b007877ad05b32sm7739302ejf.208.2022.10.18.11.10.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 Oct 2022 11:10:59 -0700 (PDT) From: "Uladzislau Rezki (Sony)" To: Andrew Morton Cc: linux-mm@kvack.org, LKML , Christoph Hellwig , Matthew Wilcox , Nicholas Piggin , Steven Rostedt , Uladzislau Rezki , Oleksiy Avramchenko Subject: [PATCH v2 3/7] mm: vmalloc: Add free_vmap_area_noflush trace event Date: Tue, 18 Oct 2022 20:10:49 +0200 Message-Id: <20221018181053.434508-4-urezki@gmail.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20221018181053.434508-1-urezki@gmail.com> References: <20221018181053.434508-1-urezki@gmail.com> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747050296404761905?= X-GMAIL-MSGID: =?utf-8?q?1747050296404761905?= This event is used in order to validate/debug a start address of freed VA, number of currently outstanding and maximum allowed areas. Signed-off-by: Uladzislau Rezki (Sony) Reviewed-by: Christoph Hellwig --- include/trace/events/vmalloc.h | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/include/trace/events/vmalloc.h b/include/trace/events/vmalloc.h index afeb8003a0f2..ad4e02191f35 100644 --- a/include/trace/events/vmalloc.h +++ b/include/trace/events/vmalloc.h @@ -83,6 +83,40 @@ TRACE_EVENT(purge_vmap_area_lazy, __entry->start, __entry->end, __entry->npurged) ); +/** + * free_vmap_area_noflush - called when a vmap area is freed + * @va_start: a start address of VA + * @nr_lazy: number of current lazy pages + * @nr_lazy_max: number of maximum lazy pages + * + * This event is used for a debug purpose. It gives some + * indication about a VA that is released, number of current + * outstanding areas and a maximum allowed threshold before + * dropping all of them. + */ +TRACE_EVENT(free_vmap_area_noflush, + + TP_PROTO(unsigned long va_start, unsigned long nr_lazy, + unsigned long nr_lazy_max), + + TP_ARGS(va_start, nr_lazy, nr_lazy_max), + + TP_STRUCT__entry( + __field(unsigned long, va_start) + __field(unsigned long, nr_lazy) + __field(unsigned long, nr_lazy_max) + ), + + TP_fast_assign( + __entry->va_start = va_start; + __entry->nr_lazy = nr_lazy; + __entry->nr_lazy_max = nr_lazy_max; + ), + + TP_printk("va_start=0x%lx nr_lazy=%lu nr_lazy_max=%lu", + __entry->va_start, __entry->nr_lazy, __entry->nr_lazy_max) +); + #endif /* _TRACE_VMALLOC_H */ /* This part must be outside protection */ From patchwork Tue Oct 18 18:10:50 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Uladzislau Rezki X-Patchwork-Id: 4281 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp2096600wrs; Tue, 18 Oct 2022 11:16:40 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6BbAWVcg9aGAjzV8sj0yUC7iW+CXwPJGxatmtQBrrsU0nah6ko3+l+CzY5ZjF58TkX5EqZ X-Received: by 2002:a17:907:968d:b0:78e:1a4:131 with SMTP id hd13-20020a170907968d00b0078e01a40131mr3446454ejc.439.1666117000268; Tue, 18 Oct 2022 11:16:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666117000; cv=none; d=google.com; s=arc-20160816; b=YpbVQpxz4NPpsUxlL8PNo+zQMqnUZP/KxCZqlg1Du5MmObhCBCRdG6UDPITbKNURxL J3lGIf4KFnmLLxHh7xM473foNaK0d9LYOUq+HFI/7TNX0NWleuSK4OoBxHYTk2TCfV7Q 4ndN2Af4YWWeM429aKcjH10B/Fvoct3CU2hda+ZK8ogM8jUBU2CUD0B37Sm/e8zo+C47 wzUY3xJ5BeM/g27Pm0Vhnd43SfZWM1IUTRjqlgWcSEQ/cEB5uViGaefiBuGyPKGZHxgh ZAZsNrGtiuWoig76AR6BsKjOQDVNG7d32ToM0IY+oGqCu1AuK3Vi5jWnvO0cmy95EGZr EXiQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=EAJWBA/OARebIHwOWWIUrI8OsApEiB0+kqbjGVUJums=; b=WuTMH0r65qU6vt30JvMu4awJ9GKoMq2YvNrfS7tndavDe8KsQIajiW6OqydQnACcIY m5enrMSYAU3GZiiMtfNn4u+0G5O28cotprYbWVRiKj4etHqfjhelxIlR1m0osg+7vUZT LKYGGPUvtBfEqPS5HEFGICzFKwBXTTwEBx2VjvexhqEJ0afbnLpwAyySIpEsUw0mLhEy smKIVjMTVnbPu4Z8brXiRf5Z8j6Y7zZ0o6KtEReUj14tD69a5R2A/Z5wTdP9Iyu2pWcK NgK0FWDOBY8tlWSFfwNrIbfCxs60+gy+1thy5DGuEIe0nsdTdfs4hSt8HgDbvHge9Gif qHXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=HvkyVCyo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hz6-20020a1709072ce600b00791a5f0b140si195647ejc.993.2022.10.18.11.16.14; Tue, 18 Oct 2022 11:16:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=HvkyVCyo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229911AbiJRSLN (ORCPT + 99 others); Tue, 18 Oct 2022 14:11:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45322 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230028AbiJRSLD (ORCPT ); Tue, 18 Oct 2022 14:11:03 -0400 Received: from mail-ej1-x634.google.com (mail-ej1-x634.google.com [IPv6:2a00:1450:4864:20::634]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 11F5A72FEC for ; Tue, 18 Oct 2022 11:11:02 -0700 (PDT) Received: by mail-ej1-x634.google.com with SMTP id d26so34246229eje.10 for ; Tue, 18 Oct 2022 11:11:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=EAJWBA/OARebIHwOWWIUrI8OsApEiB0+kqbjGVUJums=; b=HvkyVCyohI92aQ42AIyvAmRtEfrXjp3pdtcMqXO4f1kiXF3JRKo6/+ClnJLEJc1Q2j K7WRrHtKlCnYcQgAQY1/2RMQ4v13NmnVELOdn28A4n6N7QTDJP/7yOG85liAJgGQdGg/ O+Ve4jEHCwMyPOWikF0Sw9vsqnh3Ulsi7gfS5owk+S6P902sb28WHA+7IP60laDr6cOn j9JdxHesbeQt4mS+XVtD0VCZEiuDGk64otVXpr3u1cYUDewim+CyLnSDJdAUZ73WQIKg x5bjSJchsWWNoqqH2RFIatAQkN5dBhRtuHJOkSPQKQeyOfdMqZPeHVcpCYju4pGP+Hy+ niow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=EAJWBA/OARebIHwOWWIUrI8OsApEiB0+kqbjGVUJums=; b=bncn5+Pi7syBqWgSpTseURkIBNVcXC7JFtNYkWPw2g9Vq5jYYKuFPVd4ybe/ph9/nc gYYidvvGxJISJyCk1m721itofCi8YSlgm9jV7d1wDBlRTQwda8xXoEEeMTbY8k5U98zH hlkBrbPO7+d7iX+35oD2nGV1xzsGMrX9OIKlCxSELNjFLaD16b8iFroiZUYJ1XeErnDI TZtESaTYtrezHEvAml/uDpOlFh3m1VeIybLUrdijgL7yxSepYaMjsy1s412T3e17z5uc KjjKGCgfFtERgVgvJBtmQX7rw2jITedGT4JHwhaa6+9YgUvoP9+T2/Kgw4XO0kRdnaAu Rfqg== X-Gm-Message-State: ACrzQf1kGpKq7mAMAPKHHKu0duIJ6MsSpyB0XEwTuUdWQNPaqtIqM0j4 ahQNtscInJEcfKTOoNGHb88= X-Received: by 2002:a17:906:328c:b0:780:7574:ced2 with SMTP id 12-20020a170906328c00b007807574ced2mr3541108ejw.634.1666116660657; Tue, 18 Oct 2022 11:11:00 -0700 (PDT) Received: from pc638.lan ([155.137.26.201]) by smtp.gmail.com with ESMTPSA id c1-20020a17090618a100b007877ad05b32sm7739302ejf.208.2022.10.18.11.10.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 Oct 2022 11:11:00 -0700 (PDT) From: "Uladzislau Rezki (Sony)" To: Andrew Morton Cc: linux-mm@kvack.org, LKML , Christoph Hellwig , Matthew Wilcox , Nicholas Piggin , Steven Rostedt , Uladzislau Rezki , Oleksiy Avramchenko Subject: [PATCH v2 4/7] mm: vmalloc: Use trace_alloc_vmap_area event Date: Tue, 18 Oct 2022 20:10:50 +0200 Message-Id: <20221018181053.434508-5-urezki@gmail.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20221018181053.434508-1-urezki@gmail.com> References: <20221018181053.434508-1-urezki@gmail.com> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747050299885674684?= X-GMAIL-MSGID: =?utf-8?q?1747050299885674684?= This is for debug purpose and is called when an allocation attempt occurs. This event gives some information about: - a start address of allocated area; - a size that is requested; - an align that is required; - vstart/vend restriction; - if an allocation fails. Signed-off-by: Uladzislau Rezki (Sony) Reviewed-by: Christoph Hellwig --- mm/vmalloc.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mm/vmalloc.c b/mm/vmalloc.c index 83b54beb12fa..aa86f21bfad0 100644 --- a/mm/vmalloc.c +++ b/mm/vmalloc.c @@ -43,6 +43,9 @@ #include #include +#define CREATE_TRACE_POINTS +#include + #include "internal.h" #include "pgalloc-track.h" @@ -1621,6 +1624,8 @@ static struct vmap_area *alloc_vmap_area(unsigned long size, size, align, vstart, vend); spin_unlock(&free_vmap_area_lock); + trace_alloc_vmap_area(addr, size, align, vstart, vend, addr == vend); + /* * If an allocation fails, the "vend" address is * returned. Therefore trigger the overflow path. From patchwork Tue Oct 18 18:10:51 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Uladzislau Rezki X-Patchwork-Id: 4282 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp2096617wrs; Tue, 18 Oct 2022 11:16:42 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5Syssq4TKcMJ4dE9Ellk685TeJpgpL6eYy643+9WSFdwYGNm2guCJNmlVD3ceFXDLnYKIo X-Received: by 2002:a17:907:9603:b0:742:9ed3:3af2 with SMTP id gb3-20020a170907960300b007429ed33af2mr3514216ejc.510.1666117001901; Tue, 18 Oct 2022 11:16:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666117001; cv=none; d=google.com; s=arc-20160816; b=0ZvKKesp9RM872xeEmxfKmC6NFSD2P3iUFkXXXNLMP2smA/DJqk2GeqhGBAc60zxKd AtRss7MPWO2EjcMGRWnDmmApC7a5sGYPVDuEU8/sQizgBPUKt3UCOPyP9xDfyKYsSRvK eV2EYEwHUElV9oD87wHWjbc0DX9ewF58TwszktplwSCeHjWXt/5E+sHcD6gSzarF+Yxq TLeNN4jbyjbs8hNBR4gTWHfEihlv1qHBkcg58awpAVCU0niEnJnyLVlkpM09P1YDDfNo ypJN5CoDfuIHss0NfoKK0kPv6eON1b9Xb4mlsaFmwEriF8v+7fMUjb/66FC00uZN2YMO Mggg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=n8kMXp9BQAd3vgxARQi9NOKOPWDC+b4eB+IRpUUVrl4=; b=AJ/MJ2B/YWvIru5jLB6TL7k9awBvA/xmcrU8YjIYsMbPJ2jVB7muKkPVXG+FbPomyY tIz9ntbif3RMXr5+I6paqXK9yTShU6Hb57i8XWmutLcT4DX+Rp44qgjBtQL4UYVJPm/m ANyQ4vBrnBHvsUD+MkBVPXDsKri9JVhHNthKIQ99jgX0GaD3huCmmqZx3o9ZRqDkpmOs LJP91x5IMjaZEw+b3dBhmlBdcYeUthS1nuapfkZmxEdncEtSFPdMtkoZ1A5DsYrgGDUF OX/rYcogeHgEt9lV+FOvgYffCAPmEy275sI16RGVjsxxSiy9zyw/6EJb0HVbpr6hEuFi a4Dg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=WfSPJEGU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cr12-20020a170906d54c00b0078d4e67ca81si12678477ejc.605.2022.10.18.11.16.17; Tue, 18 Oct 2022 11:16:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=WfSPJEGU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230188AbiJRSLS (ORCPT + 99 others); Tue, 18 Oct 2022 14:11:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45394 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230084AbiJRSLF (ORCPT ); Tue, 18 Oct 2022 14:11:05 -0400 Received: from mail-ed1-x536.google.com (mail-ed1-x536.google.com [IPv6:2a00:1450:4864:20::536]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C23FD733DA for ; Tue, 18 Oct 2022 11:11:03 -0700 (PDT) Received: by mail-ed1-x536.google.com with SMTP id m16so21757116edc.4 for ; Tue, 18 Oct 2022 11:11:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=n8kMXp9BQAd3vgxARQi9NOKOPWDC+b4eB+IRpUUVrl4=; b=WfSPJEGUoF2C9KAvUYS570nptYgLA/TuWUM/Ysm9180aXj8gEJL6TR3123vRXv72s7 XFX+/7g1IMk6mf/h5jeA+hPg0nl725MnZQc7Q38P9jvAXr75fkC63/p0h5UmM5KUegTY D2z9K80d7tlDUECwTADSfkpPpF9Dk4ZY74npnitOV4oqWqarha84ZLQLT3Xz04BFACCB 8PwzK8coREdFHo8Pb8ZxRj4TRiqxAxYTK5AbtLBq81L/WTL8EF+6MFdsPxvosGw0b3DG dZSKqSkKwHzfCv+UALd5/k+1QbABrGTotVu4KWiVPzobmZURCQdTLLx2WkGmS1A3adcB T3Qg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=n8kMXp9BQAd3vgxARQi9NOKOPWDC+b4eB+IRpUUVrl4=; b=LXHjCm/Oseoks6qiYtHzMhBXcK7u2NpAGT1O0oRBan+EsC7hG2R8ayM1owcBKOqM76 +dQNDwz8t2/2mHo3qMgoaZQ641QRbdx29Pdy4S0p1FITz4X+pOlULNZPc9UPMZKwWRnc dpaiRtIswTIHf4sE1MAjBLfikKsLbZ1fyoIXnsTTojRkoSSj40eeg9GJBJjv61fsHr0i Z2aKxbMMvaKGIRyL/iSOmKGSXIy5v25i7Uv+h0RRnTFRxfT0vIq4vPHoODQG2l3t4RvT HtHF3oxBFisM00Ny1VC06qkgasSjLnsMX5mMyrUMMmAzV5/w9EyiWlUb5itrUNH6fou5 Slcg== X-Gm-Message-State: ACrzQf1fUk1QgbNr8ILYvRbQWcivHrA0+qGE4lukq4CisDdaM/DEG1Fc RPDHb9Kbu3NHQRv4hAw9Ogk= X-Received: by 2002:a05:6402:f96:b0:459:4180:6cf4 with SMTP id eh22-20020a0564020f9600b0045941806cf4mr3805343edb.64.1666116661749; Tue, 18 Oct 2022 11:11:01 -0700 (PDT) Received: from pc638.lan ([155.137.26.201]) by smtp.gmail.com with ESMTPSA id c1-20020a17090618a100b007877ad05b32sm7739302ejf.208.2022.10.18.11.11.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 Oct 2022 11:11:01 -0700 (PDT) From: "Uladzislau Rezki (Sony)" To: Andrew Morton Cc: linux-mm@kvack.org, LKML , Christoph Hellwig , Matthew Wilcox , Nicholas Piggin , Steven Rostedt , Uladzislau Rezki , Oleksiy Avramchenko Subject: [PATCH v2 5/7] mm: vmalloc: Use trace_purge_vmap_area_lazy event Date: Tue, 18 Oct 2022 20:10:51 +0200 Message-Id: <20221018181053.434508-6-urezki@gmail.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20221018181053.434508-1-urezki@gmail.com> References: <20221018181053.434508-1-urezki@gmail.com> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747050301522367258?= X-GMAIL-MSGID: =?utf-8?q?1747050301522367258?= This is for debug purpose and is called when all outstanding areas are removed back to the vmap space. It gives some extra information about: - a start:end range where set of vmap ares were freed; - a number of purged areas which were backed off. Signed-off-by: Uladzislau Rezki (Sony) Reviewed-by: Christoph Hellwig --- mm/vmalloc.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/mm/vmalloc.c b/mm/vmalloc.c index aa86f21bfad0..4292f44ae670 100644 --- a/mm/vmalloc.c +++ b/mm/vmalloc.c @@ -1731,6 +1731,7 @@ static void purge_fragmented_blocks_allcpus(void); static bool __purge_vmap_area_lazy(unsigned long start, unsigned long end) { unsigned long resched_threshold; + unsigned int num_purged_areas = 0; struct list_head local_purge_list; struct vmap_area *va, *n_va; @@ -1742,7 +1743,7 @@ static bool __purge_vmap_area_lazy(unsigned long start, unsigned long end) spin_unlock(&purge_vmap_area_lock); if (unlikely(list_empty(&local_purge_list))) - return false; + goto out; start = min(start, list_first_entry(&local_purge_list, @@ -1777,12 +1778,16 @@ static bool __purge_vmap_area_lazy(unsigned long start, unsigned long end) va->va_start, va->va_end); atomic_long_sub(nr, &vmap_lazy_nr); + num_purged_areas++; if (atomic_long_read(&vmap_lazy_nr) < resched_threshold) cond_resched_lock(&free_vmap_area_lock); } spin_unlock(&free_vmap_area_lock); - return true; + +out: + trace_purge_vmap_area_lazy(start, end, num_purged_areas); + return num_purged_areas > 0 ? true:false; } /* From patchwork Tue Oct 18 18:10:52 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Uladzislau Rezki X-Patchwork-Id: 4288 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp2097643wrs; Tue, 18 Oct 2022 11:19:09 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4X4vdo47/HEAEicXwgL1gke8e3MhiQsG6KRF+SfIQCYvCy2OUkZDGyDUEJfhZB5+8tpPVc X-Received: by 2002:a17:902:7c98:b0:17f:941a:65e0 with SMTP id y24-20020a1709027c9800b0017f941a65e0mr4439558pll.143.1666117149182; Tue, 18 Oct 2022 11:19:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666117149; cv=none; d=google.com; s=arc-20160816; b=kV0v3RfSlRQXK8RyKmhtuGzglmufG0qLz5CQsLWAd2htFKXiORgfsq1z+3wVaZXIGY QDWOrRE1k+STBKPclxJ33m19qQe3MFSZNXZdcmBGtmMjuycH9Sq5ZlbAdDQ1wW0VMrbz EEtr80ZUI9wq/8EOsU40fVubZC8sGGShNOXYoRebPWgWJ5jmQnU65UIadTaB7ht7/gqv 5VnOGTBUX3l8Io/CC7ZOwOmfRnqrOnJS5ZZUmrNf3yO12n0GQfIVLCk+v9K30kk0Zn6C atdtimlUEWxqWXsqRTVTsi9nJgnnyp77zYfxXQSjBLAunndmg0Rf29/GXMbxBRDQxdmW XO1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Pi0tjzbLmXgGsglusGmrSt3nKwzpPKhOzNGgAFj4deM=; b=tAaUbYv8SKQlVHnqEkWW3lhOTX4Lr52xEXXCe1HK1utNb+QYNyWvdc2014TMF9ik6h wWt0wle7oK4v0HrBDC0SLTHzwq39SQYD1hyc/sm9xpxmY90gpd9VO4FI5wGng3HgMbEM JWLbDlWxAsv9I/fr4yh0juzVTAgpk3A4RC1fn2HzEAfe76Yda3VIEEKom4yRi8OQg9P5 /y8CePXzzrtQ26FjpOwGjNxzQicM+YOfAWCcp9foaOIPEpMZRJks8X1Qr9N00QSThZrK WHEF7G/FPX1mxZq1Y8BR8t/+lNnVz4hQLiIa0qNgvgrtB3KCiKc7PIPgcog4kYxs7rmR eCFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=J35hy3hb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g187-20020a636bc4000000b0045fa6e37564si15606773pgc.816.2022.10.18.11.18.56; Tue, 18 Oct 2022 11:19:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=J35hy3hb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230070AbiJRSLV (ORCPT + 99 others); Tue, 18 Oct 2022 14:11:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45426 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230161AbiJRSLG (ORCPT ); Tue, 18 Oct 2022 14:11:06 -0400 Received: from mail-ed1-x532.google.com (mail-ed1-x532.google.com [IPv6:2a00:1450:4864:20::532]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2F7BE72FEC for ; Tue, 18 Oct 2022 11:11:05 -0700 (PDT) Received: by mail-ed1-x532.google.com with SMTP id m15so21683430edb.13 for ; Tue, 18 Oct 2022 11:11:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Pi0tjzbLmXgGsglusGmrSt3nKwzpPKhOzNGgAFj4deM=; b=J35hy3hbYScd9cIdMAW/EhRXhuMHkMIbXqlAvSSnIY27KTlIg7uboTgd1AXcX9OjBP LgOnwf6MOgzur7qqpFElJ+91KdHC0ymafDroc/4r9m9fvtrFxMQNj/P4JPFSO7KMJ2yF 7CRJPh6bVA4+3AI3/mB5yiwzHi04YCVk4opiXmufUS3us8kpBR0bh+xpivtbT8raOFG/ 8BJHX4mlM1kUnQnOCnPGnh6I3hGjOSCIqsE8kppaSzYHBhFVY2ATiB6PRNpt4zm1yImZ LLRwpgnP/nA/8JUwlPgFQ8y8u27DXDnSOTZfG5AGSwsGR9d51XvYbm41HFGhdvz3fwYp plzQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Pi0tjzbLmXgGsglusGmrSt3nKwzpPKhOzNGgAFj4deM=; b=jCbf1lLRlwQ3ZVg69qvBkxndjlpp/duHv4iLarbXYZUQQtzr3Jep0Lw+oYIu09nMTZ jqawIsFUB3mn6zU9XHr1UOY8+EQvMRsmdWU+skBij+wJjsrcLeZLgn8lprloZkb9t3YS JPBcQNuTR3bp4lqMkxa6fKOKKq7JcUyg/bSbyTZlkwzyeua2ppE0z/yJ81AsQ+97meKt CyBs/F1dpocazPS25O/ETg5OjVQ8MdEJdzwdUDK9j1YoQiR4Lcig9D1gk0zouS/OEP23 SviRWUxeACETkDIVu94fMsvgcXoDQSYyYBLRJhKIxVqVJ+IgRHazYdmMSCmU5PDD+zXS AHqQ== X-Gm-Message-State: ACrzQf3+FpX/NXzkwDOoNPprPesHw3u37mTIyK9ErxBx2WV5QlPVJnPQ Y9+mxtgzPBzmMT5XlYet2og= X-Received: by 2002:a05:6402:1d53:b0:45e:ec87:686e with SMTP id dz19-20020a0564021d5300b0045eec87686emr2362032edb.380.1666116662826; Tue, 18 Oct 2022 11:11:02 -0700 (PDT) Received: from pc638.lan ([155.137.26.201]) by smtp.gmail.com with ESMTPSA id c1-20020a17090618a100b007877ad05b32sm7739302ejf.208.2022.10.18.11.11.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 Oct 2022 11:11:02 -0700 (PDT) From: "Uladzislau Rezki (Sony)" To: Andrew Morton Cc: linux-mm@kvack.org, LKML , Christoph Hellwig , Matthew Wilcox , Nicholas Piggin , Steven Rostedt , Uladzislau Rezki , Oleksiy Avramchenko Subject: [PATCH v2 6/7] mm: vmalloc: Use trace_free_vmap_area_noflush event Date: Tue, 18 Oct 2022 20:10:52 +0200 Message-Id: <20221018181053.434508-7-urezki@gmail.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20221018181053.434508-1-urezki@gmail.com> References: <20221018181053.434508-1-urezki@gmail.com> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747050455785240071?= X-GMAIL-MSGID: =?utf-8?q?1747050455785240071?= It is for a debug purpose and is called when a vmap area gets freed. This event gives some indication about: - a start address of released area; - a current number of outstanding pages; - a maximum number of allowed outstanding pages. Signed-off-by: Uladzislau Rezki (Sony) Reviewed-by: Christoph Hellwig --- mm/vmalloc.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/mm/vmalloc.c b/mm/vmalloc.c index 4292f44ae670..bd56f68bedf0 100644 --- a/mm/vmalloc.c +++ b/mm/vmalloc.c @@ -1822,6 +1822,8 @@ static void drain_vmap_area_work(struct work_struct *work) */ static void free_vmap_area_noflush(struct vmap_area *va) { + unsigned long nr_lazy_max = lazy_max_pages(); + unsigned long va_start = va->va_start; unsigned long nr_lazy; spin_lock(&vmap_area_lock); @@ -1839,8 +1841,10 @@ static void free_vmap_area_noflush(struct vmap_area *va) &purge_vmap_area_root, &purge_vmap_area_list); spin_unlock(&purge_vmap_area_lock); + trace_free_vmap_area_noflush(va_start, nr_lazy, nr_lazy_max); + /* After this point, we may free va at any time */ - if (unlikely(nr_lazy > lazy_max_pages())) + if (unlikely(nr_lazy > nr_lazy_max)) schedule_work(&drain_vmap_work); } From patchwork Tue Oct 18 18:10:53 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Uladzislau Rezki X-Patchwork-Id: 4283 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp2096766wrs; Tue, 18 Oct 2022 11:17:06 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7uaIbvT416qgSIPcbcEzQIjDZALxjNECbyXOk+rchigOnD00/K26uM5ouZOTdZeabqrhZM X-Received: by 2002:a05:6402:448:b0:45c:8de5:4fc with SMTP id p8-20020a056402044800b0045c8de504fcmr3790011edw.133.1666117025940; Tue, 18 Oct 2022 11:17:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666117025; cv=none; d=google.com; s=arc-20160816; b=KrFDIltRABkk9wNw3ifoW2D9G7tbMOO6YW3gfG2OP98oS151x6t9CIglGiNQ6qZfet jtjTtADpJQ41H7o4zdy92cFSM74fq8cF1UCTTjOsi7qUVL3UuguutRg5hudv1zCkfGN+ /VczFf5OCZcetA/pdedbjmxQ3FKqpTa/Fb0onkYmAVvil5MhzfKpuyEwEMfZait3ahGT niGHX8sgJwq8wLmBmuITbUBtYNrXCV6MX6cS6qgoWTGB3jvjCuvnOVg5PuBGp3efsWt1 JhSkTe54Gy1ihP0Dovyus6skFZMsBOym0o35nopzKdw1qxccMj4G8ujTzjvPWO7368AB XTyg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=HLk9zy0zXNxz51W/qZOGlz34Dfvx1m3EHjUzRbqLkUc=; b=WNRStCC5k20TSMmgv/9JmBeefDRlkdr9wRcBEQF1HfpBf3qHtbD1yD+/ViuOsfuH2S jpsHtPk6Y/Oox2FlVrjw+9NnWWG+eJnPIvl/MAwkYBgHplWLJJmi5U6/IhYCDrke7Qqb OER9H18/1sBas+6l8/UzMQdP0ih/I5ZrwCisuQRaqI/0RB/0Ba4Eh892I6NjVcc482IQ DAJo/Bx/Y1MJIFLM+9OUdy6Zi2ETdyFoNlxo2p2cJwO+NQLeJStb255J/+JQMVvFLDWL t2YuFdiGTkkRbvKCoZBF6TOwVOMUfblDeRqaSM2tXcqpkhU6UlVCKyCw/nI75lYm9qJV bdwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=cnOL00Zx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i19-20020a05640242d300b0045bd55b122fsi15695093edc.57.2022.10.18.11.16.41; Tue, 18 Oct 2022 11:17:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=cnOL00Zx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230161AbiJRSLY (ORCPT + 99 others); Tue, 18 Oct 2022 14:11:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45662 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229921AbiJRSLO (ORCPT ); Tue, 18 Oct 2022 14:11:14 -0400 Received: from mail-ed1-x52f.google.com (mail-ed1-x52f.google.com [IPv6:2a00:1450:4864:20::52f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C6EB874365 for ; Tue, 18 Oct 2022 11:11:05 -0700 (PDT) Received: by mail-ed1-x52f.google.com with SMTP id b12so21723733edd.6 for ; Tue, 18 Oct 2022 11:11:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=HLk9zy0zXNxz51W/qZOGlz34Dfvx1m3EHjUzRbqLkUc=; b=cnOL00ZxpL2eR1fpnbcgRcD2qEPWYqApygWXQI/5C/ttv4yqAkPLNJyu4viRI2xIpE 522AGEOxhtm226m2ZJH123YqtZCoNQb9gOU3PfWrLuipdlc7z81rGSxJV5H5/gtdFnUt gE/SoWwohWXa41E12xqtCczlA2vzUZhkhCL7YULnJmA+jQGv3RP6DF9Iwuis19vQWzcr iJ/seWUt35qtQH5stUC/nnm48hBPJx33rIvj2mT1vAUdKxUlFAhvaBeAO9sUBMYRomIF Wa3CiXXkQ4+jNTKxkS91jdIm/4thKjLsBzetiBYAAe0EUeJ6p1VW3oDHFmSQgPP6nMZb xovw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=HLk9zy0zXNxz51W/qZOGlz34Dfvx1m3EHjUzRbqLkUc=; b=UUxOveipAVry7xDLYPMipgbEXt/5EwwHKlm+pWvuh+yOSy9IRxuHqRkVDBWEdHkGDo F8J+IJhZpvWwxL2RA2Y3ZUf1dsE+73z33GXNBvFOYAFdIiX4ej+/dHfC2b1nw5wC5MSm INhbntkk9UsB1RlpPTXDzYUl7okdl2qDmBLDOeegN2DbDavgW2ve3CSOenam+U3uKqxt E57OL3P7O7m5+QNG8tQ+ZytwDvXmoND03e3+4XStuWePZNBpevDJQnzJgYVqhL6p/Kgd k5qZsbnAtZgbVX2MNL9q1kl3CAZZwvp92DLdMoKGF5W03oFc7ljIoaJMAdQhHEBZ/gwV 9NUg== X-Gm-Message-State: ACrzQf07d+kWHsEd28Lhvi1LyoTud1m5Gj6nepq4TCs+aPnuANUzQ5hL iErP+GkOh4CYi1Sl7to8BeU= X-Received: by 2002:a05:6402:27c9:b0:45d:4539:b462 with SMTP id c9-20020a05640227c900b0045d4539b462mr3790716ede.226.1666116663867; Tue, 18 Oct 2022 11:11:03 -0700 (PDT) Received: from pc638.lan ([155.137.26.201]) by smtp.gmail.com with ESMTPSA id c1-20020a17090618a100b007877ad05b32sm7739302ejf.208.2022.10.18.11.11.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 Oct 2022 11:11:03 -0700 (PDT) From: "Uladzislau Rezki (Sony)" To: Andrew Morton Cc: linux-mm@kvack.org, LKML , Christoph Hellwig , Matthew Wilcox , Nicholas Piggin , Steven Rostedt , Uladzislau Rezki , Oleksiy Avramchenko Subject: [PATCH v2 7/7] vmalloc: Add reviewers for vmalloc code Date: Tue, 18 Oct 2022 20:10:53 +0200 Message-Id: <20221018181053.434508-8-urezki@gmail.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20221018181053.434508-1-urezki@gmail.com> References: <20221018181053.434508-1-urezki@gmail.com> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747050326972757950?= X-GMAIL-MSGID: =?utf-8?q?1747050326972757950?= Add myself and Christoph Hellwig as reviewers for vmalloc. Signed-off-by: Uladzislau Rezki (Sony) Acked-by: Christoph Hellwig --- MAINTAINERS | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/MAINTAINERS b/MAINTAINERS index 568ad7c5eeb6..a6f4e11755e6 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -13289,10 +13289,20 @@ F: include/linux/memory_hotplug.h F: include/linux/mm.h F: include/linux/mmzone.h F: include/linux/pagewalk.h -F: include/linux/vmalloc.h F: mm/ F: tools/testing/selftests/vm/ +VMALLOC +M: Andrew Morton +R: Uladzislau Rezki +R: Christoph Hellwig +L: linux-mm@kvack.org +S: Maintained +W: http://www.linux-mm.org +T: git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm +F: mm/vmalloc.c +F: include/linux/vmalloc.h + MEMORY HOT(UN)PLUG M: David Hildenbrand M: Oscar Salvador