aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/builtin-report.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/builtin-report.c')
-rw-r--r--tools/perf/builtin-report.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/tools/perf/builtin-report.c b/tools/perf/builtin-report.c
index 7d2b49adcdc5..007363db3b16 100644
--- a/tools/perf/builtin-report.c
+++ b/tools/perf/builtin-report.c
@@ -177,7 +177,7 @@ static void dsos__fprintf(FILE *fp)
177 177
178static struct symbol *vdso__find_symbol(struct dso *dso, u64 ip) 178static struct symbol *vdso__find_symbol(struct dso *dso, u64 ip)
179{ 179{
180 return dso__find_symbol(kernel_dso, ip); 180 return dso__find_symbol(dso, ip);
181} 181}
182 182
183static int load_kernel(void) 183static int load_kernel(void)
@@ -239,7 +239,7 @@ static u64 map__map_ip(struct map *map, u64 ip)
239 return ip - map->start + map->pgoff; 239 return ip - map->start + map->pgoff;
240} 240}
241 241
242static u64 vdso__map_ip(struct map *map, u64 ip) 242static u64 vdso__map_ip(struct map *map __used, u64 ip)
243{ 243{
244 return ip; 244 return ip;
245} 245}
@@ -712,7 +712,7 @@ static LIST_HEAD(hist_entry__sort_list);
712 712
713static int sort_dimension__add(char *tok) 713static int sort_dimension__add(char *tok)
714{ 714{
715 int i; 715 unsigned int i;
716 716
717 for (i = 0; i < ARRAY_SIZE(sort_dimensions); i++) { 717 for (i = 0; i < ARRAY_SIZE(sort_dimensions); i++) {
718 struct sort_dimension *sd = &sort_dimensions[i]; 718 struct sort_dimension *sd = &sort_dimensions[i];
@@ -801,7 +801,7 @@ callchain__fprintf(FILE *fp, struct callchain_node *self, u64 total_samples)
801 ret += fprintf(fp, " %s\n", chain->sym->name); 801 ret += fprintf(fp, " %s\n", chain->sym->name);
802 else 802 else
803 ret += fprintf(fp, " %p\n", 803 ret += fprintf(fp, " %p\n",
804 (void *)chain->ip); 804 (void *)(long)chain->ip);
805 } 805 }
806 806
807 return ret; 807 return ret;
@@ -938,12 +938,12 @@ static int call__match(struct symbol *sym)
938} 938}
939 939
940static struct symbol ** 940static struct symbol **
941resolve_callchain(struct thread *thread, struct map *map, 941resolve_callchain(struct thread *thread, struct map *map __used,
942 struct ip_callchain *chain, struct hist_entry *entry) 942 struct ip_callchain *chain, struct hist_entry *entry)
943{ 943{
944 int i;
945 struct symbol **syms;
946 u64 context = PERF_CONTEXT_MAX; 944 u64 context = PERF_CONTEXT_MAX;
945 struct symbol **syms;
946 unsigned int i;
947 947
948 if (callchain) { 948 if (callchain) {
949 syms = calloc(chain->nr, sizeof(*syms)); 949 syms = calloc(chain->nr, sizeof(*syms));
@@ -1183,7 +1183,7 @@ static size_t output__fprintf(FILE *fp, u64 total_samples)
1183 1183
1184 fprintf(fp, "# ........"); 1184 fprintf(fp, "# ........");
1185 list_for_each_entry(se, &hist_entry__sort_list, list) { 1185 list_for_each_entry(se, &hist_entry__sort_list, list) {
1186 int i; 1186 unsigned int i;
1187 1187
1188 if (exclude_other && (se == &sort_parent)) 1188 if (exclude_other && (se == &sort_parent))
1189 continue; 1189 continue;
@@ -1271,7 +1271,7 @@ process_sample_event(event_t *event, unsigned long offset, unsigned long head)
1271 (long long)period); 1271 (long long)period);
1272 1272
1273 if (sample_type & PERF_SAMPLE_CALLCHAIN) { 1273 if (sample_type & PERF_SAMPLE_CALLCHAIN) {
1274 int i; 1274 unsigned int i;
1275 1275
1276 chain = (void *)more_data; 1276 chain = (void *)more_data;
1277 1277
@@ -1667,7 +1667,7 @@ more:
1667 if (offset + head >= header->data_offset + header->data_size) 1667 if (offset + head >= header->data_offset + header->data_size)
1668 goto done; 1668 goto done;
1669 1669
1670 if (offset + head < stat.st_size) 1670 if (offset + head < (unsigned long)stat.st_size)
1671 goto more; 1671 goto more;
1672 1672
1673done: 1673done:
@@ -1756,7 +1756,7 @@ static void setup_list(struct strlist **list, const char *list_str,
1756 } 1756 }
1757} 1757}
1758 1758
1759int cmd_report(int argc, const char **argv, const char *prefix) 1759int cmd_report(int argc, const char **argv, const char *prefix __used)
1760{ 1760{
1761 symbol__init(); 1761 symbol__init();
1762 1762