Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1561442pxb; Wed, 20 Oct 2021 07:30:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwqMZYdk99LnBraES4gmZ4c4e7CPBRtBLhjBmfTz1Go3MLMez63P1UiuGk9Es8hKDw+UED2 X-Received: by 2002:a50:9b4b:: with SMTP id a11mr403316edj.316.1634740225944; Wed, 20 Oct 2021 07:30:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634740225; cv=none; d=google.com; s=arc-20160816; b=wvEDOPguHUngqG9niP0XHVnb4GqcRS+dUP+39BgvcliyIDxxEKqNEPXOb7YqrMQ2kL td6ailw3snWbLp0EMFJvnu4EtmJxbVzTVAOmdsoUYupGbl3ModpVAeWHmHtwSeeVQeE7 NtzGoAalcBcJaGZFjv4lQ+08HhsrmlS1CcvxSFRHdq4D+O1/CAj5UiRN2gBBMcVYAlf4 j3cz/yfmi519MQfXs41m1jtgre1d5nCK6m5Ojv9GIiEnv/YH2TA0qWASgNCql0yIXV8X BJ2NA033BxuV/g8E44EdiLOIR/66oDE8EXLxqqjeBn7t2qepWpVPu6DTHvKPLzsaGKcp Yo8w== 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 :references:in-reply-to:message-id:subject:cc:to:from:date; bh=3uwhQ353V7w0249LXdMPhJxbdwGQh680k+dF7k/kiL0=; b=EI2LE8tRyeARNM9Pf1oUbYv0bLiNvQmvq3X9s+1AOlgY4KWAaUTlgohiNOM1m4Imxo nyf9W8rQso0KHNeClqeiJv7SXQipsYlyhNCbU+uEN8qOZCzfPwU8nwJrGrKjIvdoZyZJ KonTVgdvpwYV8IsahQgCRo7MIIskXbCHX5QW+O2B3SRHILHsaj9Ba4DlLn8repc+L5Mi Wn9a2yZpjVkuXsc+iXPotGiM3AMrj9EPA3ZceRSGWNdZxbZS4A+6tCCNkwhvqT84ooj1 G7SCndIG9QFtcMhIEGXmGFp9GlvJmXhs4Tl03kZ25yrzO0I2v35mpdejeSNzXSgNWo4J CczQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q1si3065858ejr.43.2021.10.20.07.30.00; Wed, 20 Oct 2021 07:30:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229952AbhJTOa0 (ORCPT + 99 others); Wed, 20 Oct 2021 10:30:26 -0400 Received: from mail.kernel.org ([198.145.29.99]:59748 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229570AbhJTOaZ (ORCPT ); Wed, 20 Oct 2021 10:30:25 -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 988AD611B0; Wed, 20 Oct 2021 14:28:09 +0000 (UTC) Date: Wed, 20 Oct 2021 10:28:07 -0400 From: Steven Rostedt To: Kalesh Singh Cc: surenb@google.com, hridya@google.com, namhyung@kernel.org, kernel-team@android.com, Jonathan Corbet , Ingo Molnar , Shuah Khan , Masami Hiramatsu , Tom Zanussi , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org Subject: Re: [PATCH v2 3/5] tracing: Fix operator precedence for hist triggers expression Message-ID: <20211020102807.0b07bc81@gandalf.local.home> In-Reply-To: <20211020013153.4106001-4-kaleshsingh@google.com> References: <20211020013153.4106001-1-kaleshsingh@google.com> <20211020013153.4106001-4-kaleshsingh@google.com> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 19 Oct 2021 18:31:40 -0700 Kalesh Singh wrote: > + minus_op = strrchr(str, '-'); > + if (minus_op) { > + /* Unfortunately, the modifier ".sym-offset" can confuse things. */ > + if (minus_op - str >= 4 && !strncmp(minus_op - 4, ".sym-offset", 11)) > + goto out; > I was thinking about this, and perhaps we can add this later, but we could just replace all ".sym-offset" with ".symXoffset" after receiving it from the user. Then it won't be an issue during prasing. -- Steve