Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp1704322pxx; Fri, 30 Oct 2020 17:31:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyhyYNmyYVh+WZTgs79LBtsOT6oI6uj0OAxNkALsONYjZEacGZgj41qgFjA9dPw/uINEdWG X-Received: by 2002:a17:906:5509:: with SMTP id r9mr5220697ejp.12.1604104295690; Fri, 30 Oct 2020 17:31:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1604104295; cv=none; d=google.com; s=arc-20160816; b=ehATn9g3uMRE3FbLfezylTdBYkkpaVahbRCvjWbN+1w6DpN4M20Nf6WP6uSyriOzAh RmVjf8ktJ3OfdP6fafjkG/qremObit2vtROmjMuHyiF1VR/4rNZLwGb9SSB7TbnUiy4Z B+j6YFSId/L64h156Nf3WcQMThth/HbAupAZBt7QLPeZNoBZdkmrLqUF4ZEtdKB1K1xu yh36R6Wo0gjDp2K01cLP3DL9bFaqvnVBX6Nk0jj0JXWIJ+8ruvEd7w8/tUDCvnYrgofN VlrdpYWoUUNQHV1QHyJMNeYoeT2mDu/qEK5wLKDpjPnqwCR/iM0se+hcRdIlUgcNRd01 u01A== 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:subject:cc:to:from:date; bh=MdaHMH2Iorr0t/QLkeBOPY59IXLzmUCUrDXfLno3wUg=; b=XuYVvk3SUpaLY/nF1M8I/uh1zFFmLULkTbbUWON2/mMh2ZXT0noEtaBkVbcWj592nN vrzYMhMh9+jLRFW9ShRPGF9AF4S71jeKltzcynEkLxiNnPmXN8acIvVt7HFsYQuAG5ki PswN3WtuiiZAqNLYVAubMnW5AVsmwqQTCIo5v2b0Db14VFBY4KbXfbOOEwpwl+L4DUdT f8O/UugOdOq0QNBv0eR545EZK+jHoN+F9leN/JBgGIB0RwnJf8JCfDS2m36CCnEut89M lKo7aGdZ7Pepehd+6Uho2CTlHfeeU8vGt+XRps/QXJfLbs9Za0MVNXRjZtRTYUDNxKNE rrwQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c2si5625341edu.115.2020.10.30.17.31.12; Fri, 30 Oct 2020 17:31:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726116AbgJaA2Y (ORCPT + 99 others); Fri, 30 Oct 2020 20:28:24 -0400 Received: from mail.kernel.org ([198.145.29.99]:41664 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725446AbgJaA2X (ORCPT ); Fri, 30 Oct 2020 20:28:23 -0400 Received: from oasis.local.home (cpe-66-24-58-225.stny.res.rr.com [66.24.58.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id E6268206E5; Sat, 31 Oct 2020 00:28:20 +0000 (UTC) Date: Fri, 30 Oct 2020 20:28:18 -0400 From: Steven Rostedt To: Atish Patra Cc: Guo Ren , Zong Li , Paul McKenney , josh@joshtriplett.org, mathieu.desnoyers@efficios.com, jiangshanlai@gmail.com, joel@joelfernandes.org, vincent.whitchurch@axis.com, Thomas Gleixner , Paul Walmsley , Palmer Dabbelt , Masami Hiramatsu , Greentime Hu , Colin Ian King , rcu@vger.kernel.org, Linux Kernel Mailing List , linux-riscv Subject: Re: [PATCH] stop_machine: Mark functions as notrace Message-ID: <20201030202818.72070cbd@oasis.local.home> In-Reply-To: References: <20201021073839.43935-1-zong.li@sifive.com> X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 30 Oct 2020 14:47:56 -0700 Atish Patra wrote: > > Look at arm64, they __kprobes flag and I guess it would also prevent > > ftrace call site. > > > > Are you sure about that ? __kprobes puts the code in .kprobes.text section > which is under whitelist sections in recordmcount.pl & recordmcount.c. Correct, ftrace can trace functions marked with __kprobes. That said, the instruction you are looking at here, is in a file that is blacklisted from recordmcount. CFLAGS_REMOVE_insn.o = $(CC_FLAGS_FTRACE) All ftrace flags are removed from the compiling of insn.c, and every function in that file will not be traced. -- Steve