Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp5372196img; Wed, 27 Mar 2019 07:21:05 -0700 (PDT) X-Google-Smtp-Source: APXvYqzP2tVVyhsTIels0A3Ak+rrlYVx6VIwhqeg5MYwzBvRNjJYryuZ9PPzM+OBQG0CrIsrwwgJ X-Received: by 2002:aa7:9090:: with SMTP id i16mr34453721pfa.85.1553696465102; Wed, 27 Mar 2019 07:21:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553696465; cv=none; d=google.com; s=arc-20160816; b=e1WEYZNjnE4HQwy7hx0IXUVYLVBF1yYZezYouApJaNoLJHo7ojhCz+i94BducUv8Yb qAMv9Qp36LNwkWYbCU8hK0lP7aqJ5kFWnfdeVe4ijsVtO1fS8qSAMeej/1TvyHfFKTHn eime+/MGjC1M0smhjoHfBO/iILwaL8ewhj0PnRItw+G/ZeIiegc5bOPJHan+RDIvLNuO 2YTJ+k8H8DyNpgYOdj4VAGO7naCntgvARxBMQDQ10jueTufj3umKIvtOSb0j6TsOhKdK f+XnLjL/36Vm692o6TZLC0vq508u4HZXrPWUs8uSmyZK7leC7/dSp48cLsuUgdKv7iHZ f0UA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=11cyzFq84tsMvT1bpbG2nroSd0na2y9V+e3LG3tBwjw=; b=gkaFOVzdGK9bnvu7sBsg/3p6kgB9lT14rN1ZJja2LdTO+hkhz7A0wEWyxMHy4zAVqT 99PONkTENGY86Wn/Twvnl33ik/7ytglByohb0ZQp896tmKfi5PdpHB/tOUJbbvjU7zhN A2fpy8fZgRtw7sMGBIFJzqz3PgRpFGed+LVTVwPBxkDGKHG+1lfVbGFo+46R0kgh2RPb IcOfd+kPGLc9xZIaLvuNOYvn/0kGAVPCFbQfrRmM3MkzUzZGPnHzIjOzNfPNCSDtuIpE 3EsZCc+BGXinelTH3AvKKDM+oRL/Ia75ug0AT6QAb88/1p0zTxdWrYcYgNXY0LBx3hZn 6TVA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=vmware.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i20si17771177pfd.204.2019.03.27.07.20.49; Wed, 27 Mar 2019 07:21:05 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=vmware.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730308AbfC0OT5 (ORCPT + 99 others); Wed, 27 Mar 2019 10:19:57 -0400 Received: from mail-wm1-f68.google.com ([209.85.128.68]:36678 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729811AbfC0OTz (ORCPT ); Wed, 27 Mar 2019 10:19:55 -0400 Received: by mail-wm1-f68.google.com with SMTP id h18so271389wml.1; Wed, 27 Mar 2019 07:19:53 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=11cyzFq84tsMvT1bpbG2nroSd0na2y9V+e3LG3tBwjw=; b=nN5k4rLLYAr6j2Ce3NzWfQPCKZysnRxKPcMnGNCLWCJhFjjMrarQCCExJOntCdPqpf y1JoH4XtfnI1wS5hm3VANauLKV8aRg0TBuieYZrhqUxbrgjvIv22shnCTy/PTCnwqDsF dda2tw2UCwmD6/SoWLJdZij6VDq8tB0pi1QmfbDJE9fdQUDNEsS6QTHOwhfljm3/faNn npFuv7ddP8QhVu7hFCum1abB2ePZfj3zST+TdzvKEdhUYENwcW2V750KsXlM+AdXCzQA +C8FluS+SncBPKwIGufZviZ96ITSwfebV2APBGCR53BBBPD1POtY+RZb919IQMTtrbL/ kANg== X-Gm-Message-State: APjAAAXnT4W/QcHNYQlI/0Y4BhW5bXBCp/Ncqe5iK1me+K/94TBBalts GMq6EX6ELiAycwpC++uAuxM= X-Received: by 2002:a7b:cc19:: with SMTP id f25mr12612505wmh.8.1553696393033; Wed, 27 Mar 2019 07:19:53 -0700 (PDT) Received: from oberon.eng.vmware.com ([146.247.46.5]) by smtp.gmail.com with ESMTPSA id t69sm205022wmt.16.2019.03.27.07.19.52 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 27 Mar 2019 07:19:52 -0700 (PDT) From: Tzvetomir Stoyanov To: rostedt@goodmis.org Cc: linux-trace-devel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 4/5] tools/perf,tools/lib/traceevent: Rename "pevent" member of struct tep_event_filter to "tep" Date: Wed, 27 Mar 2019 16:19:45 +0200 Message-Id: <20190327141946.4353-5-tstoyanov@vmware.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190327141946.4353-1-tstoyanov@vmware.com> References: <20190327141946.4353-1-tstoyanov@vmware.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch renames "pevent" member of the struct tep_event_filter to "tep". This makes the struct consistent with the chosen naming convention: tep (trace event parser), instead of the old pevent. Signed-off-by: Tzvetomir Stoyanov --- tools/lib/traceevent/event-parse.h | 2 +- tools/lib/traceevent/parse-filter.c | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/tools/lib/traceevent/event-parse.h b/tools/lib/traceevent/event-parse.h index 594f9c52ebf1..e3e4909bb866 100644 --- a/tools/lib/traceevent/event-parse.h +++ b/tools/lib/traceevent/event-parse.h @@ -716,7 +716,7 @@ struct tep_filter_type { #define TEP_FILTER_ERROR_BUFSZ 1024 struct tep_event_filter { - struct tep_handle *pevent; + struct tep_handle *tep; int filters; struct tep_filter_type *event_filters; char error_buffer[TEP_FILTER_ERROR_BUFSZ]; diff --git a/tools/lib/traceevent/parse-filter.c b/tools/lib/traceevent/parse-filter.c index 231e9cae5729..1d2f1343090d 100644 --- a/tools/lib/traceevent/parse-filter.c +++ b/tools/lib/traceevent/parse-filter.c @@ -154,7 +154,7 @@ add_filter_type(struct tep_event_filter *filter, int id) filter_type = &filter->event_filters[i]; filter_type->event_id = id; - filter_type->event = tep_find_event(filter->pevent, id); + filter_type->event = tep_find_event(filter->tep, id); filter_type->filter = NULL; filter->filters++; @@ -175,7 +175,7 @@ struct tep_event_filter *tep_filter_alloc(struct tep_handle *tep) return NULL; memset(filter, 0, sizeof(*filter)); - filter->pevent = tep; + filter->tep = tep; tep_ref(tep); return filter; @@ -1257,7 +1257,7 @@ static void filter_init_error_buf(struct tep_event_filter *filter) enum tep_errno tep_filter_add_filter_str(struct tep_event_filter *filter, const char *filter_str) { - struct tep_handle *pevent = filter->pevent; + struct tep_handle *pevent = filter->tep; struct event_list *event; struct event_list *events = NULL; const char *filter_start; @@ -1380,7 +1380,7 @@ int tep_filter_strerror(struct tep_event_filter *filter, enum tep_errno err, return 0; } - return tep_strerror(filter->pevent, err, buf, buflen); + return tep_strerror(filter->tep, err, buf, buflen); } /** @@ -1443,7 +1443,7 @@ void tep_filter_reset(struct tep_event_filter *filter) void tep_filter_free(struct tep_event_filter *filter) { - tep_unref(filter->pevent); + tep_unref(filter->tep); tep_filter_reset(filter); @@ -1465,7 +1465,7 @@ static int copy_filter_type(struct tep_event_filter *filter, /* Can't assume that the pevent's are the same */ sys = filter_type->event->system; name = filter_type->event->name; - event = tep_find_event_by_name(filter->pevent, sys, name); + event = tep_find_event_by_name(filter->tep, sys, name); if (!event) return -1; @@ -1875,7 +1875,7 @@ int tep_event_filtered(struct tep_event_filter *filter, int event_id) enum tep_errno tep_filter_match(struct tep_event_filter *filter, struct tep_record *record) { - struct tep_handle *pevent = filter->pevent; + struct tep_handle *pevent = filter->tep; struct tep_filter_type *filter_type; int event_id; int ret; -- 2.20.1