Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp991218pxu; Fri, 23 Oct 2020 19:53:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzy3VceaMCf6NBjfTwqvmQXB6TIvsUxIhKNpdTpa2m05eF4DMgJzInpshHy/xae8SpchWEG X-Received: by 2002:a50:b023:: with SMTP id i32mr5104355edd.357.1603507991556; Fri, 23 Oct 2020 19:53:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603507991; cv=none; d=google.com; s=arc-20160816; b=TI7fONKVDzd2btFizt9MAYR6dofOWABYBMUe2cUlfXU31F0ztSEG6IIPWHBXMAPPNf ubrPFYvkLVjF2jvp5A7SdfiHbtBs3xmXnNNu2LI5YSoI6Bukd1XMBAyRTZxOynChB5ex +fX5ssemmNxmoEeYrmfasGtmTYds8vmKSe4Uqfu96eK6TuoIDO2+x4kUx6MMDeKQHkPl hLlQ13phuTELzkJAxrTdBA0JaF3aC9VElddAwT4voDTmNsuh6z0dcStUv8aOMSo4z3dY D7uL9QdkoXZx1JEpPqlT5qhKjKoNjuwbTOl/lUIzS1B7scNWhuM8hgYB8huW0vO1Ajau Az+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=SkbS81ctJuGOeBTgrnXO0gkxl8szDNaWYLMAMtT4muA=; b=TvYQ5cOEjfxp5TgIn84oTvybI7S7qepdFxG12Wd13udFkN+7sbXi1U0tuQi7E3uk8/ TDp++odABW2cg88RWJLFw8YAYh25h7eRxgGFyNZhlcb48KFdj9WooBbasCRlua9ksivJ /9zTCENseuuR6CjcLx7MrofF83SkgcCEsZztx/WITQixUyCmo6tcDq61pLupBhKPX0sp L1OLuUl1fM1Ov0RuIeHBKUWyw2nGZYBrSeFZd6K5c+owyqx7PvWpvxoCVt85hbyuhY4z fMqTmzNXj/mjn1ZcB9rKlJ/SNjpsFT2GHajAXw+ikPRAifRJH45Kf1+n+vuBMQU05sxt LNjA== ARC-Authentication-Results: i=1; mx.google.com; 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 p21si2242039ejo.182.2020.10.23.19.52.48; Fri, 23 Oct 2020 19:53:11 -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; 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 S1759144AbgJXC0C (ORCPT + 99 others); Fri, 23 Oct 2020 22:26:02 -0400 Received: from mail-wm1-f67.google.com ([209.85.128.67]:50829 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755267AbgJXC0B (ORCPT ); Fri, 23 Oct 2020 22:26:01 -0400 Received: by mail-wm1-f67.google.com with SMTP id 13so4126843wmf.0 for ; Fri, 23 Oct 2020 19:26:01 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=SkbS81ctJuGOeBTgrnXO0gkxl8szDNaWYLMAMtT4muA=; b=BTS/Y73hPzWmtZ1lOZRJJI4ZznDX+Xp5MwfgjiCIPS1DZTPrH7xWegQ5XwkBmZT2sL KhhPbY6fGcOyHBeQUzaKYsArYRdGYyOE2Nsz9E/Xb1CQT8yO9m/pSfiaOkZtl/x+bFG1 h4iFaPzE+PoeAZieULGCU2cnBg7D4Bp0uaP/GT8oiIRZGBGiTBsRJvLVIX+NGn6bRpsj ITRU17MZB9dl5ubVpauRAJhzkoyin9cOi306YJ6YwFFFaZab4f3zohQONCcASbVEEDgn sKTBNM2bwmBksjxBfvGZ3TGud7CLSjpzXSetJxS70g2ORJ4E/OICUL78X2zjlJOq+ulK 4GVw== X-Gm-Message-State: AOAM530WaZ5S6vnaPqBmhv75RgLRzOh8N1aj5jLBt9/QoQFzE+4GOS8G VacWxZBsAw7TihCsDhAXww2NLKHovns7BfWVutQ= X-Received: by 2002:a1c:7e82:: with SMTP id z124mr4858733wmc.8.1603506360635; Fri, 23 Oct 2020 19:26:00 -0700 (PDT) MIME-Version: 1.0 References: <20201023074234.395002-1-namhyung@kernel.org> <20201023170422.GS466880@tassilo.jf.intel.com> In-Reply-To: <20201023170422.GS466880@tassilo.jf.intel.com> From: Namhyung Kim Date: Sat, 24 Oct 2020 11:25:49 +0900 Message-ID: Subject: Re: [PATCH] perf stat: Support regex pattern in --for-each-cgroup To: Andi Kleen Cc: Arnaldo Carvalho de Melo , Jiri Olsa , Ingo Molnar , Peter Zijlstra , Mark Rutland , Alexander Shishkin , LKML , Stephane Eranian , Ian Rogers Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Andi, On Sat, Oct 24, 2020 at 2:04 AM Andi Kleen wrote: > > On Fri, Oct 23, 2020 at 04:42:34PM +0900, Namhyung Kim wrote: > > To make the command line even more compact with cgroups, support regex > > pattern matching in cgroup names. > > > > $ perf stat -a -e cpu-clock,cycles --for-each-cgroup '^.$' sleep 1 > > The example doesn't exactly show the benefit. So ^.$ would be only > for one character cgroups? Right, I know it's not a good example but just wanted to show the possibility of regex patterns. Let me come up with a better one. > > Missing documentation updates. Will add. Thanks Namhyung