diff options
Diffstat (limited to 'tools/perf/util')
-rw-r--r-- | tools/perf/util/annotate.c | 3 | ||||
-rw-r--r-- | tools/perf/util/header.c | 2 | ||||
-rw-r--r-- | tools/perf/util/scripting-engines/trace-event-python.c | 3 | ||||
-rw-r--r-- | tools/perf/util/symbol.c | 4 | ||||
-rw-r--r-- | tools/perf/util/trace-event-parse.c | 2 | ||||
-rw-r--r-- | tools/perf/util/ui/browsers/map.c | 2 |
6 files changed, 6 insertions, 10 deletions
diff --git a/tools/perf/util/annotate.c b/tools/perf/util/annotate.c index 297337649c21..1012841835a3 100644 --- a/tools/perf/util/annotate.c +++ b/tools/perf/util/annotate.c | |||
@@ -236,7 +236,6 @@ int symbol__annotate(struct symbol *sym, struct map *map, | |||
236 | char command[PATH_MAX * 2]; | 236 | char command[PATH_MAX * 2]; |
237 | FILE *file; | 237 | FILE *file; |
238 | int err = 0; | 238 | int err = 0; |
239 | u64 len; | ||
240 | char symfs_filename[PATH_MAX]; | 239 | char symfs_filename[PATH_MAX]; |
241 | 240 | ||
242 | if (filename) { | 241 | if (filename) { |
@@ -281,8 +280,6 @@ fallback: | |||
281 | filename, sym->name, map->unmap_ip(map, sym->start), | 280 | filename, sym->name, map->unmap_ip(map, sym->start), |
282 | map->unmap_ip(map, sym->end)); | 281 | map->unmap_ip(map, sym->end)); |
283 | 282 | ||
284 | len = sym->end - sym->start; | ||
285 | |||
286 | pr_debug("annotating [%p] %30s : [%p] %30s\n", | 283 | pr_debug("annotating [%p] %30s : [%p] %30s\n", |
287 | dso, dso->long_name, sym, sym->name); | 284 | dso, dso->long_name, sym, sym->name); |
288 | 285 | ||
diff --git a/tools/perf/util/header.c b/tools/perf/util/header.c index c0de5ec44145..72c124dc5781 100644 --- a/tools/perf/util/header.c +++ b/tools/perf/util/header.c | |||
@@ -1145,7 +1145,7 @@ int perf_event__synthesize_tracing_data(int fd, struct perf_evlist *evlist, | |||
1145 | { | 1145 | { |
1146 | union perf_event ev; | 1146 | union perf_event ev; |
1147 | ssize_t size = 0, aligned_size = 0, padding; | 1147 | ssize_t size = 0, aligned_size = 0, padding; |
1148 | int err = 0; | 1148 | int err __used = 0; |
1149 | 1149 | ||
1150 | memset(&ev, 0, sizeof(ev)); | 1150 | memset(&ev, 0, sizeof(ev)); |
1151 | 1151 | ||
diff --git a/tools/perf/util/scripting-engines/trace-event-python.c b/tools/perf/util/scripting-engines/trace-event-python.c index c6d99334bdfa..2040b8538527 100644 --- a/tools/perf/util/scripting-engines/trace-event-python.c +++ b/tools/perf/util/scripting-engines/trace-event-python.c | |||
@@ -248,8 +248,7 @@ static void python_process_event(int cpu, void *data, | |||
248 | context = PyCObject_FromVoidPtr(scripting_context, NULL); | 248 | context = PyCObject_FromVoidPtr(scripting_context, NULL); |
249 | 249 | ||
250 | PyTuple_SetItem(t, n++, PyString_FromString(handler_name)); | 250 | PyTuple_SetItem(t, n++, PyString_FromString(handler_name)); |
251 | PyTuple_SetItem(t, n++, | 251 | PyTuple_SetItem(t, n++, context); |
252 | PyCObject_FromVoidPtr(scripting_context, NULL)); | ||
253 | 252 | ||
254 | if (handler) { | 253 | if (handler) { |
255 | PyTuple_SetItem(t, n++, PyInt_FromLong(cpu)); | 254 | PyTuple_SetItem(t, n++, PyInt_FromLong(cpu)); |
diff --git a/tools/perf/util/symbol.c b/tools/perf/util/symbol.c index 7821d0e6866f..3e193f8e3061 100644 --- a/tools/perf/util/symbol.c +++ b/tools/perf/util/symbol.c | |||
@@ -1525,8 +1525,8 @@ int dso__load(struct dso *self, struct map *map, symbol_filter_t filter) | |||
1525 | symbol_conf.symfs, self->long_name); | 1525 | symbol_conf.symfs, self->long_name); |
1526 | break; | 1526 | break; |
1527 | case DSO__ORIG_GUEST_KMODULE: | 1527 | case DSO__ORIG_GUEST_KMODULE: |
1528 | if (map->groups && map->groups->machine) | 1528 | if (map->groups && machine) |
1529 | root_dir = map->groups->machine->root_dir; | 1529 | root_dir = machine->root_dir; |
1530 | else | 1530 | else |
1531 | root_dir = ""; | 1531 | root_dir = ""; |
1532 | snprintf(name, size, "%s%s%s", symbol_conf.symfs, | 1532 | snprintf(name, size, "%s%s%s", symbol_conf.symfs, |
diff --git a/tools/perf/util/trace-event-parse.c b/tools/perf/util/trace-event-parse.c index 73a02223c629..d8e622dd738a 100644 --- a/tools/perf/util/trace-event-parse.c +++ b/tools/perf/util/trace-event-parse.c | |||
@@ -153,7 +153,7 @@ void parse_proc_kallsyms(char *file, unsigned int size __unused) | |||
153 | char *next = NULL; | 153 | char *next = NULL; |
154 | char *addr_str; | 154 | char *addr_str; |
155 | char ch; | 155 | char ch; |
156 | int ret; | 156 | int ret __used; |
157 | int i; | 157 | int i; |
158 | 158 | ||
159 | line = strtok_r(file, "\n", &next); | 159 | line = strtok_r(file, "\n", &next); |
diff --git a/tools/perf/util/ui/browsers/map.c b/tools/perf/util/ui/browsers/map.c index e5158369106e..8462bffe20bc 100644 --- a/tools/perf/util/ui/browsers/map.c +++ b/tools/perf/util/ui/browsers/map.c | |||
@@ -41,7 +41,7 @@ static int ui_entry__read(const char *title, char *bf, size_t size, int width) | |||
41 | out_free_form: | 41 | out_free_form: |
42 | newtPopWindow(); | 42 | newtPopWindow(); |
43 | newtFormDestroy(form); | 43 | newtFormDestroy(form); |
44 | return 0; | 44 | return err; |
45 | } | 45 | } |
46 | 46 | ||
47 | struct map_browser { | 47 | struct map_browser { |