Lines Matching refs:pstats
194 const struct hv_stats_page **pstats = m->private; in vp_stats_show() local
215 parent_val = pstats[HV_STATS_AREA_PARENT]->data[idx]; in vp_stats_show()
216 self_val = pstats[HV_STATS_AREA_SELF]->data[idx]; in vp_stats_show()
231 struct hv_stats_page **pstats, in vp_debugfs_create() argument
246 pstats, &vp_stats_fops); in vp_debugfs_create()
263 const struct hv_stats_page **pstats = m->private; in partition_stats_show() local
273 parent_val = pstats[HV_STATS_AREA_PARENT]->data[idx]; in partition_stats_show()
274 self_val = pstats[HV_STATS_AREA_SELF]->data[idx]; in partition_stats_show()
328 struct hv_stats_page **pstats; in mshv_debugfs_partition_stats_create() local
331 pstats = kzalloc_objs(struct hv_stats_page *, NUM_STATS_AREAS, in mshv_debugfs_partition_stats_create()
333 if (!pstats) in mshv_debugfs_partition_stats_create()
336 pstats[HV_STATS_AREA_SELF] = mshv_partition_stats_map(partition_id, in mshv_debugfs_partition_stats_create()
338 if (IS_ERR(pstats[HV_STATS_AREA_SELF])) { in mshv_debugfs_partition_stats_create()
339 err = PTR_ERR(pstats[HV_STATS_AREA_SELF]); in mshv_debugfs_partition_stats_create()
347 pstats[HV_STATS_AREA_PARENT] = pstats[HV_STATS_AREA_SELF]; in mshv_debugfs_partition_stats_create()
349 pstats[HV_STATS_AREA_PARENT] = mshv_partition_stats_map(partition_id, in mshv_debugfs_partition_stats_create()
351 if (IS_ERR(pstats[HV_STATS_AREA_PARENT])) { in mshv_debugfs_partition_stats_create()
352 err = PTR_ERR(pstats[HV_STATS_AREA_PARENT]); in mshv_debugfs_partition_stats_create()
355 if (!pstats[HV_STATS_AREA_PARENT]) in mshv_debugfs_partition_stats_create()
356 pstats[HV_STATS_AREA_PARENT] = pstats[HV_STATS_AREA_SELF]; in mshv_debugfs_partition_stats_create()
360 pstats, &partition_stats_fops); in mshv_debugfs_partition_stats_create()
370 if (pstats[HV_STATS_AREA_PARENT] != pstats[HV_STATS_AREA_SELF]) in mshv_debugfs_partition_stats_create()
371 mshv_partition_stats_unmap(partition_id, pstats[HV_STATS_AREA_PARENT], in mshv_debugfs_partition_stats_create()
374 mshv_partition_stats_unmap(partition_id, pstats[HV_STATS_AREA_SELF], in mshv_debugfs_partition_stats_create()
377 kfree(pstats); in mshv_debugfs_partition_stats_create()
383 struct hv_stats_page **pstats = NULL; in partition_debugfs_remove() local
385 pstats = dentry->d_inode->i_private; in partition_debugfs_remove()
389 if (pstats[HV_STATS_AREA_PARENT] != pstats[HV_STATS_AREA_SELF]) { in partition_debugfs_remove()
391 pstats[HV_STATS_AREA_PARENT], in partition_debugfs_remove()
396 pstats[HV_STATS_AREA_SELF], in partition_debugfs_remove()
399 kfree(pstats); in partition_debugfs_remove()
444 struct hv_stats_page **pstats; in parent_vp_debugfs_remove() local
446 pstats = vp_stats_ptr->d_inode->i_private; in parent_vp_debugfs_remove()
448 mshv_vp_stats_unmap(hv_current_partition_id, vp_index, pstats); in parent_vp_debugfs_remove()
449 kfree(pstats); in parent_vp_debugfs_remove()
471 struct hv_stats_page **pstats; in parent_vp_debugfs_create() local
474 pstats = kzalloc_objs(struct hv_stats_page *, NUM_STATS_AREAS, in parent_vp_debugfs_create()
476 if (!pstats) in parent_vp_debugfs_create()
479 err = mshv_vp_stats_map(hv_current_partition_id, vp_index, pstats); in parent_vp_debugfs_create()
483 err = vp_debugfs_create(hv_current_partition_id, vp_index, pstats, in parent_vp_debugfs_create()
491 mshv_vp_stats_unmap(hv_current_partition_id, vp_index, pstats); in parent_vp_debugfs_create()
493 kfree(pstats); in parent_vp_debugfs_create()