Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp15190imm; Thu, 28 Jun 2018 14:00:14 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeFKDtmbzokHpXrzBkLdyTE8uaGV1qGcUe7ClrMELF30tOU7NditsfmKqPAbIZP7b1MedRL X-Received: by 2002:a62:ff0c:: with SMTP id b12-v6mr11681243pfn.195.1530219614259; Thu, 28 Jun 2018 14:00:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530219614; cv=none; d=google.com; s=arc-20160816; b=lpiBYAYX+KVQHN8m5LEaUVR3ISaWLgCwBc8XPs1b73sakQs3MXeFAbjB2cgs1AcW6F G9pzkDSzwUXZbJM++v4NE2Sy7Z2LCbu5EgZlCr5Qx/IoraOxNQj2at8hupXQnPOCcgpW ZBahgWPlZR45Gqri9L8k2h33fnJaftkNQPYT4e8gw50Q8TOTdSbBU1GvE0zrCICC1Ina 1QJaAmVE7nFEQe43QKP47l/ickU4Px8qn478ZnffJgPWS4V7L39aL9t1HML+GFjwP2pm RhHH0tkuTDDblQWD3/qETaysQIULdD7axWD/3HgzUqWryV0S2/h3PZjGdaBCkrGPWrrK uxHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date :arc-authentication-results; bh=lJ99HEcd7SXaqCAHzpDLelQMKV5JsMB72gHgb10+WSk=; b=SrbCNBBvbAzgPg6sL1PbkzAYkdSkrc0KzEKm1jaeePAweRhCoGWIiQ3RyW8VZyK713 FIFCEuA5dYLHEoQEN/Ps5JCBtjZsH58/A8yYGd066eeq/GPNf0ka5xZcpHwcwPQtf3jf fKJHXHW1G7dKSCQ2CcluJB0VDi/DjdUxDB7l2fFAlwdv7IfHGjpsH/LJPizpMBYw83Bd sRIrg/+svpBxHs204PWK4JtFVu4vG7oRN+JXmxZLyTVH+5QYJEko7C3i1C5voSHAEqUU rDK4RL+ROtqmYIEGstS5c7taA3qv/a1TFxUoXWL0ckkNvkpSNtD7dmZAwGyP840Rc8iT x/pA== 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q11-v6si6364449pgp.95.2018.06.28.13.59.57; Thu, 28 Jun 2018 14:00:14 -0700 (PDT) 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933849AbeF1Ugn (ORCPT + 99 others); Thu, 28 Jun 2018 16:36:43 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:58384 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932078AbeF1Ugm (ORCPT ); Thu, 28 Jun 2018 16:36:42 -0400 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id B41094010216; Thu, 28 Jun 2018 20:36:41 +0000 (UTC) Received: from ovpn-200-28.brq.redhat.com (ovpn-200-28.brq.redhat.com [10.40.200.28]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 792FA111CD37; Thu, 28 Jun 2018 20:36:38 +0000 (UTC) Date: Thu, 28 Jun 2018 22:36:36 +0200 (CEST) From: Michael Petlan X-X-Sender: saruman@Enrico To: Arnaldo Carvalho de Melo cc: Kim Phillips , linux-kernel@vger.kernel.org, Peter Zijlstra , Ingo Molnar , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Thomas Richter , =?ISO-8859-15?Q?Hendrik_Br=FCckner?= , Sandipan Das Subject: Re: [PATCH 2/2] perf test shell: make perf inet_pton test more portable In-Reply-To: <20180621151800.GU20477@kernel.org> Message-ID: References: <20180619184952.dac6a3a1e39d3b1d255e7119@arm.com> <20180620134622.GM20477@kernel.org> <20180620194546.364cc109430ac51c5a288739@arm.com> <20180621141915.GS20477@kernel.org> <20180621151800.GU20477@kernel.org> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset=US-ASCII X-Scanned-By: MIMEDefang 2.78 on 10.11.54.3 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.6]); Thu, 28 Jun 2018 20:36:41 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.6]); Thu, 28 Jun 2018 20:36:41 +0000 (UTC) for IP:'10.11.54.3' DOMAIN:'int-mx03.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'mpetlan@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 21 Jun 2018, Arnaldo Carvalho de Melo wrote: > Em Thu, Jun 21, 2018 at 11:19:15AM -0300, Arnaldo Carvalho de Melo escreveu: >> Em Wed, Jun 20, 2018 at 07:45:46PM -0500, Kim Phillips escreveu: >>> On Wed, 20 Jun 2018 10:46:22 -0300 >>> Arnaldo Carvalho de Melo wrote: [...] > > Would be good if we had some utility that given a two files, one with > regexps, could tell if, line by line, those expressions matched, better, > one that is present in all these OSes... > I have struggled with this too [1], [2]. I use perl, not sure if it is all-distro-compliant, probably not, but anyway... To have: - regexps generic enough (e.g. to parse "casual perf-script output line") - regexps adjustable to concrete needs - regexps to be understandable as much as possible ---> I have $RE_SOMETHING, e.g. RE_LINE_REPORT_CONTENT, such as in [2], and some primitives which I make the more concrete regexps from, such as $RE_EVENT_ANY, $RE_PATH, etc. going into e.g.: REGEXP_STAT_LINE="^\s+$RE_NUMBER\s+$RE_EVENT_ANY\s*" - various utilities: - all output lines matched some regexp in the file - all regexps in the file were matched by something in the output - at least one of the patterns found in output - none of the patterns found in the output - ... ---> I had to write these and few more scripts to handle the parsing of perf output, as in [1], however it still is not ideal... [1] https://github.com/rfmvh/perftool-testsuite/tree/master/common [2] https://github.com/rfmvh/perftool-testsuite/blob/master/common/patterns.sh Cheers, Michael P.S. Could anyone try whether my suite would work on the dash (or any other "non-fedora" environment)? I haven't had problems with this so far, but of course I haven't tried many... > - Arnaldo > [...]