From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B222A1F3D55 for ; Fri, 27 Dec 2024 15:12:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735312379; cv=none; b=ha8QK8QjUFu63atSbI+DNy13Z4T9dkfbDvjQceIjxCoIB99SaoG+v5czcAosBb8+heTHay+xebwO3UxjfpPkEQH3jtvV0OcTRcrUezRg0PD9eQQNUN8OV5Gu1qpShV3XVlCpvqIz4n7XhYc5l11KQIODEBO8PfRVjOkNfPe7rl8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735312379; c=relaxed/simple; bh=Uc1F8Yoge/aYHDH8rzT9XmomhWwvlYLg9tf1ZvIQreY=; h=Message-ID:Date:From:To:Cc:Subject; b=nlZzgE4pOpK2WjVxZs4/BCutFCAdPfaH4gqkagFJb/LQV0InaSc2lK7Js21fByTXzbuf/Vu5uqIjaLJtkPX01kN4TNXs5MXAhwgbziDhJaqnrE5kiBjGUNK+7J0IIHKmT59tLvcL87JcSfLzv8WEUO6BxqX3rqyQeB+fVqcr758= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 58171C4CED0; Fri, 27 Dec 2024 15:12:59 +0000 (UTC) Received: from rostedt by gandalf with local (Exim 4.98) (envelope-from ) id 1tRC2K-0000000GxRj-2wzU; Fri, 27 Dec 2024 10:14:00 -0500 Message-ID: <20241227151335.898746489@goodmis.org> User-Agent: quilt/0.68 Date: Fri, 27 Dec 2024 10:13:35 -0500 From: Steven Rostedt To: linux-kernel@vger.kernel.org Cc: Masami Hiramatsu , Mark Rutland , Mathieu Desnoyers , Andrew Morton Subject: [for-next][PATCH 00/18] ftrace: Add fprobe updates for 6.14 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace.git ftrace/for-next Head SHA1: 2bc56fdae1ba3fc80ee37a648346abc5f152357d Masami Hiramatsu (Google) (17): fgraph: Pass ftrace_regs to entryfunc fgraph: Replace fgraph_ret_regs with ftrace_regs fgraph: Pass ftrace_regs to retfunc fprobe: Use ftrace_regs in fprobe entry handler fprobe: Use ftrace_regs in fprobe exit handler tracing: Add ftrace_partial_regs() for converting ftrace_regs to pt_regs tracing: Add ftrace_fill_perf_regs() for perf event tracing/fprobe: Enable fprobe events with CONFIG_DYNAMIC_FTRACE_WITH_ARGS bpf: Enable kprobe_multi feature if CONFIG_FPROBE is enabled ftrace: Add CONFIG_HAVE_FTRACE_GRAPH_FUNC fprobe: Rewrite fprobe on function-graph tracer fprobe: Add fprobe_header encoding feature tracing/fprobe: Remove nr_maxactive from fprobe selftests: ftrace: Remove obsolate maxactive syntax check selftests/ftrace: Add a test case for repeating register/unregister fprobe Documentation: probes: Update fprobe on function-graph tracer ftrace: Add ftrace_get_symaddr to convert fentry_ip to symaddr Sven Schnelle (1): s390/tracing: Enable HAVE_FTRACE_GRAPH_FUNC ---- Documentation/trace/fprobe.rst | 42 +- arch/arm64/Kconfig | 2 + arch/arm64/include/asm/Kbuild | 1 + arch/arm64/include/asm/ftrace.h | 51 +- arch/arm64/kernel/asm-offsets.c | 12 - arch/arm64/kernel/entry-ftrace.S | 32 +- arch/arm64/kernel/ftrace.c | 78 ++- arch/loongarch/Kconfig | 4 +- arch/loongarch/include/asm/fprobe.h | 12 + arch/loongarch/include/asm/ftrace.h | 32 +- arch/loongarch/kernel/asm-offsets.c | 12 - arch/loongarch/kernel/ftrace_dyn.c | 10 +- arch/loongarch/kernel/mcount.S | 17 +- arch/loongarch/kernel/mcount_dyn.S | 14 +- arch/powerpc/Kconfig | 1 + arch/powerpc/include/asm/ftrace.h | 13 + arch/powerpc/kernel/trace/ftrace.c | 2 +- arch/powerpc/kernel/trace/ftrace_64_pg.c | 10 +- arch/riscv/Kconfig | 3 +- arch/riscv/include/asm/Kbuild | 1 + arch/riscv/include/asm/ftrace.h | 45 +- arch/riscv/kernel/ftrace.c | 17 +- arch/riscv/kernel/mcount.S | 24 +- arch/s390/Kconfig | 4 +- arch/s390/include/asm/fprobe.h | 10 + arch/s390/include/asm/ftrace.h | 37 +- arch/s390/kernel/asm-offsets.c | 6 - arch/s390/kernel/entry.h | 1 - arch/s390/kernel/ftrace.c | 48 +- arch/s390/kernel/mcount.S | 23 +- arch/x86/Kconfig | 4 +- arch/x86/include/asm/Kbuild | 1 + arch/x86/include/asm/ftrace.h | 54 +- arch/x86/kernel/ftrace.c | 42 +- arch/x86/kernel/ftrace_32.S | 13 +- arch/x86/kernel/ftrace_64.S | 17 +- include/asm-generic/fprobe.h | 46 ++ include/linux/fprobe.h | 62 +- include/linux/ftrace.h | 116 +++- include/linux/ftrace_regs.h | 2 + kernel/trace/Kconfig | 22 +- kernel/trace/bpf_trace.c | 19 +- kernel/trace/fgraph.c | 57 +- kernel/trace/fprobe.c | 664 +++++++++++++++------ kernel/trace/ftrace.c | 6 +- kernel/trace/trace.h | 6 +- kernel/trace/trace_fprobe.c | 146 ++--- kernel/trace/trace_functions_graph.c | 10 +- kernel/trace/trace_irqsoff.c | 6 +- kernel/trace/trace_probe_tmpl.h | 2 +- kernel/trace/trace_sched_wakeup.c | 6 +- kernel/trace/trace_selftest.c | 11 +- lib/test_fprobe.c | 51 +- samples/fprobe/fprobe_example.c | 4 +- .../test.d/dynevent/add_remove_fprobe_repeat.tc | 19 + .../ftrace/test.d/dynevent/fprobe_syntax_errors.tc | 4 +- 56 files changed, 1303 insertions(+), 651 deletions(-) create mode 100644 arch/loongarch/include/asm/fprobe.h create mode 100644 arch/s390/include/asm/fprobe.h create mode 100644 include/asm-generic/fprobe.h create mode 100644 tools/testing/selftests/ftrace/test.d/dynevent/add_remove_fprobe_repeat.tc