Message ID | 20221122195329.252654-3-namit@vmware.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp2410525wrr; Tue, 22 Nov 2022 11:56:22 -0800 (PST) X-Google-Smtp-Source: AA0mqf4NSYwrtioaS8SI7crO8MSBcm3/kalF6cSaZuGePZWxbmkKG7+MaXjxhKoF/dNhwvSI7Tqs X-Received: by 2002:a17:902:b691:b0:17e:fb19:63ba with SMTP id c17-20020a170902b69100b0017efb1963bamr8062056pls.160.1669146982256; Tue, 22 Nov 2022 11:56:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669146982; cv=none; d=google.com; s=arc-20160816; b=eG+L8ngCgZReZCYsnY46cVyXxdwB/pJBvjCndebPVRhbFP+M+oD+GIt0mFksRj1zAI j0g+OLw2fFmKaSMpU3aPDuV7MPuFZk8sgY8mrQFOTRcSiV93rvnLRSmbP0P3A3+Fkz0E CKXuVsPQV3PPQ8B75oxgy23wml3G+fRYGQLLPX3wTrEQ2oK5CkxrxtvwiUC23OK1IEQp 796VNhqetQovRq/w6SW/IyToJiW5qdDTKVyBZeXv6/jZ04bZq6oPw39AEhqkeR1FDOdg IpN7dN2fiujAtlZefopnf41bT1IEEDlwY6O+5UYguee17QE+0LW1vHtkdKQtUeKYXd7X WTHQ== 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=2RI1x4addaxeSG0Ueh/t7m47u+roOJv2baaQ7rL2Moo=; b=aRzuPugrBf2AVyjnT1DMwZEau8h85GFR2Emd9VvkX3IGfnLkXxzTXuRbKhOJbTuxxP wiH5mgDicisdhavyBLwMK4UPuuIdE3QnBz+TEtQB4s4lmQcIFx1kHY8h+evDMynO/V6s DZUgrr51JmIJnnGrz4tQC/RyYkcg5ipfwK2rvO++36sq6dizjU8KwOZXKSJCtUwuFIs/ mR5wWH8C7lYRWADO+sVQB9gXLDdM+xSYEbtb3boDuEVVJjbHsTLTZVxfxCy7XSJvBb9F 0CB1swWmAnykWbBpOe2eTuruUXN+ExQYyDbLQQHWEBfoKiC/JQcDh/dpz1kpNMz7iNMe ujCA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=kc07iCXU; 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 mw14-20020a17090b4d0e00b0021425cf457fsi16194005pjb.32.2022.11.22.11.56.09; Tue, 22 Nov 2022 11:56:22 -0800 (PST) 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=kc07iCXU; 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 S234580AbiKVTy5 (ORCPT <rfc822;cjcooper78@gmail.com> + 99 others); Tue, 22 Nov 2022 14:54:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40752 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234739AbiKVTyW (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 22 Nov 2022 14:54:22 -0500 Received: from mail-pl1-x633.google.com (mail-pl1-x633.google.com [IPv6:2607:f8b0:4864:20::633]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D7C81A3403; Tue, 22 Nov 2022 11:54:20 -0800 (PST) Received: by mail-pl1-x633.google.com with SMTP id y10so13489262plp.3; Tue, 22 Nov 2022 11:54:20 -0800 (PST) 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=2RI1x4addaxeSG0Ueh/t7m47u+roOJv2baaQ7rL2Moo=; b=kc07iCXUBXT3CNeUNFgib2mQbobrmSlPnkO4hN7UDBjXdC593YuLhpAL+DvPmXFPHb ffu3DQ6vyxfbPxVHXCSQm2IAXJFMQuRCUahdFTR9xRFILUYT373IjzHdYc2+AP+YbxU5 fX607CPAdRphk1/UEff3UfGp1v/Madb3BUV1xh+t8qys49zCgEOqZe3PbbBZRXXGyv+j 2dLRm6aPOlxoXIBXIGtJXS8/G2hOqqmL57XCoCY5hZ8Zv6LLflyp7vIMbXfNBD93QMi4 8eWzyhXMrbTTXHUV60Q9/OxTaQJOi+iEV1mFypFCLCZT89646tZ6q3b3DkpmRQ8LoYFx 2JwQ== 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=2RI1x4addaxeSG0Ueh/t7m47u+roOJv2baaQ7rL2Moo=; b=a7g46kqkT5MnL2FfaNziZQR7ZgMTQILt/9dNvJJSxmmS4jMdDbUiYhEHju9NmjW7cx Z+LXeawuFEEMW3ucDrLvmXEcuGYCsJe2FJCzzqsWBEE7F1uhD2Vvd9mbl7r1YQYM0ren ady/s7lL883wJgSZmA1hkIJJ1FEdxMl/YdWiVFWu7F0N6Ua6F+udEipK9m7WeUZCA0EO ljbrYChu4/mCrE2QJHUgWkVjmEt1iBEpn1oM7AxhR+2gkTfoVshIB6OYOtUDXdgAlek+ DE8Bb04SqwG2HO7BaxFWxm92yZcSxfyfL2UmRU0pWAhYT5OulIYXuwVpnoLveZ66pB89 kAKw== X-Gm-Message-State: ANoB5pnX2oVQbTE3T5FIIPUzu4n3qE0lVO94VT+g2wSkR7oP1PAZDVbx YT8cBn5DHFqkyIeeMOQD1sY= X-Received: by 2002:a17:902:ab4b:b0:186:7b95:f773 with SMTP id ij11-20020a170902ab4b00b001867b95f773mr6266579plb.152.1669146860203; Tue, 22 Nov 2022 11:54:20 -0800 (PST) Received: from sc2-haas01-esx0118.eng.vmware.com ([66.170.99.1]) by smtp.gmail.com with ESMTPSA id a8-20020a63d408000000b00460fbe0d75esm9699252pgh.31.2022.11.22.11.54.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Nov 2022 11:54:19 -0800 (PST) From: Nadav Amit <nadav.amit@gmail.com> X-Google-Original-From: Nadav Amit To: Thomas Gleixner <tglx@linutronix.de> Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-ia64@vger.kernel.org, linux-um@lists.infradead.org, linux-arch@vger.kernel.org, linux-mm@kvack.org, Andy Lutomirski <luto@kernel.org>, Ingo Molnar <mingo@redhat.com>, Borislav Petkov <bp@alien8.de>, Dave Hansen <dave.hansen@linux.intel.com>, x86@kernel.org, Richard Weinberger <richard@nod.at>, Anton Ivanov <anton.ivanov@cambridgegreys.com>, Johannes Berg <johannes@sipsolutions.net>, Arnd Bergmann <arnd@arndb.de>, Andrew Morton <akpm@linux-foundation.org>, Nadav Amit <namit@vmware.com> Subject: [PATCH 2/3] lib/usercopy: Allow traceing of usercopy, xarray, iov_iter Date: Tue, 22 Nov 2022 11:53:28 -0800 Message-Id: <20221122195329.252654-3-namit@vmware.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221122195329.252654-1-namit@vmware.com> References: <20221122195329.252654-1-namit@vmware.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1750227466190456721?= X-GMAIL-MSGID: =?utf-8?q?1750227466190456721?= |
Series |
kprobes: notrace enhancements
|
|
Commit Message
Nadav Amit
Nov. 22, 2022, 7:53 p.m. UTC
From: Nadav Amit <namit@vmware.com> There is no reason not to allow the use of ftrace for usercopy, xarray and iov_iter. Enable tracing for these compilation unit. Signed-off-by: Nadav Amit <namit@vmware.com> --- lib/Makefile | 3 +++ 1 file changed, 3 insertions(+)
diff --git a/lib/Makefile b/lib/Makefile index 59bd7c2f793a..32766aa26670 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -27,6 +27,8 @@ KASAN_SANITIZE_string.o := n CFLAGS_string.o += -fno-stack-protector endif +CFLAGS_xarray.o += $(CC_FLAGS_FTRACE) +CFLAGS_iov_iter.o += $(CC_FLAGS_FTRACE) lib-y := ctype.o string.o vsprintf.o cmdline.o \ rbtree.o radix-tree.o timerqueue.o xarray.o \ maple_tree.o idr.o extable.o irq_regs.o argv_split.o \ @@ -42,6 +44,7 @@ lib-$(CONFIG_SMP) += cpumask.o lib-y += kobject.o klist.o obj-y += lockref.o +CFLAGS_usercopy.o += $(CC_FLAGS_FTRACE) obj-y += bcd.o sort.o parser.o debug_locks.o random32.o \ bust_spinlocks.o kasprintf.o bitmap.o scatterlist.o \ list_sort.o uuid.o iov_iter.o clz_ctz.o \