Message ID | 166679929981.1528100.11309260111368557859.stgit@devnote3 |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp350376wru; Wed, 26 Oct 2022 09:00:32 -0700 (PDT) X-Google-Smtp-Source: AMsMyM63n2xrRsDeJZXMyfAhHxzLDO0GR1sutWJo5qUwQYx2a3sOVplycNKi4Qu2zObHbidjIZiC X-Received: by 2002:a17:907:d10:b0:79a:a1fe:8be5 with SMTP id gn16-20020a1709070d1000b0079aa1fe8be5mr25052045ejc.125.1666800031950; Wed, 26 Oct 2022 09:00:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666800031; cv=none; d=google.com; s=arc-20160816; b=eN3alihtzPpYqxhWsTa9ZgIRw/recIZTcpw2+w1dAAUVTfvMMha5tNW8igU4kxyqIV NNNzNJssyOQq0qn7bVxy5VGsp52yjncnk6mWWheFmpYyoAp/lPwNHHhwXK8ykuy6VfiR 8QBWfYQ+rP9wvqhwCu4luu6hzLclmtLRgUQYvyRQxBKrDLUSnE24EMqh916skgLKnovM 6nv4kewAI/iwQyc/1Apm/b7XYDHUhUicyft549nsDGnmrURvlQPR8+C5Ro3ETPRTgzgO RDYPqXn3g0mm7MdOwybcnE254G4kwwfgajGjBIRjWEFv3gYct2JPUdJ73e27B3C8ylJ1 2hZw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:message-id:date:subject:cc:to:from:dkim-signature; bh=Go3L/VJ60qyTThlxlkpJRvO1hxduBBlfmFRU2f8vqT4=; b=C7eQ1Bo76Q0sHq5mvglxxmS6E0v8Tb0kFkJ0OQDVWn5RhaTyNOVszEjD0FiwgTNx/U v8QIN4o2y5HyKIF2r34Ftm/B6LPnuJ2jb4F42Ytr0M75ORQZ0X8yr4jpbaAbMWlbtPqA W4sjXi1w5H5zQWU5WMby/TSS8yIUWMOaFyqCeA8HZPEDpM1+XeKucrAhfZrENqLiwucu UEAc5alKjzaLKdbQW1YBYKR6rnTxGCQCt6ZKv0PRplRPCicsfmNCYB6byg3HQi/21YOg 0e9lI9k4wARXCAC2GSGVIpyuwdxpnk4gI4I8M1Bf2dWsiMnBPJkEC4rkSK/ca5AhmbCz /vlA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=gikfRXG+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h18-20020aa7cdd2000000b00461a21ef785si5481443edw.247.2022.10.26.09.00.06; Wed, 26 Oct 2022 09:00:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=gikfRXG+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233378AbiJZPs0 (ORCPT <rfc822;pwkd43@gmail.com> + 99 others); Wed, 26 Oct 2022 11:48:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57294 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229726AbiJZPsY (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 26 Oct 2022 11:48:24 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 056D0B44B5; Wed, 26 Oct 2022 08:48:24 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id A287561F58; Wed, 26 Oct 2022 15:48:23 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 09066C433C1; Wed, 26 Oct 2022 15:48:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1666799303; bh=1HSFtAPGOzdvwrfNsDe8arVdzJ63E2LnDE/GDXS52kk=; h=From:To:Cc:Subject:Date:From; b=gikfRXG+ErmX9Ajb3d95lQ6+XgRKuMazJOmyy6CEN9O49/iwymebWv/hpVSJBrNdU lXMhOQh8RcwRyRJDMIUManzgGfmCpNVa7/BH5jHZyrEfq8lzr4DrAS6hj0RK1QrnLM AkIabh3Iqt1Zmp+RwXGWRn07M6kPooL3IGvgeQWb+XzA4+ANwH9aGw2oZQpE3VVzcA +1M2VCmdrMljNa0eShh73hfKlMhWHZk37DnawseyQxa7unUX9DXadMGFZ4/NSUy60X DGPMLFgDrL6KyLWSPR4Ch1Ek4Kb2Z5JXx/mzKnL2++QFN8C9+z7lC+9PLn2z1fdHxC I254KJHHBQyAA== From: "Masami Hiramatsu (Google)" <mhiramat@kernel.org> To: LKML <linux-kernel@vger.kernel.org> Cc: Steven Rostedt <rostedt@goodmis.org>, Linux Trace Kernel <linux-trace-kernel@vger.kernel.org>, Masami Hiramatsu <mhiramat@kernel.org>, Primiano Tucci <primiano@google.com> Subject: [PATCH v2 0/2] tracing/probes: Add 'symstr' type for probes Date: Thu, 27 Oct 2022 00:48:19 +0900 Message-Id: <166679929981.1528100.11309260111368557859.stgit@devnote3> X-Mailer: git-send-email 2.38.0.135.g90850a2211-goog User-Agent: StGit/0.19 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747766510460065807?= X-GMAIL-MSGID: =?utf-8?q?1747766510460065807?= |
Series |
tracing/probes: Add 'symstr' type for probes
|
|
Message
Masami Hiramatsu (Google)
Oct. 26, 2022, 3:48 p.m. UTC
Hi, Here is the 2nd version of the patches to add the 'symstr' type for kprobe/eprobe events. This version removes redundant strlen()[1/2] and fixes indentation [2/2]. This type converts given value into kernel symbol string and stores it as a dymanic symbol in the trace ring buffer entry. Thus, user who reads the raw ring buffer data doesn't need to resolve the symbol name afterwards. This is similar to the existing 'symbol' type. The 'symbol' type stores the address value itself to the entry, it only *shows* the symbol name when it is printed. Thank you, --- Masami Hiramatsu (Google) (2): tracing/probes: Add symstr type for dynamic events tracing/probes: Reject symbol/symstr type for uprobe Documentation/trace/kprobetrace.rst | 8 ++ kernel/trace/trace.c | 2 - kernel/trace/trace_probe.c | 65 +++++++++++++------- kernel/trace/trace_probe.h | 19 ++++-- kernel/trace/trace_probe_tmpl.h | 47 ++++++++++++++ kernel/trace/trace_uprobe.c | 3 + .../ftrace/test.d/kprobe/uprobe_syntax_errors.tc | 5 ++ 7 files changed, 113 insertions(+), 36 deletions(-) -- Masami Hiramatsu (Google) <mhiramat@kernel.org>