Received: by 2002:a19:771d:0:0:0:0:0 with SMTP id s29csp1247539lfc; Wed, 1 Jun 2022 13:01:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzB8c42uryGuA67lQv1gR18V0w8pqMjDLECYxEn+R7NzLWutM/sCic00RCbrIQeeuXCVGur X-Received: by 2002:a63:85c2:0:b0:3fc:94a8:d350 with SMTP id u185-20020a6385c2000000b003fc94a8d350mr919447pgd.454.1654113668867; Wed, 01 Jun 2022 13:01:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654113668; cv=none; d=google.com; s=arc-20160816; b=VK9QxrGdgtRiYLJpLaH8cPJ/nT73n8ACT7Xyx+Q8lIf0/A6wtt1DzmEOm05fhEZFEC vZ5aQyT/0vc4I925l/eJHZWSKw5PXV8Th2ign4bR9BrvmV46VPXkQ/jF2VmaJ9K6GSxy LanNQ+upLbPg6m/PyXeQEzNUHULrjq5QEPjvELrTVIZgPsfYTo6x94zzhAbx32W73biK bUkMI35Bf74bCXlno8dyQGN+0EqWnWzc++9t9PN3/BpemJO6IpVs712JicKo6xI/B3aF DUnODpnmJKm4IDY+UT35r8DMyiDlBq6QUt3ILDph0rYga33jAo2tnVzwx1wAPWN3XLyc C1lA== 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=equuJ/ayQjshh/6HU1y+Yz3SkTAmPVSADUodFsW8p/E=; b=ktfyUD0Md/6Ejk+bsbBA1eer/wqVjNdtRqMJJ0UQB9aUtKObPpMF6IO69tlXBAnMki zqhjJxw8lFs+z5SEeORUHpdo9kGzEjLmrd9aq3PlbFF+wLfwroeD/q7P4/8Jjxx34ObR m4ztOCwIsQZwE8Q0z9xSjLGwZzjVAv+4IYuMZyWUBDRW1AEoGsPdwsTo44wL9aeIzb2F DIauY7pwQtIqSWEFxFyB5clUrMOE2xb69ouUxJsip9m6D5lLQBGKEuwvN7qaq0UL+JTT DjWokyqI+liY9EqUy2NO3KZFNqUAiwLAKCTJBRD7Zl0jeer49d4J2mr5yxyX4RBFnPUF UtvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b="jqxZJV/2"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id m1-20020a634c41000000b003db8a4f29e5si2793527pgl.264.2022.06.01.13.01.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Jun 2022 13:01:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b="jqxZJV/2"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 822D6157EBC; Wed, 1 Jun 2022 12:19:22 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244290AbiEaG3X (ORCPT + 99 others); Tue, 31 May 2022 02:29:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40966 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242946AbiEaG3U (ORCPT ); Tue, 31 May 2022 02:29:20 -0400 Received: from alexa-out-sd-01.qualcomm.com (alexa-out-sd-01.qualcomm.com [199.106.114.38]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2985C66237 for ; Mon, 30 May 2022 23:29:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1653978559; x=1685514559; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=equuJ/ayQjshh/6HU1y+Yz3SkTAmPVSADUodFsW8p/E=; b=jqxZJV/25Dl5GsagLuQOrpU6bpeRM4uEPkpLrh55EwzQHGjpYT2ybFaG YtQu2klDMm994qIVEdQEqN3IjxxbHQ4d5+0NFNLdZ/1uPepDHCkDXhWoj +rC4wpxJCofs2kkE0XTJuare8OFHoB7yIypSvsnMgWHsF0X8NgcKQJp34 Y=; Received: from unknown (HELO ironmsg04-sd.qualcomm.com) ([10.53.140.144]) by alexa-out-sd-01.qualcomm.com with ESMTP; 30 May 2022 23:29:18 -0700 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg04-sd.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 May 2022 23:29:18 -0700 Received: from nalasex01b.na.qualcomm.com (10.47.209.197) by nasanex01c.na.qualcomm.com (10.47.97.222) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Mon, 30 May 2022 23:29:17 -0700 Received: from linyyuan-gv.qualcomm.com (10.80.80.8) by nalasex01b.na.qualcomm.com (10.47.209.197) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Mon, 30 May 2022 23:29:15 -0700 From: Linyu Yuan To: Steven Rostedt , Masami Hiramatsu , Tom Zanussi , Ingo Molnar CC: , Linyu Yuan Subject: [PATCH v3 0/3] [PATCH v2 0/2] tracing/probes: allow no event name input when create group Date: Tue, 31 May 2022 14:29:09 +0800 Message-ID: <1653978552-18637-1-git-send-email-quic_linyyuan@quicinc.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01b.na.qualcomm.com (10.47.209.197) X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 take kprobe event as example, when create a group of events, p[:[GRP/]EVENT] [MOD:]KSYM[+OFFS]|KADDR [FETCHARGS], according to this format, we must input EVENT name, this change allow only GRP/ input, EVENT name auto generate from KSYM, p[:[GRP/][EVENT]] [MOD:]KSYM[+OFFS]|KADDR [FETCHARGS] siliar change apply to eprobe and uprobe. V1: https://lore.kernel.org/lkml/1651397651-30454-1-git-send-email-quic_linyyuan@quicinc.com/T/#m33b0665941d9caeeb118afa84db4016321cea9a6 V2: fix remove comment in V1 patch1, remove v1 patch2 as it is NACK. v3: (v2 link: https://lore.kernel.org/lkml/1653795294-19764-1-git-send-email-quic_linyyuan@quicinc.com/) add selftest cases for kprobe and eprobe event, remove macro used in v1,v2, change location to generate eprobe event name. Linyu Yuan (3): tracing: eprobe: remove duplicate is_good_name() operation tracing: auto generate event name when create a group of events selftests/ftrace: add test case for GRP/ only input Documentation/trace/kprobetrace.rst | 8 +++---- Documentation/trace/uprobetracer.rst | 8 +++---- kernel/trace/trace.c | 8 +++---- kernel/trace/trace_dynevent.c | 2 +- kernel/trace/trace_eprobe.c | 25 +++++++++++----------- kernel/trace/trace_kprobe.c | 16 ++++++++------ kernel/trace/trace_probe.c | 6 ++++++ kernel/trace/trace_uprobe.c | 12 +++++++---- .../ftrace/test.d/dynevent/add_remove_eprobe.tc | 7 +++++- .../ftrace/test.d/dynevent/add_remove_kprobe.tc | 7 +++++- 10 files changed, 61 insertions(+), 38 deletions(-) -- 2.7.4