perf tools: Remove const from thread read accessors
authorNamhyung Kim <namhyung@kernel.org>
Mon, 27 May 2019 06:11:49 +0000 (15:11 +0900)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 28 May 2019 21:37:43 +0000 (18:37 -0300)
commit7cb10a08df98e643b87d4bc8422e50e9c43b5c60
tree725153387454ccf8336ad6c26263d628862c84b1
parenta0c0a4ac021b017e385d0328541ccfebeef165fc
perf tools: Remove const from thread read accessors

The namespaces and comm fields of a thread are protected by rwsem and
require write access for it.  So it ended up using a cast to remove
the const qualifier.  Let's get rid of the const then.

Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Suggested-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Hari Bathini <hbathini@linux.vnet.ibm.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Krister Johansen <kjlx@templeofstupid.com>
Link: http://lkml.kernel.org/r/20190527061149.168640-1-namhyung@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/hist.c
tools/perf/util/thread.c
tools/perf/util/thread.h