|
@@ -12,12 +12,12 @@ struct callchain_param callchain_param = {
|
|
* histogram, sorted on item, collects counts
|
|
* histogram, sorted on item, collects counts
|
|
*/
|
|
*/
|
|
|
|
|
|
-struct hist_entry *__perf_session__add_hist_entry(struct perf_session *self,
|
|
|
|
|
|
+struct hist_entry *__perf_session__add_hist_entry(struct rb_root *hists,
|
|
struct addr_location *al,
|
|
struct addr_location *al,
|
|
struct symbol *sym_parent,
|
|
struct symbol *sym_parent,
|
|
u64 count, bool *hit)
|
|
u64 count, bool *hit)
|
|
{
|
|
{
|
|
- struct rb_node **p = &self->hists.rb_node;
|
|
|
|
|
|
+ struct rb_node **p = &hists->rb_node;
|
|
struct rb_node *parent = NULL;
|
|
struct rb_node *parent = NULL;
|
|
struct hist_entry *he;
|
|
struct hist_entry *he;
|
|
struct hist_entry entry = {
|
|
struct hist_entry entry = {
|
|
@@ -53,7 +53,7 @@ struct hist_entry *__perf_session__add_hist_entry(struct perf_session *self,
|
|
return NULL;
|
|
return NULL;
|
|
*he = entry;
|
|
*he = entry;
|
|
rb_link_node(&he->rb_node, parent, p);
|
|
rb_link_node(&he->rb_node, parent, p);
|
|
- rb_insert_color(&he->rb_node, &self->hists);
|
|
|
|
|
|
+ rb_insert_color(&he->rb_node, hists);
|
|
*hit = false;
|
|
*hit = false;
|
|
return he;
|
|
return he;
|
|
}
|
|
}
|