From patchwork Fri Feb 10 21:33:02 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Zanussi X-Patchwork-Id: 5258 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp1187726wrn; Fri, 10 Feb 2023 13:35:09 -0800 (PST) X-Google-Smtp-Source: AK7set/1TXRrO5hgXeECR//RH3UHfoJ4dI1IUb4OwH5rvRUF2zo3S67L2Wfy8ReQWrlkvBjcrO7o X-Received: by 2002:a17:907:c21:b0:8af:9c84:9412 with SMTP id ga33-20020a1709070c2100b008af9c849412mr2186681ejc.71.1676064909021; Fri, 10 Feb 2023 13:35:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676064909; cv=none; d=google.com; s=arc-20160816; b=wovT41iXaRxjmaIVrzSVMylZJSLoCt1YPcFvQhrzAUSd762cPe9ppoZJVF7ncJNglF uUE2Ut1O5BXgwDAL8SQM260EDB0Vr5mwKz5TOQEj2YxKNaCSaAXjvvG3U4uwaodap0Z8 kIDMqX848weYlBvBiR0gGS6S6yVpouII7lQY4ZZb4XFmYzuSZhGMwTMUNluvHKVn6310 aivVmPhjOL/sOSb+906LboIzmltk8SpYGYtg+KY6Mq1Q9a7Mqo5Wx/J/ilOSFlfIpEeP Ccy9ZAKgu+g2Thlu9zMa8bZGQTmVvwXZa0HzNHop1lCJwfX3opTqcgfPkm+3QErHp/bN Lzhw== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=1vzZl+G24vEa9KK6OKAugbXnaUamBkV/nuOlHL39t2Y=; b=Q+GtqPbQf6NQhspp7x6xCtA0G++7gOLp4IfL9Xyk0oksEgk6mZKLRrPdDMRNBF8XjG pkhsoBj7pfFXQKMwk1DmS2g8fVPh8rApQYc0BvDhA1C2O83rdSwXljc4g9CpMW5e7HOb +OtYAgmx+3qNVMsrB/1CFKl0k/PvqjMaz/gIz9f3OM7isCOEqJ7yMvUIAR8Nm+DU1KUQ iOLmicSWyzhnaYXdVZPPLnMgpNDgv3CcizX7uM27XUo1ETyCa45vR5XIOt2vIV30L+ji YdJoA6GldTdVsXQD/tppXkF9spCXiPQHSmt8ee87G6wvPiZ48hlc1y9wrfZvG/OlRASd vNuQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Dgitt2Pq; 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 1-20020a17090600c100b0088dd72fa97dsi8231829eji.975.2023.02.10.13.34.43; Fri, 10 Feb 2023 13:35:08 -0800 (PST) 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=Dgitt2Pq; 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 S233686AbjBJVdS (ORCPT + 99 others); Fri, 10 Feb 2023 16:33:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50810 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233655AbjBJVdP (ORCPT ); Fri, 10 Feb 2023 16:33:15 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 303D081CE2; Fri, 10 Feb 2023 13:33:14 -0800 (PST) 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 BF8A661EB0; Fri, 10 Feb 2023 21:33:13 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 892C3C433EF; Fri, 10 Feb 2023 21:33:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1676064793; bh=ZmTI6CJ1QpyHL95uGX/6YQ6vtkLg0UV2JSOubbRz/Qg=; h=From:To:Cc:Subject:Date:From; b=Dgitt2PqkbvssqVkEq2JgV4ZqgYBTuosSIS7Uq6bzvKtuKmLKaimHVucW5eJnhnip AIh3MEZuiL/5Ow4gBDB7S15gGy+OpFW8wjhpo2Qtf82XGnqoY8oXtOPDAqENeMHn4x hETK2ZVV04hbXm4J8eFHJ3kGLIQ4pvJ0PG/J/4YSnel8Z0aiTr34JM0aCyCucHG/RR /VkE16FVTWswznFfrPNfE7SZQ3E+ghnwHyOYR9rCkgm90Fhjwsd1DVd8L8DZ1NWdQU lFSneDlqxtpWJ7+nnW5oMsU4QslO+do1n1iZFqjkno6qkF6nJ7m1kCiv2BmpL0taBG XenMoG0yQIOXQ== From: Tom Zanussi To: rostedt@goodmis.org Cc: mhiramat@kernel.org, linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org, akpm@linux-foundation.org, zwisler@google.com, chinglinyu@google.com Subject: [PATCH 0/4] tracing/histogram: Some fixes for new stacktrace variables Date: Fri, 10 Feb 2023 15:33:02 -0600 Message-Id: X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Spam-Status: No, score=-7.1 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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1757481438018874323?= X-GMAIL-MSGID: =?utf-8?q?1757481438018874323?= Hi Steve, Here are a few fixes for some problems I saw when playing around with the new stacktrace variable/synthetic event patches. Thanks, Tom Tom Zanussi (4): tracing/histogram: Don't use strlen to find length of stacktrace variables tracing/histogram: Fix a few problems with stacktrace variable printing tracing/histogram: Fix stacktrace key tracing/histogram: Fix stacktrace histogram Documententation Documentation/trace/histogram.rst | 156 +++++++++++++++++------------- kernel/trace/trace_events_hist.c | 72 +++++++++++--- kernel/trace/trace_events_synth.c | 7 +- 3 files changed, 153 insertions(+), 82 deletions(-)