Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp2958172pxv; Sun, 18 Jul 2021 06:39:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzdy/hItrgTWYMxfjCj7zdhyg39V0SzULuIuYPfIv6kF2zieJTcLmESl0tGjE4I2JJd9K5X X-Received: by 2002:a17:906:b18d:: with SMTP id w13mr22908980ejy.341.1626615571526; Sun, 18 Jul 2021 06:39:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626615571; cv=none; d=google.com; s=arc-20160816; b=qT13ybtwrXGzm942rrEeJ/GwGQGh/4LAjE0rtYPG7u+Zb8kWeqwwbM0p4WG3S4we0v EDkYLn0N5B8T6KUVrbwWT8+9eyC1d9wjqTUea3PVvtr9ck5i0GguVUA7G1HtVZK/kT4M +KsKmLJHt+o8luVYAlWaNOwTIamyFND6zgeecPEreJdCtyWW6wbAb07eWgTdJwDKV1/F 7NQ3ezRgPZCFkM+OrtRBxjsIdIkf4u1gCYgR7/YUBWPO+Q2KO5xyVKuLmVIt+stjlMQR iVqzj8RIScYhRipqEGAGS+NlJdjD8ruXa5INqXBRLadf2Oy4STL6WwDQ83wWtD6K1Yo6 pTPQ== 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=s3WV+XHJmWQfeNpQDnc/FnURh0Grw/5LIroAp8oppaE=; b=NTR1b4imVZuq1is2gYO8ARrw1w+RxWcMhibnp14mHtMojReOAaxjWI9ix+PMa1FdVD 7qLoPTOU0NWIWR/IWo7PDqub8brMlUZMHVAbI7ov1mKuj+0ownTBNnNPU0O3kA4o6O3C X7lfWDDuRoCzcFXgWYpmMc2JUpy79s0mWFNwEO3au6wQYu7h7g+SK/P8DDX3KBJaaPwy 0UNCPBZOwwx17m4VoVayVqZpruOWxJUNcJHC+INy7z3UytMaaQPSMPvMJocW8KBcB0Gz /VPU+VwQaoBCLvjb9k5vw+NExqe5OD+DcsMZxXngmIGIAZJhI98dwQ/VijtoZjYpexZM kSaw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=qaSzDmyu; 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 zm10si21312402ejb.633.2021.07.18.06.39.06; Sun, 18 Jul 2021 06:39:31 -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=qaSzDmyu; 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 S233807AbhGRNks (ORCPT + 99 others); Sun, 18 Jul 2021 09:40:48 -0400 Received: from mail.kernel.org ([198.145.29.99]:59432 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233673AbhGRNks (ORCPT ); Sun, 18 Jul 2021 09:40:48 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 8987A6109E; Sun, 18 Jul 2021 13:37:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1626615469; bh=22IdLRo2Hl7ken55mYV+S6Vdb2ptV3yDujoEGq0jFQM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=qaSzDmyubg1Vi7DlSqcs8LPjmKUjwbXuH8UziOiZ+x2kwy9es5PL1aGklnN5+WE5M rq4KvYWqgmnBDYJGXOtqc1b/b/Y5tct8QbgMyRAyHV1xtSEOi8QCI4qfzKXewGpuPS fyMZzVKHyYGa1Ce6rDekpVnGOv3iFDHtgrhkcabYdu5Ukr95oHluu4lF2siIchf89l fIjlLq33J8r9TshaIcA/g1Baw1BMfKqPqvfmulx8U21O60x5R9l+gCRlOo7GTrbzCJ Eta/y1eyE9Uu3gmlr1dnjBiynbxObeTcX6f7obb2JBdKXgkp8nyg7PpHG1cDbwfQWo nAdMRJvuLlYtA== Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id 2F548403F2; Sun, 18 Jul 2021 10:37:46 -0300 (-03) Date: Sun, 18 Jul 2021 10:37:46 -0300 From: Arnaldo Carvalho de Melo To: Yang Jihong Cc: peterz@infradead.org, mingo@redhat.com, mark.rutland@arm.com, alexander.shishkin@linux.intel.com, jolsa@redhat.com, namhyung@kernel.org, laoar.shao@gmail.com, rostedt@goodmis.org, linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] perf sched: Fix record failed when CONFIG_SCHEDSTATS is not set Message-ID: References: <20210713112358.194693-1-yangjihong1@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210713112358.194693-1-yangjihong1@huawei.com> X-Url: http://acmel.wordpress.com Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Tue, Jul 13, 2021 at 07:23:58PM +0800, Yang Jihong escreveu: > The tracepoints trace_sched_stat_{wait, sleep, iowait} are not exposed to user > if CONFIG_SCHEDSTATS is not set, "perf sched record" records the three events. > As a result, the command fails to be executed. > > Before: > > #perf sched record sleep 1 > event syntax error: 'sched:sched_stat_wait' > \___ unknown tracepoint > > Error: File /sys/kernel/tracing/events/sched/sched_stat_wait not found. > Hint: Perhaps this kernel misses some CONFIG_ setting to enable this feature?. > > Run 'perf list' for a list of valid events > > Usage: perf record [] [] > or: perf record [] -- [] > > -e, --event event selector. use 'perf list' to list available events > > Solution: > Check whether schedstat tracepoints are exposed. If no, these events are not recorded. Thanks, applied. - Arnaldo