perf db-export: Move export__comm_thread into db_export__sample()
authorAdrian Hunter <adrian.hunter@intel.com>
Wed, 10 Jul 2019 08:57:55 +0000 (11:57 +0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 10 Jul 2019 15:12:45 +0000 (12:12 -0300)
commit1ed119589834e25c130fdaa911ca8b0e3fd1cddf
tree2fca03856ae9fb1f2da182176d0d2aa734dac886
parent6319790bcf825bcc4cd9bf01f01ae404a2fb7da8
perf db-export: Move export__comm_thread into db_export__sample()

Move call to db_export__comm_thread() from db_export__thread() into
db_export__sample() because it makes the code easier to understand, and
add explanatory comments.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Link: http://lkml.kernel.org/r/20190710085810.1650-7-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/db-export.c
tools/perf/util/db-export.h