Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp4607147img; Tue, 26 Mar 2019 12:49:43 -0700 (PDT) X-Google-Smtp-Source: APXvYqwOD+K/BwZHURHK31/u1O5xPjPc8Bo08NJNXK3ecdVThmnm9/M24CpBng8SM/yuLVlXM6da X-Received: by 2002:a65:64c3:: with SMTP id t3mr30360350pgv.14.1553629783510; Tue, 26 Mar 2019 12:49:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553629783; cv=none; d=google.com; s=arc-20160816; b=Egj/sB2XcnEPnTiH/PVb/s3uB4FdT2GroCLRduYUU9h7uHLFJ72nJpn6btdmaEXlHw dwjc4QOe7Y6sds3ovd5Ikt0e4aysQ3aad539aFVpfHO8K2ynuUfZrl25R2a7tajQelmO k6KEZzofKwxsy8xoYmafeF9ZhEve0U3yiItmd8/iyRXn3cAdTfXX1DRjmU+CmcBbleLY wPMov4AlZi0fudnNw91+kn138CnX6xndcJGEyIIvQ7DYum3G2CeH3H+C658ds87dhEn+ n1qTYIIh6A238WFIJgyAeB6Lf1PplO36kA29Vbf/x1WuC3p910Eua+FbJzFBTGe+82oR Z+nA== 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:subject:cc:to:from:date; bh=/ho+IX7OmVZr3gNfKfQ05xyEV+uver3gs825m3VH/CQ=; b=L8Dz8IMSvHphK5Xu7QsTe28LCGjulIfsQ9H6n/SRtaZ2+fI1ezaV8BHQ+FLQIlpaJr jWXtRlHz8RoG/DGMAZwXfdiqreDNdGFrigBiVK3zMy4jLVHTV6rdi5nBwZLPpW3IDa7R hhRjndr79znHTYLpRoasbUeU3rDrgth9dyNKwFy0tpneiSFeH8Eo2J4y8MwHS5ffSCA7 tNLAY22u2Z2qR4GAcnC1Wxb7UviIe9t3bOGv0PwDmEhSMX3xGRU/B9BWkt48HAvh2uki qB3KOXa1DTqMKh/3XroblHpVSmbssDTkXFQTopylvM7zJbodvYPJl7L45gvZA6ycyAj8 tE3w== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z70si3779829pgd.86.2019.03.26.12.49.28; Tue, 26 Mar 2019 12:49:43 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732201AbfCZTsu (ORCPT + 99 others); Tue, 26 Mar 2019 15:48:50 -0400 Received: from mail.kernel.org ([198.145.29.99]:58886 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727492AbfCZTsu (ORCPT ); Tue, 26 Mar 2019 15:48:50 -0400 Received: from gandalf.local.home (cpe-66-24-58-225.stny.res.rr.com [66.24.58.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 45C3620823; Tue, 26 Mar 2019 19:48:49 +0000 (UTC) Date: Tue, 26 Mar 2019 15:48:47 -0400 From: Steven Rostedt To: Tzvetomir Stoyanov Cc: linux-trace-devel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/8] tools/lib/traceevent: Add counter to track parsing failures Message-ID: <20190326154847.4c1062b9@gandalf.local.home> In-Reply-To: <20190326154328.28718-3-tstoyanov@vmware.com> References: <20190326154328.28718-1-tstoyanov@vmware.com> <20190326154328.28718-3-tstoyanov@vmware.com> X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 26 Mar 2019 17:43:22 +0200 Tzvetomir Stoyanov wrote: > This patch adds a parsing failures counter to struct tep_handle. The counter can > be used to track failures on parsing event format files. It is updated > automatically by tep_parse_event(), when failure is detected. The patch also > adds two new APIs for accessing the counter: > tep_get_parsing_failures() - returns the current value of the counter. > tep_clear_parsing_failures() - clears the counter. > I think we can do the same thing here as we did test_filters. I don't think we really need to put this into the tep interface. Let's see if we can move this into trace-cmd itself and have it just keep track of when parsing failed. I mean, trace-cmd is just using the tep structure as place to store this variable. -- Steve