Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 191079
b: refs/heads/master
c: dd2ee78
h: refs/heads/master
i:
  191077: cf9873f
  191075: 53fc551
  191071: 2264c13
v: v3
  • Loading branch information
Arnaldo Carvalho de Melo authored and Ingo Molnar committed Mar 12, 2010
1 parent 77be4d0 commit 188a8eb
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b4f5296f0eec2aa7061dfd8bb8c0744f095f9bd1
refs/heads/master: dd2ee78dd8e4c6d6f1a333fd60c3dd27d1b07042
24 changes: 12 additions & 12 deletions trunk/tools/perf/util/hist.c
Original file line number Diff line number Diff line change
Expand Up @@ -455,11 +455,11 @@ static size_t hist_entry_callchain__fprintf(FILE *fp, struct hist_entry *self,
return ret;
}

static size_t hist_entry__fprintf(struct hist_entry *self,
struct perf_session *pair_session,
bool show_displacement,
long displacement, FILE *fp,
u64 session_total)
size_t hist_entry__fprintf(struct hist_entry *self,
struct perf_session *pair_session,
bool show_displacement,
long displacement, FILE *fp,
u64 session_total)
{
struct sort_entry *se;
u64 count, total;
Expand All @@ -485,9 +485,9 @@ static size_t hist_entry__fprintf(struct hist_entry *self,

if (symbol_conf.show_nr_samples) {
if (sep)
fprintf(fp, "%c%lld", *sep, count);
ret += fprintf(fp, "%c%lld", *sep, count);
else
fprintf(fp, "%11lld", count);
ret += fprintf(fp, "%11lld", count);
}

if (pair_session) {
Expand Down Expand Up @@ -518,17 +518,17 @@ static size_t hist_entry__fprintf(struct hist_entry *self,
snprintf(bf, sizeof(bf), " ");

if (sep)
fprintf(fp, "%c%s", *sep, bf);
ret += fprintf(fp, "%c%s", *sep, bf);
else
fprintf(fp, "%6.6s", bf);
ret += fprintf(fp, "%6.6s", bf);
}
}

list_for_each_entry(se, &hist_entry__sort_list, list) {
if (se->elide)
continue;

fprintf(fp, "%s", sep ?: " ");
ret += fprintf(fp, "%s", sep ?: " ");
ret += se->print(fp, self, se->width ? *se->width : 0);
}

Expand All @@ -544,8 +544,8 @@ static size_t hist_entry__fprintf(struct hist_entry *self,
left_margin -= thread__comm_len(self->thread);
}

hist_entry_callchain__fprintf(fp, self, session_total,
left_margin);
ret += hist_entry_callchain__fprintf(fp, self, session_total,
left_margin);
}

return ret;
Expand Down

0 comments on commit 188a8eb

Please sign in to comment.