From patchwork Sun Jul 11 07:33:34 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Masami Hiramatsu (Google)" X-Patchwork-Id: 12369001 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=-14.7 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,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 9F7ABC07E96 for ; Sun, 11 Jul 2021 07:33:52 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 6EE02613AB for ; Sun, 11 Jul 2021 07:33:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229755AbhGKHgc (ORCPT ); Sun, 11 Jul 2021 03:36:32 -0400 Received: from mail.kernel.org ([198.145.29.99]:50976 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229544AbhGKHgc (ORCPT ); Sun, 11 Jul 2021 03:36:32 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id D1D5661351; Sun, 11 Jul 2021 07:33:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1625988826; bh=Gkry7L4/a6oK7rD4bkVSprWsqRBKKhrxcAhOuwFyCPg=; h=From:To:Cc:Subject:Date:From; b=sJepMvu+zYY4IIcqXsn12uNUEEK02Wj8VBt8lha08kBUtrUv4wXwMtOH4GrItKkxa g9RUBIOU058HFTmY7Kf6sAYpB3jSZIAtG97FdIIBOhdC9gn7XlJcnm0QpRDDzkI50r PjvYCU2SMgv8X464rTU/BzUNfTmlhLICJcwJaHpqaeehEhI0rgKr6pcEAMIwnl9is/ LY48HP1QE5bda/YBGYHvFPUd5sXqUjA9qaXB9p33dxRjMGqJwWyPaC4hKiZv9lwtvZ X5VxOPOIib+7AeChXHqWXngPEIuwPH+EnnJOXDs/8XPdAEmnlni+BNaFMcZfZrQYu4 KIfwSLspbpLFw== From: Masami Hiramatsu To: X86 ML , Ingo Molnar Cc: Steven Rostedt , Josh Poimboeuf , Masami Hiramatsu , Daniel Xu , linux-kernel@vger.kernel.org, bpf@vger.kernel.org, kuba@kernel.org, mingo@redhat.com, ast@kernel.org, Thomas Gleixner , Borislav Petkov , Peter Zijlstra , kernel-team@fb.com, yhs@fb.com, linux-ia64@vger.kernel.org, Abhishek Sagar , Andrii Nakryiko , Joe Perches Subject: [PATCH -tip v2 0/6] kprobes: treewide: Clean up kprobe code Date: Sun, 11 Jul 2021 16:33:34 +0900 Message-Id: <162598881438.1222130.11530594038964049135.stgit@devnote2> X-Mailer: git-send-email 2.25.1 User-Agent: StGit/0.19 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: bpf@vger.kernel.org Hi, Here is the 2nd series of patches to cleanup the kprobes code. Previous version is here. https://lore.kernel.org/bpf/162592891873.1158485.768824457210707916.stgit@devnote2/ This version is just add a cleanup of trace_kprobes to the [6/6], thanks Joe to find it out! Thank you, --- Masami Hiramatsu (6): kprobes: treewide: Cleanup the error messages for kprobes kprobes: Fix coding style issues kprobes: Use IS_ENABLED() instead of kprobes_built_in() kprobes: Add assertions for required lock kprobes: treewide: Use 'kprobe_opcode_t *' for the code address in get_optimized_kprobe() kprobes: Use bool type for functions which returns boolean value arch/arm/probes/kprobes/core.c | 4 arch/arm/probes/kprobes/opt-arm.c | 7 - arch/arm64/kernel/probes/kprobes.c | 5 - arch/csky/kernel/probes/kprobes.c | 10 + arch/mips/kernel/kprobes.c | 11 + arch/powerpc/kernel/optprobes.c | 6 - arch/riscv/kernel/probes/kprobes.c | 11 + arch/s390/kernel/kprobes.c | 4 arch/x86/kernel/kprobes/opt.c | 6 - include/linux/kprobes.h | 64 +++---- kernel/kprobes.c | 315 +++++++++++++++++++----------------- kernel/trace/trace_kprobe.c | 2 12 files changed, 227 insertions(+), 218 deletions(-) -- Masami Hiramatsu (Linaro)