Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp2578503ybl; Mon, 19 Aug 2019 04:28:20 -0700 (PDT) X-Google-Smtp-Source: APXvYqw85/29mJU5vMk0FOyffG8/99QXJGSwSuMzh9z69tZLkf1jmJlL6RprIN53acufQ1rhBLlX X-Received: by 2002:a17:902:2d03:: with SMTP id o3mr15360618plb.96.1566214100350; Mon, 19 Aug 2019 04:28:20 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1566214100; cv=pass; d=google.com; s=arc-20160816; b=A2WIDftzKCPQ1GuyW6iNdCw2FH3Xtypah5N9J7epfuvRa+lz3Uqq0vt95FFZlXBnFq Cegxk/OpqrvIYl0fpCkuGRwxGUMITgayFE+4mU7cEXXtXtcJnRbm1UDOTuhZc/IPWxb4 c72aBeQRWj9GHDTEUidJMGjp/3A7VBCHK0n0sC+XTpNT6RQfrL9a6ovMHqlBesn5iRk+ b0VMl51bfdERglpvJG0wMSJhPGMBMM94xY9o6VFd+Cbqz+R087gAwaHjGVx5pUEwMRq0 FUxHM4C3/g9wPJZXEv2V5yL2TtDIR4enqYCxF4nuGj77cJTPp1akHug39Mg6qT1YCL01 J4qQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-id:content-language:accept-language:message-id:date :thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=5UN64Lzpz1gvz44pTjlaKfWmp+uV5zK+jhRUYACndtE=; b=yat+uve/bzeTspEM961Km7Sm5B2OIIcx1ZQuK3yGGs08d43kiYzpIaeHWMFZggKLwS FTpDpQS1r7Ic4N70o0aBUH6LjmUcruKTQE3GI/skwr8dMfOsSkxjPcrR+I2G2Y582ioc zEQtoIeyeWkS6Dwn1eezMhPXtlpsw8WcmUNJ0Qf1PLb1uPAOfA1V+SsLF8KMKA+a3sLY uAgdqaQlvvNlFGedWn5V+ShXa13oyg5T3gOqTxylI/v3Z7EAA1sDZOZq9B6kfcm/YbLw nae4pAwBBuHaUNE7+612qtHPcOiCPp8AkHBagKzArsOebMT189x2LdgMn72S3Pxc+Q1p CJHg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@Synaptics.onmicrosoft.com header.s=selector2-Synaptics-onmicrosoft-com header.b=mNII6d4z; arc=pass (i=1 spf=pass spfdomain=synaptics.com dkim=pass dkdomain=synaptics.com dmarc=pass fromdomain=synaptics.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 b13si481526plz.403.2019.08.19.04.28.05; Mon, 19 Aug 2019 04:28:20 -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; dkim=pass header.i=@Synaptics.onmicrosoft.com header.s=selector2-Synaptics-onmicrosoft-com header.b=mNII6d4z; arc=pass (i=1 spf=pass spfdomain=synaptics.com dkim=pass dkdomain=synaptics.com dmarc=pass fromdomain=synaptics.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 S1727528AbfHSL0p (ORCPT + 99 others); Mon, 19 Aug 2019 07:26:45 -0400 Received: from mail-eopbgr740058.outbound.protection.outlook.com ([40.107.74.58]:53152 "EHLO NAM01-BN3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727332AbfHSL0p (ORCPT ); Mon, 19 Aug 2019 07:26:45 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=iWyhc97cYRuIA3v+dnkAMZZ4wL51y3ZlJsufUcEE77zHK9QPffV9DK7wr+rSwWtQQIRSNIXTAPe/8g8WR4DI40AuiFFvMvU++JgyoHW2eF/4ASkPLIrd9GuEbLze3lIfr8bWNEAqfQbxznNHbRVmQP16TqYut9uCHSn7Ec6mSs+My3KHvMmEf9YrfNMENYjSVwglw9Mg/PwsRSgjZnYFSitqEWSvCsS8IOaK8DJvmBIf85k+rNi9htv79MK7M56ZCrthfsorOrh65knCPE4pmZehd/6xA9pXN5jJacUMkkFPR2MdJ3uaTuVwXQ275IMextysUmaC+uqhuCdhGV4D3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=5UN64Lzpz1gvz44pTjlaKfWmp+uV5zK+jhRUYACndtE=; b=ad3avZ1UYBVgKayrCfDrrxcHGui83vdJPd7sNPv94NHoOoQ5JzarRam4i1y/XwfnMu1+/ljrRNF62C7qqzoCEABpHDSYU46SoTkcndfuxKWCu6thVc3T+PpoQVi9KdkB83ACdu+/QPnLoBreiz5TLwYQ06MvKcIoVNVM2C0koi2cGRWT2+gewU+VwC6NvFoZTHW+ctL2pTHOmDL6BobBWR5hb3BGDCJ07wmsv2yuif9KuM3ZnJBXJ9WvsswjtFp0HSNV8tbSyML86lHzBN7aAcyyongz/UsmmTJZnt/srUZ7ho7aLRbmum0wHmU75cJS7C97pfiakjzkpxKTuMaYaA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=synaptics.com; dmarc=pass action=none header.from=synaptics.com; dkim=pass header.d=synaptics.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Synaptics.onmicrosoft.com; s=selector2-Synaptics-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=5UN64Lzpz1gvz44pTjlaKfWmp+uV5zK+jhRUYACndtE=; b=mNII6d4zyhxceBuHkD6EaNnkw9lItVZ/KYy83XVS+ZzgtW6KktunTycYXRT+OZYDjKxF8TOGKaeHVLuiODgLIXmcNBCrkh/tx8F5LkXATmGblRqkHXriX9qqhd4Xfs1DUbOTbdy9qzFFPWdibBrIorN6g4T/y+STARC2glw8DjM= Received: from BYAPR03MB4773.namprd03.prod.outlook.com (20.179.92.152) by BYAPR03MB3528.namprd03.prod.outlook.com (52.135.213.17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2178.18; Mon, 19 Aug 2019 11:26:41 +0000 Received: from BYAPR03MB4773.namprd03.prod.outlook.com ([fe80::a517:3578:67bf:6c88]) by BYAPR03MB4773.namprd03.prod.outlook.com ([fe80::a517:3578:67bf:6c88%7]) with mapi id 15.20.2157.022; Mon, 19 Aug 2019 11:26:41 +0000 From: Jisheng Zhang To: Catalin Marinas , Will Deacon , Steven Rostedt , Mark Rutland CC: "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , Torsten Duwe Subject: [PATCH 0/3] arm64: ftrace with regs Thread-Topic: [PATCH 0/3] arm64: ftrace with regs Thread-Index: AQHVVoD4VpB1/EZ1uky0DPE7ud1sNA== Date: Mon, 19 Aug 2019 11:26:40 +0000 Message-ID: <20190819191530.0f47b9b1@xhacker.debian> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [124.74.246.114] x-clientproxiedby: TY2PR0101CA0027.apcprd01.prod.exchangelabs.com (2603:1096:404:8000::13) To BYAPR03MB4773.namprd03.prod.outlook.com (2603:10b6:a03:134::24) authentication-results: spf=none (sender IP is ) smtp.mailfrom=Jisheng.Zhang@synaptics.com; x-ms-exchange-messagesentrepresentingtype: 1 x-mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-pc-linux-gnu) x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 7e5c8f0f-9a0b-409e-7886-08d724981b0c x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(711020)(4605104)(1401327)(2017052603328)(7193020);SRVR:BYAPR03MB3528; x-ms-traffictypediagnostic: BYAPR03MB3528: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:3826; x-forefront-prvs: 0134AD334F x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(396003)(39860400002)(346002)(136003)(376002)(366004)(189003)(199004)(5660300002)(8936002)(4744005)(50226002)(86362001)(81156014)(81166006)(71200400001)(71190400001)(25786009)(486006)(476003)(8676002)(66446008)(64756008)(66556008)(66476007)(66946007)(1076003)(6512007)(66066001)(9686003)(26005)(6486002)(305945005)(99286004)(186003)(102836004)(2906002)(52116002)(54906003)(53936002)(3846002)(6116002)(316002)(256004)(4326008)(14454004)(6506007)(386003)(6436002)(7736002)(478600001)(110136005)(39210200001);DIR:OUT;SFP:1101;SCL:1;SRVR:BYAPR03MB3528;H:BYAPR03MB4773.namprd03.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:0; received-spf: None (protection.outlook.com: synaptics.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: EdRVKAQHTTD89qgRCjgoUyL/uAol1nZWeGEdwuet7T+MBUIInhIj3vgkhatW5FgKLBWdsjXXeDqbnA8tWh/F8cVKahlYkpwUoqPsx8xzmsjxLgTU7BWXX0QeJaDjepE/6zEyoXd1Lv+U0jaS7SS1rLWBwpGo9iZD9qNFnPdQ3kKsSTNjQ6drEF5nbvEu1Y5DmCcl5eyHgCRNRygqjBfbs+FA39opQZsyvvrxdmhMl//s26bouvxuL8e5r6glTTnC1j9STGhi2glYBu6iUi5GCxo0TKtyF5lJUU9DihPp86mkv6Fx45hk68IIxx/u3FKvdj7G/sltogbtdkHP03PsSxi67jW7WWRcmRIKfuDJVFx+m0eiWVoefzHQ28rGaBMCDTRcXsId5zi1mJjUFixosu8EflHyPki0zRWpTa5L3uI= x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="us-ascii" Content-ID: Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: synaptics.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7e5c8f0f-9a0b-409e-7886-08d724981b0c X-MS-Exchange-CrossTenant-originalarrivaltime: 19 Aug 2019 11:26:40.7523 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 335d1fbc-2124-4173-9863-17e7051a2a0e X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: n1zEDcvVY9jeOHkMfEVjAtZCMULc/IN/Fm/t/rbHpMpvM4tcrGcmu4g0L+wC4vjrxFAoNqLLBcEOYgU8jrBhBw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR03MB3528 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Try to make the arm64 ftrace with regs merged. The later two patches are from Torsten. The whole series applies cleanly on v5.3-rc5 Jisheng Zhang (1): ftrace: introdue ftrace_call_init Torsten Duwe (2): arm64: implement ftrace with regs arm64: use -fpatchable-function-entry if available arch/arm64/Kconfig | 2 + arch/arm64/Makefile | 5 ++ arch/arm64/include/asm/ftrace.h | 12 ++- arch/arm64/include/asm/module.h | 3 +- arch/arm64/kernel/entry-ftrace.S | 125 ++++++++++++++++++++++++++-- arch/arm64/kernel/ftrace.c | 138 +++++++++++++++++++++++-------- arch/arm64/kernel/module-plts.c | 3 +- arch/arm64/kernel/module.c | 2 +- include/linux/ftrace.h | 1 + kernel/module.c | 7 +- kernel/trace/ftrace.c | 4 + 11 files changed, 257 insertions(+), 45 deletions(-) --=20 2.23.0.rc1