lkml.org 
[lkml]   [2021]   [Oct]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v2 3/5] tracing: Fix operator precedence for hist triggers expression
On Tue, 19 Oct 2021 18:31:40 -0700
Kalesh Singh <kaleshsingh@google.com> 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

\
 
 \ /
  Last update: 2021-10-20 16:29    [W:0.107 / U:0.608 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site