Lines Matching refs:objagg_stats

607 const struct objagg_stats *objagg_stats_get(struct objagg *objagg)  in objagg_stats_get()
609 struct objagg_stats *objagg_stats; in objagg_stats_get() local
613 objagg_stats = kzalloc(struct_size(objagg_stats, stats_info, in objagg_stats_get()
615 if (!objagg_stats) in objagg_stats_get()
620 memcpy(&objagg_stats->stats_info[i].stats, &objagg_obj->stats, in objagg_stats_get()
621 sizeof(objagg_stats->stats_info[0].stats)); in objagg_stats_get()
622 objagg_stats->stats_info[i].objagg_obj = objagg_obj; in objagg_stats_get()
623 objagg_stats->stats_info[i].is_root = in objagg_stats_get()
625 if (objagg_stats->stats_info[i].is_root) in objagg_stats_get()
626 objagg_stats->root_count++; in objagg_stats_get()
629 objagg_stats->stats_info_count = i; in objagg_stats_get()
631 sort(objagg_stats->stats_info, objagg_stats->stats_info_count, in objagg_stats_get()
635 return objagg_stats; in objagg_stats_get()
645 void objagg_stats_put(const struct objagg_stats *objagg_stats) in objagg_stats_put() argument
647 kfree(objagg_stats); in objagg_stats_put()
1006 const struct objagg_stats *
1009 struct objagg_stats *objagg_stats; in objagg_hints_stats_get() local
1013 objagg_stats = kzalloc(struct_size(objagg_stats, stats_info, in objagg_hints_stats_get()
1016 if (!objagg_stats) in objagg_hints_stats_get()
1021 memcpy(&objagg_stats->stats_info[i], &hnode->stats_info, in objagg_hints_stats_get()
1022 sizeof(objagg_stats->stats_info[0])); in objagg_hints_stats_get()
1023 if (objagg_stats->stats_info[i].is_root) in objagg_hints_stats_get()
1024 objagg_stats->root_count++; in objagg_hints_stats_get()
1027 objagg_stats->stats_info_count = i; in objagg_hints_stats_get()
1029 sort(objagg_stats->stats_info, objagg_stats->stats_info_count, in objagg_hints_stats_get()
1033 return objagg_stats; in objagg_hints_stats_get()