Re: [PATCH 1/2] perf: Fix failure to set cpumask when only one cpu

2019-08-08 Thread Arnaldo Carvalho de Melo
Em Fri, Aug 02, 2019 at 04:29:51PM +0800, zhe...@windriver.com escreveu: > From: He Zhe > > The buffer containing string used to set cpumask is overwritten by end of > string later in cpu_map__snprint_mask due to not enough memory space, when > there is only one cpu. And thus causes the

Re: [PATCH 1/2] perf: Fix failure to set cpumask when only one cpu

2019-08-02 Thread He Zhe
On 8/2/19 9:06 PM, Jiri Olsa wrote: > On Fri, Aug 02, 2019 at 04:29:51PM +0800, zhe...@windriver.com wrote: >> From: He Zhe >> >> The buffer containing string used to set cpumask is overwritten by end of >> string later in cpu_map__snprint_mask due to not enough memory space, when >> there is

Re: [PATCH 1/2] perf: Fix failure to set cpumask when only one cpu

2019-08-02 Thread Jiri Olsa
On Fri, Aug 02, 2019 at 04:29:51PM +0800, zhe...@windriver.com wrote: > From: He Zhe > > The buffer containing string used to set cpumask is overwritten by end of > string later in cpu_map__snprint_mask due to not enough memory space, when > there is only one cpu. And thus causes the following

[PATCH 1/2] perf: Fix failure to set cpumask when only one cpu

2019-08-02 Thread zhe.he
From: He Zhe The buffer containing string used to set cpumask is overwritten by end of string later in cpu_map__snprint_mask due to not enough memory space, when there is only one cpu. And thus causes the following failure. $ perf ftrace ls failed to reset ftrace This patch fixes the