From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.0 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 06947C282CE for ; Tue, 4 Jun 2019 18:34:44 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id D2D092070B for ; Tue, 4 Jun 2019 18:34:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726269AbfFDSej (ORCPT ); Tue, 4 Jun 2019 14:34:39 -0400 Received: from smtp.duncanthrax.net ([89.31.1.170]:56325 "EHLO smtp.duncanthrax.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726261AbfFDSej (ORCPT ); Tue, 4 Jun 2019 14:34:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=duncanthrax.net; s=dkim; h=Content-Transfer-Encoding:MIME-Version: Message-Id:Date:Subject:Cc:To:From; bh=lIX5klqHhw1eqWTcLLdOntiNS146yzREsHDptszRGik=; b=ns1gsGvVXPqTyqBpvvTmPZ4Sw/ z0AkG3ZwWqgu71u8uGb1aPGbKs37cOgphFjnyazFFhM7V8HiLz/vCfH3lfmzKm1QuGxEJ5LpeGIYC eBFh2OjBjuV3/ABOPPB9ODbPjQoisQplb6wWn7yczadXoqes6ay7FOpjAEkf5AMyycmE=; Received: from [134.3.44.134] (helo=t470p.stackframe.org) by smtp.eurescom.eu with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1hYEGb-0002tN-Vt; Tue, 04 Jun 2019 20:34:38 +0200 From: Sven Schnelle To: deller@gmx.de Cc: linux-parisc@vger.kernel.org, Sven Schnelle Subject: [PATCH v2 0/6] Dynamic FTRACE for PA-RISC Date: Tue, 4 Jun 2019 20:34:29 +0200 Message-Id: <20190604183435.20175-1-svens@stackframe.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-parisc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-parisc@vger.kernel.org Hi List, this series adds support for dynamic ftrace. See the commit message of the patch for a explanation how it works. For testing, you need a patched version of gcc because the current version has a bug which misplaces the function label. John David Anglin can provide a patch which fixes this issue. This issue is tracked here: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90751 Changes to v1: - replace a few hardcoded size by sizeof() - change len parameter of patch_text_multiple() to unsigned - add link to gcc bugtracker Sven Schnelle (6): parisc: add support for patching multiple words parisc: add spinlock to patch function parisc: add WARN_ON() to clear_fixmap parisc: use pr_debug() in kernel/module.c compiler.h: add CC_USING_PATCHABLE_FUNCTION_ENTRY parisc: add dynamic ftrace arch/parisc/Kconfig | 2 + arch/parisc/Makefile | 18 +++++ arch/parisc/include/asm/ftrace.h | 15 +++- arch/parisc/include/asm/patch.h | 4 +- arch/parisc/kernel/Makefile | 9 ++- arch/parisc/kernel/entry.S | 64 +++++++++++++++ arch/parisc/kernel/ftrace.c | 129 +++++++++++++++++++++++++++--- arch/parisc/kernel/module.c | 64 +++++++++------ arch/parisc/kernel/module.lds | 7 ++ arch/parisc/kernel/patch.c | 88 ++++++++++++++++---- arch/parisc/kernel/vmlinux.lds.S | 2 + arch/parisc/mm/fixmap.c | 7 +- include/asm-generic/vmlinux.lds.h | 7 ++ include/linux/compiler_types.h | 2 + 14 files changed, 358 insertions(+), 60 deletions(-) create mode 100644 arch/parisc/kernel/module.lds -- 2.20.1