Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp4704900pxt; Wed, 11 Aug 2021 12:04:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJytVJkHfomXGNRx/bhjBf9pbTbiSjvlgVFig3e0D4OyIOqRvR7XTyGTZ5BAhyF7bh/WiHNs X-Received: by 2002:a05:6638:3492:: with SMTP id t18mr314495jal.19.1628708670391; Wed, 11 Aug 2021 12:04:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628708670; cv=none; d=google.com; s=arc-20160816; b=vglgQ0BrR214qJv3Qztsj+UPESjJ31bTJbcsNLOrvTjgFwGzI3SEeCmn13uXymCoDx COQoIRPY1W6MSQJ6lXtu28cNiPX8KzI7jqlGACUqLdIqKAr3+vDMkZLjsXaW3JOpoSxf 3/VqcEkqnHPizA54gnB3TDnKU+005NYX5KsTYADXdazOWJKY2vP/bgbf8xjg1iCK0ij4 9mF3L4sbU/TdMpJycwDy4qoBqDjLlDKSMI5SvZbcN+/OtooHx8lPNEK2vq6Ls/LzZhfU OC17v2lqRch5sGXxzyLlGTSZjVuOC8Isb+w8cUQhWqdwTTBrssomeBkKDNqIaaOEGtlm jlkg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=UHr9aZZV5D/scCUHm2khE6Id5TQ31CJeXVctNeTGVME=; b=eBgV6S6b1dCkshQRqYgvlvvLMC47rDtP4LlipMUiwqoEFxoAAuu0PkgmjzzRjMLslh IYHOuhhgmUxOSdazSaK2KQI8PH2dqEGrv3Ua8A8LIWKgQlhsC0MTSxg2VOF5SxNUEwEW F/PhREe0YCg3WpBHkp1XubF26WIiUIJj+49EZTtVtNi4Z3dpbjMZeanDDS8VNDUHsPXD AnUKE2IR3JfJu2nwpbn7V4EKOCvEfJtYiTPYAGPGki0JhwcZknpOFxxlckpGQ0eZ6NmF caPANwViKwZp4tAo6/goBX1QNdu1ul8EJ221rw95iJmenwZrJ1ulU6rCZDMtnuD2avE2 TXig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=rYocvPLS; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 13si246485ilt.16.2021.08.11.12.04.17; Wed, 11 Aug 2021 12:04:30 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=rYocvPLS; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231350AbhHKTDX (ORCPT + 99 others); Wed, 11 Aug 2021 15:03:23 -0400 Received: from mail.kernel.org ([198.145.29.99]:60990 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229946AbhHKTDW (ORCPT ); Wed, 11 Aug 2021 15:03:22 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 8BB6F61077; Wed, 11 Aug 2021 19:02:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1628708578; bh=STUcYPXnkJiThMTmp6iJIfCxEefd9IOUulaqLIj3Dyg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=rYocvPLSfGLglCzJSWA3cskjMhkpjD6hLZEErYf8A1IjPH32/g11+ZolGJpctCVD3 77ask/NRROrFZc0hXstQydfngzJbHZxF0hxR47y6Ol+zOxFH9s4xd8uHR5ZJvyHLEc hDg+oShmRPyd2oXY4dC8yUUsMsqcnVcNI08n/wcBwmzyq21EPxkzgKf415NKsPjXlZ H6OLNGY6D+PlQGxXvx25w3uu1vbBLhE07Agi4t/xO9zgH1DNoBVD3yEL5T5FJO/PEg FaZUcC+0O+QVMzZKNna78gdc2YQA+h778Bt9PK3U/UFP08YjHsHENb80Tuo4+LNah5 Sk3PdYoI+QkAA== Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id 87F6E403F2; Wed, 11 Aug 2021 16:02:53 -0300 (-03) Date: Wed, 11 Aug 2021 16:02:53 -0300 From: Arnaldo Carvalho de Melo To: Riccardo Mancini Cc: Ian Rogers , Namhyung Kim , Peter Zijlstra , Ingo Molnar , Mark Rutland , Jiri Olsa , linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org Subject: Re: [PATCH] perf test: make --skip work on shell tests Message-ID: References: <20210811180625.160944-1-rickyman7@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Url: http://acmel.wordpress.com Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Wed, Aug 11, 2021 at 03:40:40PM -0300, Arnaldo Carvalho de Melo escreveu: > Em Wed, Aug 11, 2021 at 08:06:26PM +0200, Riccardo Mancini escreveu: > > perf-test has the option --skip to provide a list of tests to skip. > > However, this option does not work with shell scripts. > > > > This patch passes the skiplist to run_shell_tests, so that also shell > > scripts could be skipped using --skip. > > In such cases please provide an example of the usage you're fixing, what > was it that you tried that didn't work and that now works? > > Its obviously a fix, so I'm applying it. So I added this to the commit log: Committer tests: Tests 79 onwards are shell tests: Before: # perf test --skip 1,2,81,82,84,88,90 1: vmlinux symtab matches kallsyms : Skip (user override) 2: Detect openat syscall event : Skip (user override) 3: Detect openat syscall event on all cpus : Ok 4: Read samples using the mmap interface : Ok 5: Test data source output : Ok 78: x86 Sample parsing : Ok 79: build id cache operations : Ok 80: daemon operations : Ok 81: perf pipe recording and injection test : Ok 82: Add vfs_getname probe to get syscall args filenames : FAILED! 83: probe libc's inet_pton & backtrace it with ping : Ok 84: Use vfs_getname probe to get syscall args filenames : FAILED! 85: Zstd perf.data compression/decompression : Ok 86: perf stat csv summary test : Ok 87: perf stat metrics (shadow stat) test : Ok 88: perf stat --bpf-counters test : Ok 89: Check Arm CoreSight trace data recording and synthesized samples: Skip 90: Check open filename arg using perf trace + vfs_getname : FAILED! # After: # perf test --skip 1,2,81,82,84,88,90 1: vmlinux symtab matches kallsyms : Skip (user override) 2: Detect openat syscall event : Skip (user override) 3: Detect openat syscall event on all cpus : Ok 4: Read samples using the mmap interface : Ok 5: Test data source output : Ok 78: x86 Sample parsing : Ok 79: build id cache operations : Ok 80: daemon operations : Ok 81: perf pipe recording and injection test : Skip (user override) 82: Add vfs_getname probe to get syscall args filenames : Skip (user override) 83: probe libc's inet_pton & backtrace it with ping : Ok 84: Use vfs_getname probe to get syscall args filenames : Skip (user override) 85: Zstd perf.data compression/decompression : Ok 86: perf stat csv summary test : Ok 87: perf stat metrics (shadow stat) test : Ok 88: perf stat --bpf-counters test : Skip (user override) 89: Check Arm CoreSight trace data recording and synthesized samples: Skip 90: Check open filename arg using perf trace + vfs_getname : Skip (user override) # Signed-off-by: Riccardo Mancini Tested-by: Arnaldo Carvalho de Melo