From patchwork Thu May 24 19:09:30 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Langsdorf X-Patchwork-Id: 10425359 Return-Path: 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 68BE1602D8 for ; Thu, 24 May 2018 19:18:08 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3C2C226E73 for ; Thu, 24 May 2018 19:18:08 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2D14828DE9; Thu, 24 May 2018 19:18:08 +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=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 9C2BC26E73 for ; Thu, 24 May 2018 19:18:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Cc:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=eLWimmJsd39Z3thy4JAiW8qvcI8SAYB/MGhCG39PL9M=; b=dVipw6HkQgKyBi ItjTCurksDG/b1tP+iDIIbZovzaPRm/NFzatcOp31HTRSALA+kO1gLKKW99Cwh9M2V7g79nyNlUs1 ze8w0Giu7hfQ3/SdWMQY9ciAncG3qbIdnAQb9tmZ6KkBOaPYWNLnTH4ou8m4+8UxSQvqrm50ZfLqC 77SfIufdsjEfFAZFbcrKcf3ElS+3RsQdOh1ZzZMJDMXyM+hzttVjv5v165+vjvCJwPJyK6rghCHdH DY8133OD9SnxlpkM8YfrL2OlOpCOQ58aA5r+tHjMWC3xdESpNv+gFrJ50qCKu5wZIldFbA8cI1qrK faRTfcQTX+HK+flOF9ZQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fLvkP-0001DC-87; Thu, 24 May 2018 19:18:01 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fLvkM-0000Vo-V9 for linux-arm-kernel@bombadil.infradead.org; Thu, 24 May 2018 19:17:58 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=References:In-Reply-To:Message-Id:Date: Subject:To:From:Sender:Reply-To:Cc:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=i5Jb05L3BJeitYq2YEUNgjkt496r9mtKBwHXEGSzAHY=; b=QEg30FZyig78yf+3Fxw5uUwm5 vanCWXmq4UgtxcoOvDBstSYt0WDHmlr0xSWBabNhoEAfOL5Qs897NC+I8eknt75aUaSLtJhLEGTlV 0KqRU2e+V0iG8NFV/7/gP+GodPjgbzJiZH0x5rudYuWEUMF9wQaqcIifi8MKdp+v2ixz0iKpxp5M5 xbdp1dmhZXT8oai+hUHiW6/Gx8DHLvPAH6sO5VeJUYC3/gGDgmfOUhJM7sgyyD5siRRIg+zoEO4sr HcS+P8ageemVqpIuN4Ucdy78WbYiloHn0wZeark+q4Ak/prAVzFxxRSan4jpa/8O/Bj7K+aTlXr7h hjkQeJjFQ==; Received: from mx1.redhat.com ([209.132.183.28]) by casper.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fLvch-0001Hj-FL for linux-arm-kernel@lists.infradead.org; Thu, 24 May 2018 19:10:07 +0000 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id CD9DDC99F0 for ; Thu, 24 May 2018 19:09:36 +0000 (UTC) Received: from redhatnow.redhat.com (ovpn-116-144.phx2.redhat.com [10.3.116.144]) by smtp.corp.redhat.com (Postfix) with ESMTP id 910FD67659 for ; Thu, 24 May 2018 19:09:36 +0000 (UTC) From: Mark Langsdorf To: linux-arm-kernel@lists.infradead.org Subject: [PATCH 2/4] arm64: kdebugfs: create arm64 debugfs directory Date: Thu, 24 May 2018 14:09:30 -0500 Message-Id: <20180524190932.32118-3-mlangsdo@redhat.com> In-Reply-To: <20180524190932.32118-1-mlangsdo@redhat.com> References: <20180524190932.32118-1-mlangsdo@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.25]); Thu, 24 May 2018 19:09:36 +0000 (UTC) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180524_201003_680258_E888D13B X-CRM114-Status: GOOD ( 17.68 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Create debugfs directory for arm64, like the existing one for x86. Signed-off-by: Mark Langsdorf --- arch/arm64/kernel/Makefile | 3 ++- arch/arm64/kernel/kdebugfs.c | 27 +++++++++++++++++++++++++++ 2 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 arch/arm64/kernel/kdebugfs.c diff --git a/arch/arm64/kernel/Makefile b/arch/arm64/kernel/Makefile index bf825f3..a48b298 100644 --- a/arch/arm64/kernel/Makefile +++ b/arch/arm64/kernel/Makefile @@ -18,7 +18,8 @@ arm64-obj-y := debug-monitors.o entry.o irq.o fpsimd.o \ hyp-stub.o psci.o cpu_ops.o insn.o \ return_address.o cpuinfo.o cpu_errata.o \ cpufeature.o alternative.o cacheinfo.o \ - smp.o smp_spin_table.o topology.o smccc-call.o + smp.o smp_spin_table.o topology.o smccc-call.o \ + kdebugfs.o extra-$(CONFIG_EFI) := efi-entry.o diff --git a/arch/arm64/kernel/kdebugfs.c b/arch/arm64/kernel/kdebugfs.c new file mode 100644 index 0000000..e1e3332 --- /dev/null +++ b/arch/arm64/kernel/kdebugfs.c @@ -0,0 +1,27 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Architecture specific debugfs files + * + * Copyright (C) 2018 Red Hat, Inc. + */ + +#include +#include +#include + +struct dentry *arch_debugfs_dir; +EXPORT_SYMBOL(arch_debugfs_dir); + +static int __init arch_kdebugfs_init(void) +{ + int error = 0; + + arch_debugfs_dir = debugfs_create_dir("arm64", NULL); + if (IS_ERR(arch_debugfs_dir)) { + arch_debugfs_dir = NULL; + return -ENOMEM; + } + + return error; +} +postcore_initcall(arch_kdebugfs_init);