OSDN Git Service

perf config: Write a config file just once
authorTaeung Song <treeze.taeung@gmail.com>
Thu, 7 Sep 2017 03:18:51 +0000 (12:18 +0900)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 13 Sep 2017 12:49:15 +0000 (09:49 -0300)
commit5c2615556d4410baebc9b336f14befe0bb32cde4
tree5b7e4c9b9b66eff0adc1953e9adb550f50a35580
parentecdad24d7a4480c9af0ff6dbe00ac8bbae720d19
perf config: Write a config file just once

Currently set_config() can be repeatedly called for each input config on
the below case:

  $ perf config kmem.default=slab report.children=false ...

But it's a waste, so only once write a config file gathering all given
config key=value pairs.

Signed-off-by: Taeung Song <treeze.taeung@gmail.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Link: http://lkml.kernel.org/r/1504754331-9776-1-git-send-email-treeze.taeung@gmail.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-config.c