diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2013-12-10 13:08:44 -0500 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2013-12-10 14:51:09 -0500 |
commit | 7e155d4d5e2912f75443c18c02dd6f1dbd4eef84 (patch) | |
tree | 24bc86c6ee5154cd4556ecf0b4a003683b9303d4 /tools/perf/util/dso.h | |
parent | 5230fb7db42914e47786a6e920d2624739b0f896 (diff) |
perf symbols: Remove open coded management of long_name_allocated member
Instead of expecting callers to set this member accodingly so that later
at dso destruction it can, if needed, be correctly free()d, make it a
requirement by passing it as a parameter to dso__set_long_name.
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-na7t1tqim22vuqkt4zq5n4ri@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/dso.h')
-rw-r--r-- | tools/perf/util/dso.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/util/dso.h b/tools/perf/util/dso.h index 8eceab78088f..7b434691525a 100644 --- a/tools/perf/util/dso.h +++ b/tools/perf/util/dso.h | |||
@@ -111,7 +111,7 @@ struct dso *dso__new(const char *name); | |||
111 | void dso__delete(struct dso *dso); | 111 | void dso__delete(struct dso *dso); |
112 | 112 | ||
113 | void dso__set_short_name(struct dso *dso, const char *name, bool name_allocated); | 113 | void dso__set_short_name(struct dso *dso, const char *name, bool name_allocated); |
114 | void dso__set_long_name(struct dso *dso, char *name); | 114 | void dso__set_long_name(struct dso *dso, char *name, bool name_allocated); |
115 | 115 | ||
116 | int dso__name_len(const struct dso *dso); | 116 | int dso__name_len(const struct dso *dso); |
117 | 117 | ||