Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp4318170imm; Mon, 6 Aug 2018 22:39:25 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfPuIvjADu2j51MLfWIVzW61eaXnl/8wpTPiPINqN0bY4S46sJvhgYLXFKGBoQTPj05i/YR X-Received: by 2002:a17:902:28aa:: with SMTP id f39-v6mr16627920plb.150.1533620365389; Mon, 06 Aug 2018 22:39:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533620365; cv=none; d=google.com; s=arc-20160816; b=gyQGmpiT4Kig8sUcx3joCB1VhL/BRA4Wvt8x636QMOTyy2BCZPbqpPK87I0f30F5Be ho+SdQFOxS40RKdYNIkMHUkID3ND9u1p6tpnHkDTTIwEhlR+NTDKAPwYtcRbyych0Mi2 IXBsvSTKFsRAbsIXL56PzK2e6ta5Sf21gq+3ehYAbBNRoh+YMN0NZnam63ybSfE/fwq9 +ruJT3nc3F2GMLJceSLHZEvxYWb6Kcug+TJ7UNVwl1krxw87qH3zPCeOL0LgRmffysw8 Br/HNBK7iyGpfdtjMfiWJJAAXYGj20LVUkpe0mb1uB0Vnn5V6CQSHak8TkCZeIiunPAc AzhA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition :content-transfer-encoding:message-id:in-reply-to:mime-version :references:subject:cc:to:from:date:arc-authentication-results; bh=aPf86/WUyPfhRUNXsFg6RTWC04OX7tjn/EBlNjajYy4=; b=QXW7q4OJW/jx4joQMaoZ3N5vCLiEONScfyLqhSmiRy8s6/AsvfGMB4bW3P8tKkRcQe q00qm+mU/TCIpneyFt7BZpLPCHOwETCh9ZZHhpL0qsWTkSCYFYfeG2b10OLSxlyIwCfU 6saZZyv+8DCb+NcA5vcOlVDc4k6jn/x78ubU+Z3U9XV92FjNRY9AM0joEd6rwZuCyd0X 1cV/7nXh0cq45kZX7YndK8Lx/197XDpZXN/8szWbgauYqJeqJatKm6xeWhYb58Wy4nkt RXfas4hjwO4uGmxI+DEFVNqIx5h+PLWxRsf+rgWfjUjpgIKykZX4+sHI/RFKECSGV/yQ fehg== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y1-v6si406412pgf.146.2018.08.06.22.38.56; Mon, 06 Aug 2018 22:39:25 -0700 (PDT) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731069AbeHGHnD (ORCPT + 99 others); Tue, 7 Aug 2018 03:43:03 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:36724 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727558AbeHGHnC (ORCPT ); Tue, 7 Aug 2018 03:43:02 -0400 Received: from pps.filterd (m0098419.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w775SqMT133341 for ; Tue, 7 Aug 2018 01:30:26 -0400 Received: from e06smtp01.uk.ibm.com (e06smtp01.uk.ibm.com [195.75.94.97]) by mx0b-001b2d01.pphosted.com with ESMTP id 2kq54ege4q-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 07 Aug 2018 01:30:25 -0400 Received: from localhost by e06smtp01.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 7 Aug 2018 06:30:24 +0100 Received: from b06cxnps4074.portsmouth.uk.ibm.com (9.149.109.196) by e06smtp01.uk.ibm.com (192.168.101.131) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Tue, 7 Aug 2018 06:30:19 +0100 Received: from d06av25.portsmouth.uk.ibm.com (d06av25.portsmouth.uk.ibm.com [9.149.105.61]) by b06cxnps4074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w775UJdl37617820 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 7 Aug 2018 05:30:19 GMT Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id A7EDD11C05C; Tue, 7 Aug 2018 08:30:26 +0100 (BST) Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 4F01C11C052; Tue, 7 Aug 2018 08:30:26 +0100 (BST) Received: from osiris (unknown [9.152.212.24]) by d06av25.portsmouth.uk.ibm.com (Postfix) with ESMTPS; Tue, 7 Aug 2018 08:30:26 +0100 (BST) Date: Tue, 7 Aug 2018 07:30:17 +0200 From: Heiko Carstens To: Vasily Gorbik Cc: Masahiro Yamada , Michal Marek , Martin Schwidefsky , Steven Rostedt , Ingo Molnar , linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org, Andi Kleen Subject: Re: [PATCH 4/4] s390/ftrace: add -mfentry and -mnop-mcount support References: MIME-Version: 1.0 In-Reply-To: X-TM-AS-GCONF: 00 x-cbid: 18080705-4275-0000-0000-000002A63122 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18080705-4276-0000-0000-000037AF336E Message-Id: <20180807053017.GA6613@osiris> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit Content-Disposition: inline X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-08-07_01:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=1 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1807170000 definitions=main-1808070057 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 06, 2018 at 03:17:47PM +0200, Vasily Gorbik wrote: > Utilize -mfentry and -mnop-mcount gcc options together with > -mrecord-mcount to get compiler generated calls to the profiling functions > as nops which are compatible with current -mhotpatch=0,3 approach. At the > same time -mrecord-mcount enables __mcount_loc section generation by > the compiler which allows to avoid using scripts/recordmcount.pl script. > > Signed-off-by: Vasily Gorbik > --- > arch/s390/Kconfig | 2 ++ > arch/s390/Makefile | 16 +++++++++------- > arch/s390/include/asm/ftrace.h | 6 +++--- > arch/s390/kernel/ftrace.c | 2 +- > arch/s390/kernel/mcount.S | 2 +- > 5 files changed, 16 insertions(+), 12 deletions(-) Do you have numbers which tell how much this reduces the compile time of the kernel on s390? I assume this change makes quite some difference. Reviewed-by: Heiko Carstens