From: "Wenyu Liu(D)" <liuwenyu7@huawei.com>
To: Hangliang Lai <laihangliang1@huawei.com>, <namhyung@kernel.org>
Cc: <acme@kernel.org>, <adrian.hunter@intel.com>,
<alexander.shishkin@linux.intel.com>, <brauner@kernel.org>,
<hewenliang4@huawei.com>, <irogers@google.com>,
<jolsa@kernel.org>, <linfeilong@huawei.com>,
<linux-kernel@vger.kernel.org>,
<linux-perf-users@vger.kernel.org>, <mark.rutland@arm.com>,
<mingo@redhat.com>, <yeyunfeng@huawei.com>
Subject: Re: [PATCH v2] perf top: expand the range of multithreaded phase
Date: Mon, 10 Apr 2023 11:38:07 +0800 [thread overview]
Message-ID: <edec17ee-2a10-bdb1-a021-180831bbc57c@huawei.com> (raw)
In-Reply-To: <20230410025808.2008-1-laihangliang1@huawei.com>
Hello,I think Namhyung means only make it multi-threaded unconditionally after the synthesize
a patch like this:
---
tools/perf/builtin-top.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/tools/perf/builtin-top.c b/tools/perf/builtin-top.c
index d4b5b02bab73..60d00975b881 100644
--- a/tools/perf/builtin-top.c
+++ b/tools/perf/builtin-top.c
@@ -1273,8 +1273,7 @@ static int __cmd_top(struct perf_top *top)
top->evlist->core.threads, true, false,
top->nr_threads_synthesize);
- if (top->nr_threads_synthesize > 1)
- perf_set_singlethreaded();
+ perf_set_multithreaded();
if (perf_hpp_list.socket) {
ret = perf_env__read_cpu_topology_map(&perf_env);
--
Right?
Thanks,
Wenyu
在 2023/4/10 10:58, Hangliang Lai 写道:
> Thanks for your reply Kim ,
>
>
>
> On 2023-04-07 21:21 you wrote:
>
>
>
>> Not always, the synthesis can run in a single thread.
>
>
>
> But I think in machine__synthesize_threads, there are thread_nr threads will be created to do synthesize_threads_worker(tools/perf/util/synthetic-events.c:970)
>
>
>
> It’s not a single thread part. So we're supposed to call perf_set_multithreaded() before synthesize?
>
>
>
> Thanks,
>
> Hangliang Lai
>
>
>
next prev parent reply other threads:[~2023-04-10 3:38 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-17 10:05 [PATCH] " Hangliang Lai
2023-04-01 0:11 ` Namhyung Kim
2023-04-06 2:53 ` [PATCH v2] " Hangliang Lai
2023-04-07 21:21 ` Namhyung Kim
2023-04-10 2:58 ` Hangliang Lai
2023-04-10 3:38 ` Wenyu Liu(D) [this message]
2023-04-10 13:22 ` [PATCH v3] " Hangliang Lai
2023-04-10 15:36 ` Namhyung Kim
2023-04-11 1:32 ` [PATCH v4] " Hangliang Lai
2023-04-12 13:39 ` Arnaldo Carvalho de Melo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=edec17ee-2a10-bdb1-a021-180831bbc57c@huawei.com \
--to=liuwenyu7@huawei.com \
--cc=acme@kernel.org \
--cc=adrian.hunter@intel.com \
--cc=alexander.shishkin@linux.intel.com \
--cc=brauner@kernel.org \
--cc=hewenliang4@huawei.com \
--cc=irogers@google.com \
--cc=jolsa@kernel.org \
--cc=laihangliang1@huawei.com \
--cc=linfeilong@huawei.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-perf-users@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=mingo@redhat.com \
--cc=namhyung@kernel.org \
--cc=yeyunfeng@huawei.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®