Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp3946381ybx; Mon, 4 Nov 2019 05:26:51 -0800 (PST) X-Google-Smtp-Source: APXvYqxXGamp6vbqd7AkNi/ymoKwnV4FHx99+Q6emBAnCWXAS9K6a47Z+rwavpYreijMxwzItHUc X-Received: by 2002:a17:906:d293:: with SMTP id ay19mr3570161ejb.146.1572874011597; Mon, 04 Nov 2019 05:26:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1572874011; cv=none; d=google.com; s=arc-20160816; b=leylwIXFmLDtDb6A4FJ8dRe8BWZ0rSOOwuRxPiWL4ulSBZnvgKz9QyCCw5u+DwwDcu 5coYLUkO46TI4fMifrSeHOrNeFz8DjI3sfB4xZ4aoYbAly6zwmF0RGpc0CjcVpK3Vz2O UpJl+yGUu7G1I+Qpmnl8Tc/bCP7PMtHv0UR4lKFlC/kLOC0FVgPrLlvw4sYmvkaaIQbZ vBoBcSs/ba5DKKO72kZPNDi8N/3vBvq7pHMcDQbRdc+Pu4kiTl5/RuJyiYZSzeKuMOMG lopaIkJhYFczi1vYZMDtQqXECTWRqX3eIdN0TImARRPzNxRG8qCf/WZn2e8COgijVzpC a/dQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=LWPv7afkGTgRYLidysYlXV+tOgcvZoMRl1oED1RaJhE=; b=S4JBZftTstfgIZ/TVmigypXTFhfWJtbWgkkb/KxYYTY1QQmlKBGl02WYiWluKWVGR0 FaNGaQcRht0lZgbEw8HGhL8yvG3TG2ePDDS2yL7h6cOnj3IZhX2zRj8igPCRQPl4d27y R1SvA6gWMZV2nP/sHUvsdnsn3wNIdOSi2hlErdRjyAkk9h3Ai438iD05PyZzLqFHUpGn rL6kkEgKef5kMHsyLhlY6ieQij8XN4AMTQt5Yi6/CuFUf17vgN+aut7DneM4PdRnSY2Q uk1LV1PRqAzMda3A3b0X2eSyuyMqa8TcW8Fk3CSTitZSX/fP+YWmasyWavd9luLCQMcD D7uw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g26si2933758edv.109.2019.11.04.05.26.27; Mon, 04 Nov 2019 05:26:51 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729090AbfKDNZr (ORCPT + 99 others); Mon, 4 Nov 2019 08:25:47 -0500 Received: from smtprelay0064.hostedemail.com ([216.40.44.64]:48142 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727332AbfKDNZr (ORCPT ); Mon, 4 Nov 2019 08:25:47 -0500 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay01.hostedemail.com (Postfix) with ESMTP id 8F764100E7B4D; Mon, 4 Nov 2019 13:25:45 +0000 (UTC) X-Session-Marker: 726F737465647440676F6F646D69732E6F7267 X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,rostedt@goodmis.org,:::::::::::::::::::::::::::::::::::,RULES_HIT:41:355:379:541:599:800:960:968:973:982:988:989:1260:1277:1311:1313:1314:1345:1359:1431:1437:1515:1516:1518:1534:1541:1593:1594:1711:1730:1747:1777:1792:1981:2194:2198:2199:2200:2393:2553:2559:2562:2693:2895:3138:3139:3140:3141:3142:3352:3622:3865:3867:3868:3870:3871:3872:3874:5007:6261:6742:7875:8957:10004:10400:10967:11026:11232:11473:11658:11914:12043:12114:12296:12297:12438:12740:12760:12895:13069:13311:13357:13439:14096:14097:14181:14659:14721:21080:21450:21451:21627:21740:30012:30054:30090:30091,0,RBL:146.247.46.6:@goodmis.org:.lbl8.mailshell.net-62.8.41.100 64.201.201.201,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:none,Custom_rules:0:0:0,LFtime:24,LUA_SUMMARY:none X-HE-Tag: crush17_8910377eab214 X-Filterd-Recvd-Size: 2742 Received: from grimm.local.home (unknown [146.247.46.6]) (Authenticated sender: rostedt@goodmis.org) by omf10.hostedemail.com (Postfix) with ESMTPA; Mon, 4 Nov 2019 13:25:41 +0000 (UTC) Date: Mon, 4 Nov 2019 08:25:38 -0500 From: Steven Rostedt To: Mark Rutland Cc: linux-arm-kernel@lists.infradead.org, Jessica Yu , Helge Deller , "James E.J. Bottomley" , linux-kernel@vger.kernel.org, amit.kachhap@arm.com, catalin.marinas@arm.com, duwe@suse.de, james.morse@arm.com, jpoimboe@redhat.com, jthierry@redhat.com, linux-parisc@vger.kernel.org, mingo@redhat.com, peterz@infradead.org, svens@stackframe.org, takahiro.akashi@linaro.org, will@kernel.org Subject: Re: [PATCHv2 2/8] module/ftrace: handle patchable-function-entry Message-ID: <20191104082538.292b501a@grimm.local.home> In-Reply-To: <20191029165832.33606-3-mark.rutland@arm.com> References: <20191029165832.33606-1-mark.rutland@arm.com> <20191029165832.33606-3-mark.rutland@arm.com> X-Mailer: Claws Mail 3.17.4git49 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 29 Oct 2019 16:58:26 +0000 Mark Rutland wrote: > When using patchable-function-entry, the compiler will record the > callsites into a section named "__patchable_function_entries" rather > than "__mcount_loc". Let's abstract this difference behind a new > FTRACE_CALLSITE_SECTION, so that architectures don't have to handle this > explicitly (e.g. with custom module linker scripts). > > As parisc currently handles this explicitly, it is fixed up accordingly, > with its custom linker script removed. Since FTRACE_CALLSITE_SECTION is > only defined when DYNAMIC_FTRACE is selected, the parisc module loading > code is updated to only use the definition in that case. When > DYNAMIC_FTRACE is not selected, modules shouldn't have this section, so > this removes some redundant work in that case. > > I built parisc generic-{32,64}bit_defconfig with DYNAMIC_FTRACE enabled, > and verified that the section made it into the .ko files for modules. > > Signed-off-by: Mark Rutland > Reviewed-by: Ard Biesheuvel > Cc: Helge Deller > Cc: Ingo Molnar > Cc: James E.J. Bottomley > Cc: Jessica Yu > Cc: Steven Rostedt > Cc: Sven Schnelle > Cc: linux-parisc@vger.kernel.org > Acked-by: Steven Rostedt (VMware) -- Steve