Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp1269237rdg; Fri, 13 Oct 2023 16:22:42 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEgqeNU70GmFK5KWDkqOVMLq3wBpOfazviHXOJRTXk8//qP85quTSIvsD7e5RwDFa6jBxOU X-Received: by 2002:a17:90a:a085:b0:276:e14a:4991 with SMTP id r5-20020a17090aa08500b00276e14a4991mr25568515pjp.2.1697239362325; Fri, 13 Oct 2023 16:22:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697239362; cv=none; d=google.com; s=arc-20160816; b=ugYUMBxWcE6aG8mCuvboCuTlrktwCYSYqTWQDxxKDhKblB7UnZWegvn3raVzrBKWH4 dMQ2USmDZBPA8XMjxuD6mTSDJjDpJTVGzgsHW3eeJQoTYJBuvD1da1VNwBIFvkOczdpV CyqJftA4G5fUNAdRHiQLMzJHgTO5duBLeueqWdRUe9DqN41YHTA27/xyV77v+uh5mR78 AZfGP+d4lDigu+fBg/tsCaB0N+gh+WMVmif3K6wpRuEvbrKsu6eELM/00SOhPZehut2V eVifnIs+fe/NFPxQsgnSLt7uR2rJcYIge5amPffWKQEhGb0v4KjsbgCgcFy5Pt8c3sFs LpzQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=N4LfPV7ATmB9I1VAFxQNhvRYue0LaoToNVy+vcuDqdA=; fh=CeF/sjQ1/PrJQCA4zRbl8D8Nn/XbFr9/r1euVnuk+qw=; b=M4gZdnB9u1nywmWenDmiUy38aav9MMYfJksqiUidG0AfF6YRRgrHUDe/l68FTW/8Pe BXZs4lzTFL4ujLV5LnpHATfiYox3DfNrSqWURAdmCqyO72Ak16Bhj2vtK3FroLgtOswq eBh3PMZIWh0DoKcpUMwEUvR2t6V4H9Qm0C2eU1o+SqBC0DMR5ae5u6S5+w+clAbg0D1z Z1qftQ31OxpPSPa42pIuWg3oNvvSQHfpRkpPOT+4giMwt9sRmjbN5s+F/z4Iy/lJQJNP YEHDBcFQ4yicwymKcWrt1HWgWvuLlTtoeBadr787IsomhnWnUbK/FNbW2yyz00iwKTEI QSuw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 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 howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id hb18-20020a17090b209200b0026cab818aa2si996532pjb.100.2023.10.13.16.22.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Oct 2023 16:22:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id CA435808FA4F; Fri, 13 Oct 2023 16:21:38 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231500AbjJMXUl convert rfc822-to-8bit (ORCPT + 99 others); Fri, 13 Oct 2023 19:20:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49206 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229830AbjJMXUj (ORCPT ); Fri, 13 Oct 2023 19:20:39 -0400 Received: from mail-il1-f179.google.com (mail-il1-f179.google.com [209.85.166.179]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D5532B7; Fri, 13 Oct 2023 16:20:38 -0700 (PDT) Received: by mail-il1-f179.google.com with SMTP id e9e14a558f8ab-3514bf96fd2so9919235ab.0; Fri, 13 Oct 2023 16:20:38 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697239238; x=1697844038; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Sa2C969BUJQ8yo0gA0piHzbT0Go/f15MBqddSU/JLXU=; b=m+aEqz2ZGxtMNMshSmn1J/fYfnLOL1buXxjLGLVzt+lu8N39STQq/nW9MfSTQhQF3/ 3HrQGi0toWbXU3jN6n6p1SmpGC7M9uqpxW6WLRhV8gCSgRMc8g8VK45XJv4hAtJqgqLB e9lShhOYFXHigyKMmW0yKtM8PNwGnbHBsp8iZNinv7DDmzQsoCkz93svf5QooNHBbmjj wmPH+02jvOKoglu7o/YNfvBr+P7G+O2K0HDbISCxk7SUn4XMugAMgQRLARErnOyqO6ny p04a7yQm9trjEiZoezw3BK2xkRAxv6NYyAmB/VnnHTZknFQoVXgod7qSQ9WAenVTACog dN+g== X-Gm-Message-State: AOJu0Yzs/HXToqIxxLdyW/PjttuEm4w1UAw2q13HFCAjBCBozbKq3MXd dGYvj45MudFHiTs2zXH1tJ30ba8LG4jGeBGvQcA= X-Received: by 2002:a92:c08b:0:b0:357:61d7:200f with SMTP id h11-20020a92c08b000000b0035761d7200fmr3210991ile.12.1697239238012; Fri, 13 Oct 2023 16:20:38 -0700 (PDT) MIME-Version: 1.0 References: <20231004204741.985422-1-namhyung@kernel.org> In-Reply-To: From: Namhyung Kim Date: Fri, 13 Oct 2023 16:20:27 -0700 Message-ID: Subject: Re: [PATCH] perf bench sched pipe: Add -G/--cgroups option To: Arnaldo Carvalho de Melo Cc: Jiri Olsa , Ian Rogers , Adrian Hunter , Peter Zijlstra , Ingo Molnar , LKML , linux-perf-users@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-1.0 required=5.0 tests=MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Fri, 13 Oct 2023 16:21:39 -0700 (PDT) On Fri, Oct 13, 2023 at 4:10 PM Namhyung Kim wrote: > diff --git a/tools/perf/bench/sched-pipe.c b/tools/perf/bench/sched-pipe.c > index 1103fd658d5d..25236f339b90 100644 > --- a/tools/perf/bench/sched-pipe.c > +++ b/tools/perf/bench/sched-pipe.c > @@ -118,9 +118,9 @@ static void enter_cgroup(struct cgroup *cgrp) > > /* try cgroup v2 interface first */ > if (threaded) > - fd = openat(cgrp->fd, "cgroup.procs", O_WRONLY); > - else > fd = openat(cgrp->fd, "cgroup.threads", O_WRONLY); > + else > + fd = openat(cgrp->fd, "cgroup.progs", O_WRONLY); > > /* try cgroup v1 if failed */ > if (fd < 0) Oh, actually it should be 'procs' instead of 'progs'. Thanks, Namhyung