Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp2181593ybv; Mon, 24 Feb 2020 00:30:54 -0800 (PST) X-Google-Smtp-Source: APXvYqxbT2TxpQNCxHHJID6Os4M/3L4XSO0B3OUKR8AWnJ3Ao2j8WhqemlNAX+EWCi1n2nnU4WXO X-Received: by 2002:a9d:6ac2:: with SMTP id m2mr39606232otq.191.1582533053905; Mon, 24 Feb 2020 00:30:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582533053; cv=none; d=google.com; s=arc-20160816; b=tMJsS1+4o84vNs0DeAW8ZivwFZok2vIE81BF2pAMi84n289E9eVrnC+mkHIdUel7K6 mxQlX+tp/oiNp3lqamnPHp6GRCOqU0Wpyp+25VaVnJS7qlZ6POB+JSADJtAXezY+cmyJ WasiF4vXTg4xNmI9kxjr5u+oP5CeNQTlJVw/HHxn3KcdtmxVc1SzYlIbvWUG6liVji6k NPXpmxh5jkA6XJd3+VDEWpq4g3Fxj3FGN1YN7gRlTJmxC+wANTfDB1w/QW48FryRMHqp llZNSxOo12oiKkneWfqPmQhobjWeczqmaTlopoAeghC+bb8bwh/Rd7VDxAFWRjXGRu2b lEHw== 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 :dkim-signature; bh=DPoMszNHUoXAHQiBb1rQHz8L7fumCgYwDlek9a1RB/I=; b=pQd9wr+yfP2cGaBkAjiafZ1lL/nwiPQABz61pd1FEWb1k67mW8FA16k1CYn9GCaadV YAvXYSyr9v6lNEsAsbsRPaOG7JdlCspoB/LPK5hzH3Z5cTXPcCBKml5QHTPptW3Pv2wW kIe6ih3jYQEf7QGa2socn8sZeX6ZkMUs1kmd0czjn5AwU3i08aM1MZ8y8je6HKeWXBlx 5CoaYjz8S6gQ+eT59L00NhYzjUci91HaDsHK2bCKoTfZbFpC87Cjp/q+zb9Tupmoid5m EBySNIUGtLq0eVQ3tiAhsaCaWRZ8bDM2Mi1W7/3Lvcny8mqa5zVupza/QaVk/2K3C1jn 8WHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="fDdq/60h"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q9si4875494oif.92.2020.02.24.00.30.29; Mon, 24 Feb 2020 00:30:53 -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; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="fDdq/60h"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727249AbgBXIaV (ORCPT + 99 others); Mon, 24 Feb 2020 03:30:21 -0500 Received: from us-smtp-2.mimecast.com ([205.139.110.61]:41091 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726628AbgBXIaU (ORCPT ); Mon, 24 Feb 2020 03:30:20 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1582533019; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=DPoMszNHUoXAHQiBb1rQHz8L7fumCgYwDlek9a1RB/I=; b=fDdq/60hWSIGzsRDi3/UBsuBjNclW+kz6cfNd+aWO6ML+ObkoDpKeVvGzPXgY85gwj3Q56 wi/rccbQzaogWzLwhMcdEqpGcHCK6iQUsVjwwl3tfMYFJSRTsCxUpqmMoqA4tB24bCTTsn d+Lca7dOBE1YoOSPiHcChQRfqexIHo8= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-174-DhTbfAZKPwWkOyRQsHKyUA-1; Mon, 24 Feb 2020 03:30:15 -0500 X-MC-Unique: DhTbfAZKPwWkOyRQsHKyUA-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id A922F13FD; Mon, 24 Feb 2020 08:30:13 +0000 (UTC) Received: from krava (ovpn-205-68.brq.redhat.com [10.40.205.68]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 00BA05C241; Mon, 24 Feb 2020 08:30:06 +0000 (UTC) Date: Mon, 24 Feb 2020 09:30:03 +0100 From: Jiri Olsa To: Andi Kleen Cc: Jiri Olsa , 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: <20200224083003.GC16664@krava> References: <20200221231935.735145-1-jolsa@kernel.org> <20200221231935.735145-3-jolsa@kernel.org> <20200222002312.GN160988@tassilo.jf.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200222002312.GN160988@tassilo.jf.intel.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Feb 21, 2020 at 04:23:12PM -0800, Andi Kleen wrote: > > +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. actually it's for the min/max functions arguments separation I posted v2 jirka > > Looks reasonable to me. > > -Andi >