Message ID | 20221018181053.434508-5-urezki@gmail.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> 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 EC069C43217 for <linux-mm@archiver.kernel.org>; Tue, 18 Oct 2022 18:11:02 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 85FE06B007B; Tue, 18 Oct 2022 14:11:02 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 7C5056B007D; Tue, 18 Oct 2022 14:11:02 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 6B1986B007E; Tue, 18 Oct 2022 14:11:02 -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 5D7F06B007B for <linux-mm@kvack.org>; Tue, 18 Oct 2022 14:11:02 -0400 (EDT) Received: from smtpin16.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id 36A0041147 for <linux-mm@kvack.org>; Tue, 18 Oct 2022 18:11:02 +0000 (UTC) X-FDA: 80034861564.16.8DA1D37 Received: from mail-ej1-f49.google.com (mail-ej1-f49.google.com [209.85.218.49]) by imf04.hostedemail.com (Postfix) with ESMTP id D2E024002D for <linux-mm@kvack.org>; Tue, 18 Oct 2022 18:11:01 +0000 (UTC) Received: by mail-ej1-f49.google.com with SMTP id 13so34206937ejn.3 for <linux-mm@kvack.org>; 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=YNRFIQAylaQ4OXxBPZx4qmDo+MuCdMMGg186Js7voo0gYhShDaFc6AkJbGh0tt3uJX A6AA3FqYoDp2pzSfc+LhLEB0pGMJbHVBXFYWnS+naU8rlY55+2+ruScYd4zd4hY68iud zKsinBp2N5aZ8KfjmkVBvHkPXEMosfaT0qmQX3TRPzuPO3P9IuSa2t0BCi+0doGjc7g5 vrE+FnBwseEIcgJQquFMZock4yHqrNll5qsMVsTZ+WUe/rWpyy9Yl0GDrGzZqCn/CRlt DBPEykjkMYF5j7z7c8cbFcjc8HcvU5GkExEg9PHzZpqP/sNFlg3XfvCC1S7BHuLR7xZU gDsg== X-Gm-Message-State: ACrzQf3ooX64KeSBffIJ4nr/ptqrT0iFDdV1W1Xjfqm9lRlJjqN9TMIL /phHvF06WW1/SqgZ/HXN3yM= X-Google-Smtp-Source: AMsMyM6m69A/S4DEPbsi+ZnkiCQ3JicwD+7InxxliYmIyXlzonVAsFkR6XtzF1+gbfMOqzFtQptv9g== 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)" <urezki@gmail.com> To: Andrew Morton <akpm@linux-foundation.org> Cc: linux-mm@kvack.org, LKML <linux-kernel@vger.kernel.org>, Christoph Hellwig <hch@infradead.org>, Matthew Wilcox <willy@infradead.org>, Nicholas Piggin <npiggin@gmail.com>, Steven Rostedt <rostedt@goodmis.org>, Uladzislau Rezki <urezki@gmail.com>, Oleksiy Avramchenko <oleksiy.avramchenko@sony.com> 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 Content-Transfer-Encoding: 8bit ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1666116661; 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-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=EAJWBA/OARebIHwOWWIUrI8OsApEiB0+kqbjGVUJums=; b=z+ShM7/CKls16gd704gl8NHFYaCetq6MkEJZtI3ppHs0NV+wOsUiyt0tumkG0hzLnW0ypV sp0moX20hvRHi9DaHfc51AE/FrXtrdXVMTZ9hkaBfkQ1ooKMcgmyvxYE2j+NOO/UJcQmqd g+6j0iTX0NeHKIlGiDldYhwKXhP0BUE= ARC-Authentication-Results: i=1; imf04.hostedemail.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=HvkyVCyo; spf=pass (imf04.hostedemail.com: domain of urezki@gmail.com designates 209.85.218.49 as permitted sender) smtp.mailfrom=urezki@gmail.com; dmarc=pass (policy=none) header.from=gmail.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1666116661; a=rsa-sha256; cv=none; b=pNET+/FNTBaACg/fl5Cbwr4tg4paO9Z1gZmuQeixRems5+pdzFq4Z57MJ1XDqm9KO3o1sa 8TMDIIqfK0bZloytFjiHXURfXV5My4zsj69kpsdxjn4zjQ8vZIaW4C6ngHwqdj68Z0bMYi V4FNt18xxE9ja4+qciMTCcaqO8+5WFM= X-Rspamd-Server: rspam09 X-Rspamd-Queue-Id: D2E024002D X-Rspam-User: Authentication-Results: imf04.hostedemail.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=HvkyVCyo; spf=pass (imf04.hostedemail.com: domain of urezki@gmail.com designates 209.85.218.49 as permitted sender) smtp.mailfrom=urezki@gmail.com; dmarc=pass (policy=none) header.from=gmail.com X-Stat-Signature: 44ph5dj4s3hqqkd9fnrsi4jsgo7ji1bc X-HE-Tag: 1666116661-107639 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: <linux-mm.kvack.org> |
Series |
Add basic trace events for vmap/vmalloc (v2)
|
expand
|
Looks good:
Reviewed-by: Christoph Hellwig <hch@lst.de>
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 <asm/tlbflush.h> #include <asm/shmparam.h> +#define CREATE_TRACE_POINTS +#include <trace/events/vmalloc.h> + #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.
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) <urezki@gmail.com> --- mm/vmalloc.c | 5 +++++ 1 file changed, 5 insertions(+)