Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

perf hists: Rename hist_entry__free to __delete

No logic changes, just to be consistent.

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Borislav Petkov <bp@suse.de>
Cc: David Ahern <dsahern@gmail.com>
Cc: Don Zickus <dzickus@redhat.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: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/n/tip-f7n5y0mvk6gew5185h6fg316@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>

+8 -8
+1 -1
tools/perf/builtin-diff.c
··· 430 430 next = rb_next(&he->rb_node_in); 431 431 if (!hist_entry__next_pair(he)) { 432 432 rb_erase(&he->rb_node_in, root); 433 - hist_entry__free(he); 433 + hist_entry__delete(he); 434 434 } 435 435 } 436 436 }
+1 -1
tools/perf/tests/hists_cumulate.c
··· 140 140 he = rb_entry(node, struct hist_entry, rb_node); 141 141 rb_erase(node, root_out); 142 142 rb_erase(&he->rb_node_in, root_in); 143 - hist_entry__free(he); 143 + hist_entry__delete(he); 144 144 } 145 145 } 146 146
+1 -1
tools/perf/tests/hists_output.c
··· 106 106 he = rb_entry(node, struct hist_entry, rb_node); 107 107 rb_erase(node, root_out); 108 108 rb_erase(&he->rb_node_in, root_in); 109 - hist_entry__free(he); 109 + hist_entry__delete(he); 110 110 } 111 111 } 112 112
+4 -4
tools/perf/util/hist.c
··· 267 267 if (!n->filtered) 268 268 --hists->nr_non_filtered_entries; 269 269 270 - hist_entry__free(n); 270 + hist_entry__delete(n); 271 271 } 272 272 } 273 273 } ··· 290 290 if (!n->filtered) 291 291 --hists->nr_non_filtered_entries; 292 292 293 - hist_entry__free(n); 293 + hist_entry__delete(n); 294 294 } 295 295 } 296 296 ··· 941 941 return cmp; 942 942 } 943 943 944 - void hist_entry__free(struct hist_entry *he) 944 + void hist_entry__delete(struct hist_entry *he) 945 945 { 946 946 zfree(&he->branch_info); 947 947 zfree(&he->mem_info); ··· 981 981 iter->callchain, 982 982 he->callchain); 983 983 } 984 - hist_entry__free(he); 984 + hist_entry__delete(he); 985 985 return false; 986 986 } 987 987
+1 -1
tools/perf/util/hist.h
··· 119 119 int hist_entry__transaction_len(void); 120 120 int hist_entry__sort_snprintf(struct hist_entry *he, char *bf, size_t size, 121 121 struct hists *hists); 122 - void hist_entry__free(struct hist_entry *); 122 + void hist_entry__delete(struct hist_entry *he); 123 123 124 124 void hists__output_resort(struct hists *hists, struct ui_progress *prog); 125 125 void hists__collapse_resort(struct hists *hists, struct ui_progress *prog);