tracing/hwlat: Honor the tracing_cpumask
authorKevin Hao <haokexin@gmail.com>
Thu, 30 Jul 2020 08:23:18 +0000 (16:23 +0800)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Thu, 30 Jul 2020 23:35:04 +0000 (19:35 -0400)
commit96b4833b6827a62c295b149213c68b559514c929
tree80439412b58d1b15ab03235fe83d4ceb0b1396bd
parenta9d0ba6772a0056457838022b624c3d2a17cee21
tracing/hwlat: Honor the tracing_cpumask

In calculation of the cpu mask for the hwlat kernel thread, the wrong
cpu mask is used instead of the tracing_cpumask, this causes the
tracing/tracing_cpumask useless for hwlat tracer. Fixes it.

Link: https://lkml.kernel.org/r/20200730082318.42584-2-haokexin@gmail.com
Cc: Ingo Molnar <mingo@redhat.com>
Cc: stable@vger.kernel.org
Fixes: 0330f7aa8ee6 ("tracing: Have hwlat trace migrate across tracing_cpumask CPUs")
Signed-off-by: Kevin Hao <haokexin@gmail.com>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
kernel/trace/trace_hwlat.c