Message ID | 1464576750-25160-9-git-send-email-shijie.huang@arm.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 507AE60755 for <patchwork-linux-arm@patchwork.kernel.org>; Mon, 30 May 2016 02:56:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4592D1FFC7 for <patchwork-linux-arm@patchwork.kernel.org>; Mon, 30 May 2016 02:56:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3A30028066; Mon, 30 May 2016 02:56:10 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED, RCVD_IN_DNSWL_MED, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id EA8581FFC7 for <patchwork-linux-arm@patchwork.kernel.org>; Mon, 30 May 2016 02:56:09 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1b7DM0-0007TK-5c; Mon, 30 May 2016 02:54:56 +0000 Received: from eu-smtp-delivery-143.mimecast.com ([207.82.80.143]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1b7DLB-0006n3-Pp for linux-arm-kernel@lists.infradead.org; Mon, 30 May 2016 02:54:07 +0000 Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-ve1eur01lp0240.outbound.protection.outlook.com [213.199.154.240]) (Using TLS) by eu-smtp-1.mimecast.com with ESMTP id uk-mta-28-c42L1OUYR4OI7AjF2l3nuQ-1; Mon, 30 May 2016 03:53:44 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector1-arm-com; h=From:To:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=lswefzovCjbBvdtyHU0k6njHcJVFGJuU94u3xJYiJ+Y=; b=jC7tOrw2mrE72H6ddTfv1npEGOfPZ3AniaSyWAzCdTe3lwDub0QdlE89Y9/Ii9yNp84wjNZAmNcaNAHtsQw+NHmwkbOYoCBlu/oMVFuT3wf6T3/JQ729fdVsFs2Kr1afl6IDQtTqmInp0VeKT6rjZSI1i55Ns3hdrySRVq/bfQI= Received: from AM2PR08CA0008.eurprd08.prod.outlook.com (10.162.32.18) by VI1PR08MB0527.eurprd08.prod.outlook.com (10.162.16.19) with Microsoft SMTP Server (TLS) id 15.1.506.9; Mon, 30 May 2016 02:53:43 +0000 Received: from AM1FFO11FD005.protection.gbl (2a01:111:f400:7e00::136) by AM2PR08CA0008.outlook.office365.com (2a01:111:e400:843e::18) with Microsoft SMTP Server (TLS) id 15.1.501.7 via Frontend Transport; Mon, 30 May 2016 02:53:43 +0000 Received: from nebula.arm.com (217.140.96.140) by AM1FFO11FD005.mail.protection.outlook.com (10.174.64.87) with Microsoft SMTP Server (TLS) id 15.1.497.8 via Frontend Transport; Mon, 30 May 2016 02:53:43 +0000 Received: from sha-win-210.asiapac.arm.com (10.1.2.79) by mail.arm.com (10.1.106.66) with Microsoft SMTP Server id 14.3.279.2; Mon, 30 May 2016 03:53:19 +0100 From: Huang Shijie <shijie.huang@arm.com> To: <catalin.marinas@arm.com> Subject: [PATCH 8/9] arm64: add the hardirq flags trace code for irq macros Date: Mon, 30 May 2016 10:52:29 +0800 Message-ID: <1464576750-25160-9-git-send-email-shijie.huang@arm.com> X-Mailer: git-send-email 2.5.5 In-Reply-To: <1464576750-25160-1-git-send-email-shijie.huang@arm.com> References: <1464576750-25160-1-git-send-email-shijie.huang@arm.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:217.140.96.140; IPV:CAL; SCL:-1; CTRY:GB; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(2980300002)(438002)(199003)(189002)(11100500001)(48376002)(8676002)(2906002)(106466001)(76176999)(50986999)(5003940100001)(19580405001)(19580395003)(8936002)(2351001)(229853001)(36756003)(104016004)(86362001)(6806005)(586003)(110136002)(87936001)(1220700001)(2950100001)(4326007)(5008740100001)(189998001)(33646002)(77096005)(5003600100002)(92566002)(50226002)(47776003); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR08MB0527; H:nebula.arm.com; FPR:; SPF:Pass; MLV:sfv; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; AM1FFO11FD005; 1:RVwQFlie6+hZUUEuNK2od6/9Gin4rs/+5cr5qc7f49aEO/aTZxXaCFMNeDUukPc/B3eePDMIQqsQhIfv45p2zryA/HCf6W9HET/lDlKwFLDKSjHHJj1c5Zrw3gQ4mdA+MW0b8Urp6Z47N1Ws8pIJIF02HjRPyhCFmiv1OHunCsg2GYsN4A1LERK1NpP9H6cu+gdjXMqAF2FOiG8oP79rWhr3hyek4UPxbMm1gSKnX4BWvDYWQ3QX9ohbqRRrCYNi+SwhBjw6t45ZHAS43gbWx/RBZ7uyHwqepaNeWAZjm0U+VHHhSNOaP9QgzoEgg7nxkSkqlk4BXMcYF3I8zA9Sy83DZX8BlObYqcxPAOa9WNAhuKBaww3oWxUnK8hyGHxCebMuI44CjZvujALiXO3s9o2N0ApJD5D/MeBk0YHNXgkggJ9N58EtwMP4c7IL7M3XWxzSyJX/CxZGiNEuAfsMn3sV+ep0Z24HQHY/yWMFr7xyUfHcABEk2oW+fPHSWt0+d3SeGu1Jy+gaaluBSMSRs2PU9hyHhpJMbIrbi02YvcDmNDwqKxEh2VHBbwnb1Fck X-MS-Office365-Filtering-Correlation-Id: 2c34e224-bccf-42d4-806f-08d388359caa X-Microsoft-Exchange-Diagnostics: 1; VI1PR08MB0527; 2:TtyQC8q/E2ZnSBPhEZmQWpyf8ez3Qo2+06bygyc2VdoUV9gUccp17+7aTuLOFVbgqgDPxGr814eWCOqMOQOURZRJEA2etryOxEWkDSK5Fc2q9SAo0+J71ejFQGs2EAyd4bLqpefkjlh47fx2eBFGQh1Q3SQkzOOfjpQIGiMdAjfOGLbX0tmZtqJlkbeWh3Jk; 3:XRSw5zp/OMGfVekxezcA9lu9smApwmgIhzP61+O9l0M/3IoKp5jv7ro2K2tsJ6No4csn5gp8a3nUYCInE/CVLsvV8koJbr7qF2nkmsAo/kRn0uj0pLxVLecZ9FK8ToZtlou+pttWZIUy5YEOqq/8Xhok7GhndJjataGF4+iUXwi+YqrMdAxLCYkbUCvNhWXasBiwEZZbo1gICxmqpYDsvQkEYhLv+VcmX5CICeK5wlSId7QPqCTr+z6VzAx5zIVe2J6qAB5NB5QfKoZQp0QkCg==; 25:9ruRGjCmhH6di8vXq6O2/jL0ZTY65hdbG5JjYB9EdCbYpAUmkwF5eB0yshYeOMcNrTte/HykpiY5XljN9P0pJaIKZ1yVcf2RwE7ZB+oMLAuzXJMC8aQR4602w7pP0k44OZCCf3Gegz9kVads/qPVV7+8j0sRpB7V1zglD7YMx65Q72/EK17T/9gVgVge3MN7YJvxqwaeu6cDRLkOFXoWc5sy2HK5lWDlva90udtcUu+BRhc1UddtfUUErzLPFA1+vdfJFS0SPOP9+xDqUg/Xk5btkKDIaCXwRtbvD4CXll1TFSKyID6lE1zr4XvaYJ8bqAcPNKJ6biyEUCQ8FZ+D03kUghGO/uYDHkni+dyqkGQYpHFMu9PkxZjTS7z3wR/pDTgl6KJG3RnegObdhRdDA2Bwh59B9kYjvfJ7C9DYjTY= X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(8251501002); SRVR:VI1PR08MB0527; NoDisclaimer: True X-Microsoft-Exchange-Diagnostics: 1; VI1PR08MB0527; 20:Q9xToKgaheEv1hkPZHdmUYm3yoh94GM+KR8qDrWW0M+sVX1Jnwpta7MpT7n3Gy9G3nrZXJmq8bwh0LyqZlM7SeVnVS4pdQKLdzp/X3C1wxG2hYcV/CR4SXXjhi2T3jsiZmAevQgt1kTGWm3b+kL6KW743WFBdKiUcsRhu5jcOZN1M66nZm9+Xb8ZbYzIqf5vYdxI0el94glhCnWwzzW6WgUbpGB5sOfwPyFgudgbiGSgCyImBP67jHUIOq7phOWs; 4:TycuBYAiBrk1BAWPRpRogu2cia+/QUOAY+kQI8P7CkEMM4oFcRstM4j7O9sdd+NX13TXs0FNsev9bj8GBAmVrzg843tIRzB8oSq2UyMC+LomAW0KfjG44R1fBVxYFjxEkIXvqqNCr3PRU6JG/1tzg15ztf/cgc6TWXi3Al6kusAkJqvhAufwFBZIF0cXXvrut+ZGdkudRMhsWEkgEmy5cdJvlHI0m7Pjh5vLjA5MdzSCGhfM8jCTGV2/ettmRQVMOW6ZUDM9gVx8UvCKQP7OKW1R7YG6bMMoWRVPIj61Qxhs9rir/G5s/R9loqsiGQOEbLMxbde0KXH0Z8NFut0LzEwzXWnJYHnYESP5NYBsiqFgTl7OKMZmLzFXsLE0mHZUvFc57iJyRxiZcSNBE6m4XRflkQswTer0bUBh89db5sACQ83Ktcw9K/iklOi/bMmM8ZsENJL64odQQZdu5gLgbSouIRUNPQDQ4x5sSa1dL3R8hNsrNiu5ssVN3vD+bFv9 X-Microsoft-Antispam-PRVS: <VI1PR08MB052757D1162A7E27490347FE84450@VI1PR08MB0527.eurprd08.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(180628864354917); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(13024025)(13023025)(13013025)(13020025)(8121501046)(5005006)(3002001)(10201501046)(6055026); SRVR:VI1PR08MB0527; BCL:0; PCL:0; RULEID:; SRVR:VI1PR08MB0527; X-Forefront-PRVS: 09583628E0 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; VI1PR08MB0527; 23:XVfaSuo7nsygRk3VIC7JwqHfHKmlYu7DVAeI3VsIb?= =?us-ascii?Q?O1H6DosHmayuUhfylGLvQQvbyEt6gwN/Ct/9Ezp8jTIov4FdVZqEK/tCH8dY?= =?us-ascii?Q?floDAgteTmHRU/3YSHhhWkKyUwcmQN+cfxS8Oea5vQKhRNW1/Ls+5ibI81za?= =?us-ascii?Q?PzlVOvvax/c+Lh5rYxaFcdwFcVfvq9bYE+ol8gHMR7Fa8Kh3GjLVOC7O2vVX?= =?us-ascii?Q?NZwzPlB4WOADIMRcBVMNpISFXfu2TX1gVT9PTMEcMOkbOR7N/Gvepir2Mbph?= =?us-ascii?Q?r30ByIOSyE0lWOCFSkcQEIPSToH6K+5SUl24KddGWLqYPgC9SYN2Iw6n6yKd?= =?us-ascii?Q?pzOXhAkeXEnM8tIo0m1vnnfMN4EhyQht1P2OKgkYKLjDHPkYfJTTIybGw/rF?= =?us-ascii?Q?oKmPkDEmDPoGTNrCWvqeqVusMER8vPA8bsik4amervhZcK5jtVFg9QF17FmG?= =?us-ascii?Q?kJC7rU1jH+feZFnhetURNUaqcVmwPN7E3LbUVC2oWx4aT0ypVhP4LT+gvBsS?= =?us-ascii?Q?OLPfziQ7NCzu1GYcg/C8jwlb12gCxI0E6Ozmd1y7jjv+tpCmCdN2aAoYPbda?= =?us-ascii?Q?y4MHcBowk9kMouho9VsTDnr88CywcB0Py7eIBIVjbdHTCtMufJ/Lgs8RmeOo?= =?us-ascii?Q?tER/sPtrl0S4kUgWkcE7NHR7/zMcvdrPpVJ/7I2zNIHYIIgvBgfldi8LthLN?= =?us-ascii?Q?fHqkPXjHnorVdtIo7Vjx0n7FNuhcfToKKygoiSgi/5/h+TCUITyKOtSQbk+q?= =?us-ascii?Q?xv9iMeLIt6nj2qH6gYZmiEqkkWQ4jM4zfcuZ8hY1//WpTkWs/KrdFc46Dlkc?= =?us-ascii?Q?lVmJHw96DQM5Oqw0SESqJKA7cYOjQh7jq01hQ3CYS9jOkC6sjrjtm4V1+SDV?= =?us-ascii?Q?mHh1DhF/pXbsQi+QAvcFXk+EH3qd2mnCieLQdwPiy0c6dTuBHKiPHuxB9/l6?= =?us-ascii?Q?ee1eYu02tje/zGcXh4exqafOM3StmeGvp75TtxuaQ=3D=3D?= X-Microsoft-Exchange-Diagnostics: 1; VI1PR08MB0527; 5:+xx8YfMlJRgFx9yWusamV5Gu73gqx2cccZj800VWybyKL1LuUlBe0Bw76eqK33BSSGuJ6kEX0agTl7+YCfWtn4LQI3PqGwwby0PAPgJcNDKHTKtqn+R6/7q4Tgvk18aL16FU29C1G4VYlCml+MJwDQ==; 24:X+2cIqTLuN2EY6TyLqL2SN899Es+m9fm7x5SNg7+EL+nCj9oeyz2PSNP7QABHosq48dvC6fsX7XKZUmWD5gYPwrpGzBvcTZEjw5g5IhnT0w=; 7:Mh1BVWyl14WlRIhyP9H0AlByrjGEkeIIqgFe49vcqmKdWngHU1pdmh3XZyYIxfUksQXdYJxC66gCVDvRxtYZ05XUP2uutY7M2h7THgnRX/qLXBOLXmnc6qNu/lVxdeNCQtnPPumekLbgsPmNjl7OVWBOpvJy33OufKCHtYIyzPb2RrvFm2QSMiDyff/ZFPDo; 20:b6epeVMjdS7tpf0iycVATCRYM1VoQEmHRKOVva0VnxNkKOXdjG16D+R8rXE8GWd169waVwDtSfhu2hFTLtzsvqTYGRwF0E4SPWNk/GKCx0lDrPrU09gSTVK6sNCTVHmcyK0Uxo7H2oyri3YeyyvLba5/+SRHsYuUuBPjAi5E3+M= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 May 2016 02:53:43.0095 (UTC) X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d; Ip=[217.140.96.140]; Helo=[nebula.arm.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR08MB0527 X-MC-Unique: c42L1OUYR4OI7AjF2l3nuQ-1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160529_195406_294678_90C8EBFA X-CRM114-Status: UNSURE ( 6.67 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: mark.rutland@arm.com, cmetcalf@mellanox.com, steve.capper@arm.com, marc.zyngier@arm.com, will.deacon@arm.com, linux-kernel@vger.kernel.org, Huang Shijie <shijie.huang@arm.com>, nd@arm.com, linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/arch/arm64/include/asm/assembler.h b/arch/arm64/include/asm/assembler.h index 10b017c..0be1d29 100644 --- a/arch/arm64/include/asm/assembler.h +++ b/arch/arm64/include/asm/assembler.h @@ -34,9 +34,15 @@ */ .macro disable_irq msr daifset, #2 +#ifdef CONFIG_TRACE_IRQFLAGS + bl trace_hardirqs_off +#endif .endm .macro enable_irq +#ifdef CONFIG_TRACE_IRQFLAGS + bl trace_hardirqs_on +#endif msr daifclr, #2 .endm @@ -75,6 +81,9 @@ * are self-synchronising. */ .macro enable_dbg_and_irq +#ifdef CONFIG_TRACE_IRQFLAGS + bl trace_hardirqs_on +#endif msr daifclr, #(8 | 2) .endm
This patch adds the hardirq flags trace code for irq macros. Signed-off-by: Huang Shijie <shijie.huang@arm.com> --- arch/arm64/include/asm/assembler.h | 9 +++++++++ 1 file changed, 9 insertions(+)