Received: by 2002:ac0:8845:0:0:0:0:0 with SMTP id g63csp1019217img; Thu, 28 Feb 2019 11:36:00 -0800 (PST) X-Google-Smtp-Source: APXvYqz8qAZ3LzKWVhsmcDnoshYqZZlIQ+l296sAET2ADmJAanfm4k4/XNpHSrc0ghca8OXWHYJE X-Received: by 2002:a62:1ace:: with SMTP id a197mr1310319pfa.78.1551382560289; Thu, 28 Feb 2019 11:36:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551382560; cv=none; d=google.com; s=arc-20160816; b=1IBKJpF/29Ea9gHfyH23kIXdlezq8bRJ39meHbUtiDhDS8ADamvIsluoV3qkBEDkAw oax++SLvYHyxZDLR7SDKzhTQu8NautyIeMwgTyinzialJlJ0XPcfddaTacD/qCtX+1uZ Q8M5M4gl1NZ32VjbvfRPFkIn+NhDe5zgaFctYXF1lWjZ19fcbun19T4kH5lnFVpzfkC6 HDpD7Y4udJSOS6wbLY47p39NW9mViEUiRNQFfrriM6/t13JjC9e15ubFasTQpc/JsRAm Ur3wYYrQMTpY/7KTqazc7HgXpeCj4V35jnpTeZ7BGQJbmgXaHj7Tz7Ma3PF/M0wsBJn2 u+LA== 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=AOMwIYfIt7Q5GtfCsXeZ7s8RwsY6LRy9ZxKVFDNm1mI=; b=GULQWHjta+SOU7hKh4N7qQguwjKNX2xq3MTYIzRs6EKkZKCUpsAUJGq3bVcOkGh+0I IQA9ZjRYoI9VLOa0ieTYbFfgd8UK2uuiUahNPIDhiQ8m6zSOhc0DIcQEhcOSKIcF3/A0 qwb8IxVkgsMYOqnfOv8JISfqdcHYbdy85ucaOdUWa6nObHQGkcF02Bwu27O+l82gpkuG N4F5qg82NoejkpSHOL1SYjAR0qCWp9TO9lqBvb+kc6lgL949hRLYaFPuQvja8CBptCez 9/0I3yVDSGrudPj/43a0dZnRbFw87oLpvQGs0nx0KB2K7P5/mUDIZiPipecKJTed2wVf KwSA== 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 bc4si18009736plb.119.2019.02.28.11.35.44; Thu, 28 Feb 2019 11:36:00 -0800 (PST) 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 S1731833AbfB1QTL (ORCPT + 99 others); Thu, 28 Feb 2019 11:19:11 -0500 Received: from mail.kernel.org ([198.145.29.99]:59100 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726269AbfB1QTK (ORCPT ); Thu, 28 Feb 2019 11:19:10 -0500 Received: from vmware.local.home (unknown [38.88.19.130]) (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 155852133D; Thu, 28 Feb 2019 16:19:10 +0000 (UTC) Date: Thu, 28 Feb 2019 11:19:08 -0500 From: Steven Rostedt To: Pavel Tikhomirov Cc: Ingo Molnar , Al Viro , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH] tracing: Fix event filters and triggers to handle negative numbers Message-ID: <20190228111908.3c949478@vmware.local.home> In-Reply-To: References: <20180823102534.7642-1-ptikhomirov@virtuozzo.com> <20180823204849.3b4aede3@vmware.local.home> X-Mailer: Claws Mail 3.15.1 (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 Thu, 28 Feb 2019 09:11:37 +0000 Pavel Tikhomirov wrote: > ping, looks like the patch was lost > > On 8/24/18 3:48 AM, Steven Rostedt wrote: > > On Thu, 23 Aug 2018 13:25:34 +0300 > > Pavel Tikhomirov wrote: > > > >> Then tracing syscall exit event it is extremely useful to filter exit > >> codes equal to some negative value, to react only to required errors. > >> But negative numbers does not work: > >> > >> [root@snorch sys_exit_read]# echo "ret == -1" > filter > >> bash: echo: write error: Invalid argument > >> [root@snorch sys_exit_read]# cat filter > >> ret == -1 > >> ^ > >> parse_error: Invalid value (did you forget quotes)? > > > > Thanks for the patch. I'll apply it and then start testing it! ?!? I remember applying this to my git queue (I don't reply like this before doing so). Not sure how it got lost. All I can think of is that it might have been added with commits that ended up failing the tests, and got reverted with that code :-/ I'm currently traveling. Hopefully I remember tomorrow to add this. Thanks for pointing this out, and I need to be a bit more careful when reverting failed commits :-p -- Steve