diff options
Diffstat (limited to 'tools/perf/util/hist.c')
| -rw-r--r-- | tools/perf/util/hist.c | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/tools/perf/util/hist.c b/tools/perf/util/hist.c index e4e6249b87d4..f38590d7561b 100644 --- a/tools/perf/util/hist.c +++ b/tools/perf/util/hist.c | |||
| @@ -13,13 +13,6 @@ static bool hists__filter_entry_by_thread(struct hists *hists, | |||
| 13 | static bool hists__filter_entry_by_symbol(struct hists *hists, | 13 | static bool hists__filter_entry_by_symbol(struct hists *hists, |
| 14 | struct hist_entry *he); | 14 | struct hist_entry *he); |
| 15 | 15 | ||
| 16 | enum hist_filter { | ||
| 17 | HIST_FILTER__DSO, | ||
| 18 | HIST_FILTER__THREAD, | ||
| 19 | HIST_FILTER__PARENT, | ||
| 20 | HIST_FILTER__SYMBOL, | ||
| 21 | }; | ||
| 22 | |||
| 23 | struct callchain_param callchain_param = { | 16 | struct callchain_param callchain_param = { |
| 24 | .mode = CHAIN_GRAPH_REL, | 17 | .mode = CHAIN_GRAPH_REL, |
| 25 | .min_percent = 0.5, | 18 | .min_percent = 0.5, |
| @@ -290,7 +283,7 @@ static struct hist_entry *hist_entry__new(struct hist_entry *template) | |||
| 290 | if (he->branch_info) { | 283 | if (he->branch_info) { |
| 291 | /* | 284 | /* |
| 292 | * This branch info is (a part of) allocated from | 285 | * This branch info is (a part of) allocated from |
| 293 | * machine__resolve_bstack() and will be freed after | 286 | * sample__resolve_bstack() and will be freed after |
| 294 | * adding new entries. So we need to save a copy. | 287 | * adding new entries. So we need to save a copy. |
| 295 | */ | 288 | */ |
| 296 | he->branch_info = malloc(sizeof(*he->branch_info)); | 289 | he->branch_info = malloc(sizeof(*he->branch_info)); |
| @@ -369,7 +362,7 @@ static struct hist_entry *add_hist_entry(struct hists *hists, | |||
| 369 | he_stat__add_period(&he->stat, period, weight); | 362 | he_stat__add_period(&he->stat, period, weight); |
| 370 | 363 | ||
| 371 | /* | 364 | /* |
| 372 | * This mem info was allocated from machine__resolve_mem | 365 | * This mem info was allocated from sample__resolve_mem |
| 373 | * and will not be used anymore. | 366 | * and will not be used anymore. |
| 374 | */ | 367 | */ |
| 375 | zfree(&entry->mem_info); | 368 | zfree(&entry->mem_info); |
| @@ -429,7 +422,7 @@ struct hist_entry *__hists__add_entry(struct hists *hists, | |||
| 429 | .weight = weight, | 422 | .weight = weight, |
| 430 | }, | 423 | }, |
| 431 | .parent = sym_parent, | 424 | .parent = sym_parent, |
| 432 | .filtered = symbol__parent_filter(sym_parent), | 425 | .filtered = symbol__parent_filter(sym_parent) | al->filtered, |
| 433 | .hists = hists, | 426 | .hists = hists, |
| 434 | .branch_info = bi, | 427 | .branch_info = bi, |
| 435 | .mem_info = mi, | 428 | .mem_info = mi, |
