Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp2609978ioo; Sat, 28 May 2022 20:35:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzddZGupO7+4EQMywmFiT50uKnmjhLFcjWrY9nZgujQ0cbMr5LT4y2anrHiTzIwUNbOjkoj X-Received: by 2002:a05:6a02:19b:b0:3fa:3e63:15fb with SMTP id bj27-20020a056a02019b00b003fa3e6315fbmr29290983pgb.129.1653795316519; Sat, 28 May 2022 20:35:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653795316; cv=none; d=google.com; s=arc-20160816; b=qk5KGQUfETu4pDQyQrarVykF3PwFXu4vefl3rw+KfuMVQRXukVY8ZM+IpIM3M93dwH mfK2ioVP2OeR3sg2JobP6mGY7SIYb58G4lI3DzXD3mH/kMKLAW3qm1PzRGj5J4bfP7pD 9VHCf65lYABwKBKxf4DqGSimVdIE1VvKuzabKlenVUFZ84mAx9EDMLPbNppGP5G9DNTI hkIkNOb5gJYi4NnEZSJCim/+ugSuYGo80GQTuCLVwW+UyHpojQkL6eJMlAUJ4HaHm1VO sjDsCQdFata8iux5W2wy6e0aIHudQPiB3RJJ0POgaVU47V9GJPDInzZ4o0iR8H8boYAu q0XA== 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=dTXXsL+kAGePyp6L3JcHTk8H+hDdvROXrEUyJWDGZ70=; b=IoFn6LMWD0mLL89iW7qFuNIQRCZ8gvqSkpH3oM3iOPJMJZpYrOf5mRVQvJX+ollRSu uHQGPOE0ZnI2zv1YhLaZjhu4I2O7APXRaawZwTMRtYj0jXLYVeQYyytKXjqsfwSPStAa cdeNkEr0u73qS523GXPYtohynh61bqLExeSIAC2PLCi/6hsNCWsvgUpoPw/yVL+5UiZM 1FjMrlCww6QjV+phnhUQ2R0jUovjCYXF4S/mQulo00FEJUpsV7efZjpH8J+ycFKdrtXl d+cUeoLl5V4wt37QjT/HVNWnoFKUR7Qt+xGvFwiWwJ+RCLG9xUFMHmNujB8EsxIuQTau H3kA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=lPcD0yBV; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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. [23.128.96.19]) by mx.google.com with ESMTPS id g8-20020a056a001a0800b0050a96a4dd5asi12000164pfv.48.2022.05.28.20.35.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 28 May 2022 20:35:16 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=lPcD0yBV; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 692B85714A; Sat, 28 May 2022 20:35:12 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230273AbiE2DfF (ORCPT + 99 others); Sat, 28 May 2022 23:35:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54402 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230265AbiE2DfE (ORCPT ); Sat, 28 May 2022 23:35:04 -0400 Received: from alexa-out-sd-02.qualcomm.com (alexa-out-sd-02.qualcomm.com [199.106.114.39]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D78D8E94 for ; Sat, 28 May 2022 20:35:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1653795302; x=1685331302; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=dTXXsL+kAGePyp6L3JcHTk8H+hDdvROXrEUyJWDGZ70=; b=lPcD0yBVeJX+ZP6klUju2Rzhl3W4nJRmO3NCp+iaEm71a0aCIDvXxGfF qODpwKVG1FwIApFpjsVsGOOAWsnRc2YGYipk7f128C8OVj6P98s67sSm2 30jDTmU2Z5qAhAIbhnQB289kSu6/K2o3Cx6njNs0QYt8eEisyLM5IaPaR c=; Received: from unknown (HELO ironmsg05-sd.qualcomm.com) ([10.53.140.145]) by alexa-out-sd-02.qualcomm.com with ESMTP; 28 May 2022 20:35:02 -0700 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg05-sd.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 May 2022 20:35:02 -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; Sat, 28 May 2022 20:35:01 -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; Sat, 28 May 2022 20:34:59 -0700 From: Linyu Yuan To: Steven Rostedt , Masami Hiramatsu , Tom Zanussi , Ingo Molnar CC: , Linyu Yuan Subject: [PATCH v2 0/2] tracing/probes: allow no event name input when create group Date: Sun, 29 May 2022 11:34:52 +0800 Message-ID: <1653795294-19764-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. Linyu Yuan (2): tracing: auto generate event name when create a group of events tracing: eprobe: remove duplicate is_good_name() operation Documentation/trace/kprobetrace.rst | 8 ++++---- Documentation/trace/uprobetracer.rst | 8 ++++---- kernel/trace/trace_dynevent.c | 2 +- kernel/trace/trace_eprobe.c | 24 ++++++++++++------------ kernel/trace/trace_kprobe.c | 19 ++++++++++++------- kernel/trace/trace_probe.c | 9 ++++++++- kernel/trace/trace_probe.h | 4 ++++ kernel/trace/trace_uprobe.c | 15 ++++++++++----- 8 files changed, 55 insertions(+), 34 deletions(-) -- 2.7.4