Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp3008691pxu; Sat, 10 Oct 2020 15:54:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxLfVpSALOLtXy4ug1CbCNI7WCRqYbv0XHAgnEofjOAVhHB8Wh/jFFY6mh5pVGw1lyuqOqg X-Received: by 2002:a17:906:b2ca:: with SMTP id cf10mr19867533ejb.65.1602370469582; Sat, 10 Oct 2020 15:54:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602370469; cv=none; d=google.com; s=arc-20160816; b=LPqrwJY5PWtYvSrRgpWvT8pvdaP77ZNzRtCjKFQxmFKhR/vj0TALCcXA/Dg6NgNAN7 biN+n/OvEww/2BAMVx659t3JlIaULggK9EvDA4FMgbVwiOAWvNk45FHkSd+YfHhIMrFM J9pWBbqWbTMnJXLq6QI1yjfVpv58f8BUp5jJle83HrLFUgI33wZslSys5fauvZDLeFOA juC4AWujAJkhX/QVTNn5BFVQbOBvrkQTtf883kKLaaBlZkx45rwKuTa5yjePbKiDDiB6 ceAjyvvKRDWG40PRAtx6enD8tlpVCqaAX/wnWE7PjtN4TPcNp0Uv4XEbsmzd+2UiToWW FI/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=fAgIyoM28V03H4jcAStTAZSvK32l/n16PfEafwB23ng=; b=oM//chjr4EFiWdaCzlm0FLXrVvlFOJaqUNd6I46234M44vzkNp1mPPvM4n//gMcoop UWn7JzD1d/hnZl1JsD3X/cpAce+mOULjizuKYzqjuI9qKUVBB5naDTYCEHoCEO+LWW7G Yl2tub+eDEUWtNZjyue0axRICP/9WrTSQkdV/t+kjBXrpWdz57x8iaA7RLGkxXqVfeRa bugUlSY+aS1/GIHNrKn1L3VNQss5usmJznbSLZWJgLdm/CdTCRrgH7qOkS8pHDYeAGWP RMyC5PpZZBmu9VBDlNflsvrmIkc2kq/imr1yahBi4OLGoAQm2+nYqrm5MDzMHDbzDlQS bzSQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=Y08A4wc6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dv2si9065013ejb.145.2020.10.10.15.54.06; Sat, 10 Oct 2020 15:54:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=Y08A4wc6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388401AbgJIUfy (ORCPT + 99 others); Fri, 9 Oct 2020 16:35:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54146 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726386AbgJIUfx (ORCPT ); Fri, 9 Oct 2020 16:35:53 -0400 Received: from mail-pl1-x643.google.com (mail-pl1-x643.google.com [IPv6:2607:f8b0:4864:20::643]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5551EC0613D2 for ; Fri, 9 Oct 2020 13:35:52 -0700 (PDT) Received: by mail-pl1-x643.google.com with SMTP id m15so5005270pls.8 for ; Fri, 09 Oct 2020 13:35:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=fAgIyoM28V03H4jcAStTAZSvK32l/n16PfEafwB23ng=; b=Y08A4wc6Chy3fHgEl70jRCplNZeHVk/GeR3Kb92wDjLdSl3ubSsynjnz194w4dKP1w RZBm6MFfrWrWU5ncATGQi2tEI3QLeOwrWtsw3QzbLQAaC3LWKhpeJjwrMwGLtz1oq/pW DlyeiAcZEcyLLUDcs5ofEielZzAASjoxzbUIivNq6TlURRRykvgIk47aIbRGCByr8O3G h5cXvLlcBb7BxnRdtv/PrE0erHmJcJHVkbKxtZf+bBjrL6BrRVGiewQQImIceZYTyfyj mXRBJCGusUZuEjOshZiQQXeZQNKd229whBxHZY6+DTaGsLrL4SxDwqHfjYQSHIGzNRZD 7weQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=fAgIyoM28V03H4jcAStTAZSvK32l/n16PfEafwB23ng=; b=AZSrZCfV4t8TnpYqSwTTSX89NeRhGO36JqbIy5EFZy3Rj80TeSd7JLYxvI41QxXkbZ ofoSHREvIMz3qFD57Nrd7Ul1RQkUfIAFZ4lr945C/yuCua48vxSoXG6rv73EZFYnkn2B 1A1p0zYXHVLj+lZ8Na9ShhXvI44/wvytRZit39nKg6I1NUIrdp6iZerQxvMNGWEdUY2f GmQMB2EATEa0y98QyF88yojfSwtVCAliVoHjefcTMd+LlHq8SbqV64GuYDD57N/VLv5I uDSy6eHbhN2i73TTsDuNOQeLEpTH4DnqeGkMVfT7LoRDfDuiTNFpdB6A3s8q7c6UzpE/ BDZA== X-Gm-Message-State: AOAM533ycmqAOtUY6GbCDPRmZyx9v4G/rDS+7XcxigL9dzaxgHoaErkk YTkKf3ZK8KaYDHfSGh9D3bOLCeDm1ClsA2u0TGKqVQ== X-Received: by 2002:a17:902:8b86:b029:d4:c98b:c314 with SMTP id ay6-20020a1709028b86b02900d4c98bc314mr1736057plb.48.1602275751546; Fri, 09 Oct 2020 13:35:51 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Axel Rasmussen Date: Fri, 9 Oct 2020 13:35:14 -0700 Message-ID: Subject: Re: [PATCH 0/5] tracing: Synthetic event dynamic string fixes To: Tom Zanussi Cc: Steven Rostedt , Masami Hiramatsu , LKML Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Oct 9, 2020 at 8:17 AM Tom Zanussi wrote: > > These patches provide fixes for the problems observed by Masami in the > new synthetic event dynamic string patchset. > > The first patch (tracing: Don't show dynamic string internals in > synthetic event description) removes the __data_loc from the event > description but leaves it in the format. > > The patch (tracing: Add synthetic event error logging) addresses the > lack of error messages when parse errors occur. > > The remaining three patches address the other problems Masami noted > which result from allowing illegal characters in synthetic event and > field names when defining an event. The is_good_name() function is > used to check that's not possible for the probe events, but should > also be used for the synthetic events as well. > > (tracing: Move is_good_name() from trace_probe.h to trace.h) makes > that function available to other trace subsystems by putting it in > trace.h. (tracing: Check that the synthetic event and field names are > legal) applies it to the synthetic events, and (selftests/ftrace: > Change synthetic event name for inter-event-combined test) changes a > testcase that now fails because it uses an illegal name. > > The following changes since commit 848183553e431e6e9c2ea2f72421a7a1bbc6532e: > > tracing: Fix synthetic print fmt check for use of __get_str() (2020-10-08 15:29:07 -0400) > > are available in the Git repository at: > > git://git.kernel.org/pub/scm/linux/kernel/git/zanussi/linux-trace.git ftrace/dynstring-fixes-v1 I applied this series, and then my mmap_lock tracepoints series, onto v5.9-rc8. I played with the edge cases Masami raised in the other thread, and I also tried constructing a synthetic event as we discussed on the thread about my series. As far as I can see, this addresses the edge cases Masami pointed out, and it all seems to work as intended. It works fine with the kind of synthetic event I'm hoping to define for my particular use case. So, for what it's worth: Tested-By: Axel Rasmussen > > Tom Zanussi (5): > tracing: Don't show dynamic string internals in synthetic event > description > tracing: Move is_good_name() from trace_probe.h to trace.h > tracing: Check that the synthetic event and field names are legal > tracing: Add synthetic event error logging > selftests/ftrace: Change synthetic event name for inter-event-combined > test > > kernel/trace/trace.h | 13 ++ > kernel/trace/trace_events_synth.c | 133 +++++++++++++++++- > kernel/trace/trace_probe.h | 13 -- > .../trigger-inter-event-combined-hist.tc | 8 +- > 4 files changed, 147 insertions(+), 20 deletions(-) > > -- > 2.17.1 >