aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/symbol.c
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2013-12-10 08:44:37 -0500
committerArnaldo Carvalho de Melo <acme@redhat.com>2013-12-10 14:51:07 -0500
commitc7282f2efff9f115378b450b7aea51210fabb6ef (patch)
tree49af7eb10766d3a22a7805239f8a78179912c3e5 /tools/perf/util/symbol.c
parente90debddf8f26094cd90162b9af2a8ed37ed57cb (diff)
perf symbols: Rename [sl]name_alloc to match the members they refer to
So we now have: dso->short_name dso->short_name_len dso->short_name_allocated Ditto for the 'long variants. To more quickly grasp what they refer to. Suggested-by: Ingo Molnar <mingo@kernel.org> Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: David Ahern <dsahern@gmail.com> Cc: Frederic Weisbecker <fweisbec@gmail.com> Cc: Jiri Olsa <jolsa@redhat.com> Cc: Mike Galbraith <efault@gmx.de> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Paul Mackerras <paulus@samba.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Stephane Eranian <eranian@google.com> Link: http://lkml.kernel.org/n/tip-nu228f8vlp9w0lr7c0q77dqi@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/symbol.c')
-rw-r--r--tools/perf/util/symbol.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/perf/util/symbol.c b/tools/perf/util/symbol.c
index de87dbac50a0..265a149bc43f 100644
--- a/tools/perf/util/symbol.c
+++ b/tools/perf/util/symbol.c
@@ -1458,7 +1458,7 @@ int dso__load_vmlinux_path(struct dso *dso, struct map *map,
1458 if (filename != NULL) { 1458 if (filename != NULL) {
1459 err = dso__load_vmlinux(dso, map, filename, filter); 1459 err = dso__load_vmlinux(dso, map, filename, filter);
1460 if (err > 0) { 1460 if (err > 0) {
1461 dso->lname_alloc = 1; 1461 dso->long_name_allocated = 1;
1462 goto out; 1462 goto out;
1463 } 1463 }
1464 free(filename); 1464 free(filename);
@@ -1468,7 +1468,7 @@ int dso__load_vmlinux_path(struct dso *dso, struct map *map,
1468 err = dso__load_vmlinux(dso, map, vmlinux_path[i], filter); 1468 err = dso__load_vmlinux(dso, map, vmlinux_path[i], filter);
1469 if (err > 0) { 1469 if (err > 0) {
1470 dso__set_long_name(dso, strdup(vmlinux_path[i])); 1470 dso__set_long_name(dso, strdup(vmlinux_path[i]));
1471 dso->lname_alloc = 1; 1471 dso->long_name_allocated = 1;
1472 break; 1472 break;
1473 } 1473 }
1474 } 1474 }
@@ -1612,7 +1612,7 @@ static int dso__load_kernel_sym(struct dso *dso, struct map *map,
1612 if (err > 0) { 1612 if (err > 0) {
1613 dso__set_long_name(dso, 1613 dso__set_long_name(dso,
1614 strdup(symbol_conf.vmlinux_name)); 1614 strdup(symbol_conf.vmlinux_name));
1615 dso->lname_alloc = 1; 1615 dso->long_name_allocated = 1;
1616 return err; 1616 return err;
1617 } 1617 }
1618 return err; 1618 return err;