]> git.baikalelectronics.ru Git - kernel.git/commit
perf machine: Fix up some more method names
authorArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 1 Jun 2015 15:01:02 +0000 (12:01 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 8 Jun 2015 13:31:34 +0000 (10:31 -0300)
commit46221c3dd7e2a8055e0c3c36af1a5df54334b6ea
treef16cf299c26559b8fcfdee3e9a76122a9dd78a4b
parente73aba0622fb9ca7fedec15c85c3415e2d5a8dc4
perf machine: Fix up some more method names

Calling the function 'machine__new_module' implies a new 'module' will
be allocated, when in fact what is returned is a 'struct map' instance,
that not necessarily will be instantiated, as if one already exists with
the given module name, it will be returned instead.

So be consistent with other "find and if not there, create" like
functions, like machine__findnew_thread, machine__findnew_dso, etc, and
rename it to machine__findnew_module_map(), that in turn will call
machine__findnew_module_dso().

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Link: http://lkml.kernel.org/n/tip-acv830vd3hwww2ih5vjtbmu3@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/machine.c
tools/perf/util/machine.h
tools/perf/util/probe-event.c
tools/perf/util/symbol.c