Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp6837000rdb; Fri, 15 Dec 2023 09:29:53 -0800 (PST) X-Google-Smtp-Source: AGHT+IF7YB4eiV1Ro7RbSch3w1+YL1kLeiUfm6fk512XnkrTxpWxDrzdc78oahuS7YoLHbZkMUZW X-Received: by 2002:a05:6a20:6d88:b0:18f:97c:9274 with SMTP id gl8-20020a056a206d8800b0018f097c9274mr6378341pzb.89.1702661392998; Fri, 15 Dec 2023 09:29:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702661392; cv=none; d=google.com; s=arc-20160816; b=MGL/x4au1M6KIv0Qqujy9HI9Y77bfzK6Rnt2/T9o9mGSk0SBspj4CCgdiZo6Ww6oMu bh2xviA+gw4/XY1nXAX+n2V4QtOSy2nMArSRGlxzI/Tn0nkf/KL4DArBUTQAXASYWXXi fXxTjuDpaF3/avcZa8SebKywUpf1wTZAPlm2s3CPegjC6wreyvAAK3QX9t7Y9h5yMAsE WcwjddUyjm7oW0HfXKxM40YItnWm6fI8g/dy1uaNDbbo7mKcP7LNwMUW3gJDUEDjvE0Y 0V5CqHV/WBxrbHnjBtzXqJntcoPXMYksYlSfunWzPepkzI8K7Gf37Xbk4sWGj2O2OKoV OPeQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=MQVu4WDwCBO0DkB6N1oS1aYC8l5PN3Yva43xDQfE2Oo=; fh=6+dHPNKjdDTOa3r4J0IsgUv5o+9uG7i49KP+T0YP/bs=; b=wG4oHEOzxila2t/5aoC2AprplaC4h3PWZtmzbpmJZwxvf07TMIUhyL1nMSRuGsUGME G3uXVuL3ZarCao8l/Pr8zXHC+rdL91qmnUsQmL4oPC+ekhxM79LHbbiadQ/6Y5X5JOjz 0l/QNtPOBNeGRPu5agVKoLr64qo1B+42Yn13Tep1nVXtEwIEjl5JDoRJAdCiUpBLP/A7 cuDy0Z6Zz0dRtw/Yts8o7ENpQfqBq9XsKlJtotmFl+bNrDmenDebNujTH4gIclIS0eQU N+1pf8PmrEZWaSB/pNmG5zN3OAHPqQEh+IXuyvELTdYDmQMheHrIwZWVMg7/Vm/A065t TwBg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@efficios.com header.s=smtpout1 header.b=TDeInjso; spf=pass (google.com: domain of linux-kernel+bounces-1417-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-1417-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=efficios.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id q27-20020a63f95b000000b005be344b48dasi13220203pgk.805.2023.12.15.09.29.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Dec 2023 09:29:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-1417-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@efficios.com header.s=smtpout1 header.b=TDeInjso; spf=pass (google.com: domain of linux-kernel+bounces-1417-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-1417-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=efficios.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id A259C287340 for ; Fri, 15 Dec 2023 17:29:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8A93947F44; Fri, 15 Dec 2023 17:24:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=efficios.com header.i=@efficios.com header.b="TDeInjso" X-Original-To: linux-kernel@vger.kernel.org Received: from smtpout.efficios.com (smtpout.efficios.com [167.114.26.122]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3F0D53FB1D; Fri, 15 Dec 2023 17:24:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=efficios.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=efficios.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=efficios.com; s=smtpout1; t=1702661055; bh=FZ8rwK+5wMFJ7/Xt3LcWaD2Ordyss5Gn7grTwtsgb2A=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=TDeInjsoISIC24ItyMMpdPo10dqpCMwc9K9tauatN6aBd7CvQzAUD/6LkrBTiikZu dkCLDPcN/4x3YvWRVa2pTHpKDeW3kiLp0Vl40brNw6szVuScXNUvtaoU3ZadIYejNx 2krmdcroELnMC/mwgunIM6duJd2nXXXctah9lc11kFxieM8R29/FtAZn32QU44Umon X3Xj9bBrNLsSzAuAFEyUT2iz7VGNXNBa8q/SXbLQfFkcLBX1cuqWgPTrBsR6/4VvXX PxGBqCnoIqh/5NHcnxjpK3OkMAGYMcnPkMlNOqfi3tn84bb9r3TVGT748TiGMp8zAW pTnDgVQWyfgtA== Received: from [172.16.0.134] (192-222-143-198.qc.cable.ebox.net [192.222.143.198]) by smtpout.efficios.com (Postfix) with ESMTPSA id 4SsGKp6VLvzGhD; Fri, 15 Dec 2023 12:24:14 -0500 (EST) Message-ID: Date: Fri, 15 Dec 2023 12:24:14 -0500 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] tracing: Add disable-filter-buf option Content-Language: en-US To: Steven Rostedt Cc: LKML , Linux trace kernel , Masami Hiramatsu , Mark Rutland References: <20231215102633.7a24cb77@rorschach.local.home> <21936075-3858-446a-9391-a38e8d8968e7@efficios.com> <20231215120417.567d5ea4@rorschach.local.home> From: Mathieu Desnoyers In-Reply-To: <20231215120417.567d5ea4@rorschach.local.home> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 2023-12-15 12:04, Steven Rostedt wrote: > On Fri, 15 Dec 2023 10:53:39 -0500 > Mathieu Desnoyers wrote: [...] >> >> So rather than stacking tons of "on/off" switches for filter >> features, how about you let users express the mechanism they >> want to use for filtering with a string instead ? e.g. >> >> filter-method="temp-buffer" >> filter-method="ring-buffer" >> filter-method="input-arguments" > > If I add other ways to filter, it will be a separate file to control > that, but all options are on/off switches. Even if I add other > functionality to the way buffers are created, this will still have the > same functionality to turn the entire thing on or off. I'll be clearer then: I think this is a bad ABI. In your reply, you justify this bad ABI by implementation motivations. I don't care about the implementation, I care about the ABI, and I feel that your reply is not addressing my concern at all. Moreover, double-negative boolean options (disable-X=false) are confusing. Thanks, Mathieu -- Mathieu Desnoyers EfficiOS Inc. https://www.efficios.com