Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp2462386ybv; Fri, 21 Feb 2020 16:23:45 -0800 (PST) X-Google-Smtp-Source: APXvYqzw1P65QwlxVmEF8Gv3fwWB/tktseCyRngMUTay0MDX7iboWGuKu1GnFiUCaR9Zl7RJvJbU X-Received: by 2002:a9d:7083:: with SMTP id l3mr29187292otj.193.1582331025874; Fri, 21 Feb 2020 16:23:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582331025; cv=none; d=google.com; s=arc-20160816; b=Dqp7U0P4bumynL5yX8lev6aBbYLglNnLELdwfvVhdOXK3fwKd1mEXNToBFpqeAHKzF Scxh/gMoravh4I0ptdRRnYdJ13zkQ6qUYeFj2Odrl1NFNQ/i+ZpCQX6ktLoWdSq9WxnN GcpHHicFsxyy9zK332a4AKCJc410BXSP0V0vCRBj6kKTws1jjgeMzUZeCFsCXBC8km3E +U0nJyaAzpe1nKR89BGXiJ2dwMjjiNtUR/+Ap/Pcun/QI/w6Spor9CdOYrAgvFAqH+Gf vEarKCfXsdn74UW09rJWnTOj9jE095fVJaY+7GsijbmZRsL8lHvyoa8pFpnWwarOacMu 6H5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=tMn4uNyX4DHwkFKsRYMDtN/0H19zr5tB3atZuIwi0o4=; b=y3g2GOnjFxXk4d+hgF1BY0+iWVpoJkO9NfnUBm/B//nl+PJXlo2d+OPHB2JsCM82Nd 12nWcEGR5UOcBKRusrreL/zUvWC3Gn6c/AWT0Cyv16wF1f9hg/MjfqNfWjh8Ij3A9dte 1KrEBbuCUzbJTxlzgB3F2UiA3GhBHvbjo7AEbM+sz+2boUDY8pt5N0q6pmbLU29Y2e0L P+sK7AWyXlktM4P2YHb71JD3DqgVqG8f58DUvgbsxap77FrHBG2DLCYIgx3v+5170lLT MFo6Ivm9ftrSeXwWc6LBg6kxCO645mI5mAXk89v2jZ/dzEbyFN9l6wzlnK4MMJ8KIRnb kCLQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e7si2221190otr.183.2020.02.21.16.23.33; Fri, 21 Feb 2020 16:23:45 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726856AbgBVAXO (ORCPT + 99 others); Fri, 21 Feb 2020 19:23:14 -0500 Received: from mga07.intel.com ([134.134.136.100]:49830 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726205AbgBVAXN (ORCPT ); Fri, 21 Feb 2020 19:23:13 -0500 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 21 Feb 2020 16:23:13 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,470,1574150400"; d="scan'208";a="240484441" Received: from tassilo.jf.intel.com (HELO tassilo.localdomain) ([10.7.201.21]) by orsmga006.jf.intel.com with ESMTP; 21 Feb 2020 16:23:13 -0800 Received: by tassilo.localdomain (Postfix, from userid 1000) id 061013011C4; Fri, 21 Feb 2020 16:23:13 -0800 (PST) Date: Fri, 21 Feb 2020 16:23:12 -0800 From: Andi Kleen To: Jiri Olsa Cc: Arnaldo Carvalho de Melo , lkml , Ingo Molnar , Namhyung Kim , Alexander Shishkin , Peter Zijlstra , Michael Petlan , Ravi Bangoria , Kajol Jain , John Garry Subject: Re: [PATCH 2/4] perf expr: Move expr lexer to flex Message-ID: <20200222002312.GN160988@tassilo.jf.intel.com> References: <20200221231935.735145-1-jolsa@kernel.org> <20200221231935.735145-3-jolsa@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200221231935.735145-3-jolsa@kernel.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > +max { return MAX; } > +min { return MIN; } > +if { return IF; } > +else { return ELSE; } > +#smt_on { return SMT_ON; } > +{number} { return value(yyscanner, 10); } > +{symbol} { return str(yyscanner, ID); } > +"|" { return '|'; } > +"^" { return '^'; } > +"&" { return '&'; } > +"-" { return '-'; } > +"+" { return '+'; } > +"*" { return '*'; } > +"/" { return '/'; } > +"%" { return '%'; } > +"(" { return '('; } > +")" { return ')'; } > +"," { return ','; } Didn't think there was a comma, but ok. Looks reasonable to me. -Andi