• Home
  • Raw
  • Download

Lines Matching refs:objagg_stats

604 const struct objagg_stats *objagg_stats_get(struct objagg *objagg)  in objagg_stats_get()
606 struct objagg_stats *objagg_stats; in objagg_stats_get() local
610 objagg_stats = kzalloc(struct_size(objagg_stats, stats_info, in objagg_stats_get()
612 if (!objagg_stats) in objagg_stats_get()
617 memcpy(&objagg_stats->stats_info[i].stats, &objagg_obj->stats, in objagg_stats_get()
618 sizeof(objagg_stats->stats_info[0].stats)); in objagg_stats_get()
619 objagg_stats->stats_info[i].objagg_obj = objagg_obj; in objagg_stats_get()
620 objagg_stats->stats_info[i].is_root = in objagg_stats_get()
622 if (objagg_stats->stats_info[i].is_root) in objagg_stats_get()
623 objagg_stats->root_count++; in objagg_stats_get()
626 objagg_stats->stats_info_count = i; in objagg_stats_get()
628 sort(objagg_stats->stats_info, objagg_stats->stats_info_count, in objagg_stats_get()
632 return objagg_stats; in objagg_stats_get()
642 void objagg_stats_put(const struct objagg_stats *objagg_stats) in objagg_stats_put() argument
644 kfree(objagg_stats); in objagg_stats_put()
1021 const struct objagg_stats *
1024 struct objagg_stats *objagg_stats; in objagg_hints_stats_get() local
1028 objagg_stats = kzalloc(struct_size(objagg_stats, stats_info, in objagg_hints_stats_get()
1031 if (!objagg_stats) in objagg_hints_stats_get()
1036 memcpy(&objagg_stats->stats_info[i], &hnode->stats_info, in objagg_hints_stats_get()
1037 sizeof(objagg_stats->stats_info[0])); in objagg_hints_stats_get()
1038 if (objagg_stats->stats_info[i].is_root) in objagg_hints_stats_get()
1039 objagg_stats->root_count++; in objagg_hints_stats_get()
1042 objagg_stats->stats_info_count = i; in objagg_hints_stats_get()
1044 sort(objagg_stats->stats_info, objagg_stats->stats_info_count, in objagg_hints_stats_get()
1048 return objagg_stats; in objagg_hints_stats_get()