Lines Matching refs:new

38 cpu_walk(struct snapshot *old, struct snapshot *new,  in cpu_walk()  argument
45 for (i = 0; i < new->s_nr_cpus; i++) { in cpu_walk()
47 struct cpu_snapshot *newcpu = &new->s_cpus[i]; in cpu_walk()
60 if ((new->s_types & SNAP_PSETS) && in cpu_walk()
71 pset_walk(struct snapshot *old, struct snapshot *new, in pset_walk() argument
78 while (old && i < old->s_nr_psets && j < new->s_nr_psets) { in pset_walk()
79 if (old->s_psets[i].ps_id < new->s_psets[j].ps_id) { in pset_walk()
83 } else if (old->s_psets[i].ps_id > new->s_psets[j].ps_id) { in pset_walk()
84 cb(NULL, &new->s_psets[j], data); in pset_walk()
88 cb(&old->s_psets[i], &new->s_psets[j], data); in pset_walk()
100 while (j < new->s_nr_psets) { in pset_walk()
101 cb(NULL, &new->s_psets[j], data); in pset_walk()
154 struct snapshot *new, snapshot_cb cb, void *data) in snapshot_walk() argument
160 changed = cpu_walk(old, new, cb, data); in snapshot_walk()
164 changed = pset_walk(old, new, cb, data); in snapshot_walk()
172 new->s_iodevs, cb, data); in snapshot_walk()
330 snapshot_report_changes(struct snapshot *old, struct snapshot *new) in snapshot_report_changes() argument
334 if (old == NULL || new == NULL) in snapshot_report_changes()
337 if (old->s_types != new->s_types) in snapshot_report_changes()
346 (void) snapshot_walk(SNAP_CPUS, old, new, cpu_report, &pset); in snapshot_report_changes()
357 (void) snapshot_walk(SNAP_PSETS, old, new, in snapshot_report_changes()
361 iodev_report(old->s_iodevs, new->s_iodevs); in snapshot_report_changes()
371 snapshot_has_changed(struct snapshot *old, struct snapshot *new) in snapshot_has_changed() argument
381 if (new == NULL) in snapshot_has_changed()
384 if (old->s_types != new->s_types) in snapshot_has_changed()
388 ret = snapshot_walk(SNAP_CPUS, old, new, dummy_cb, NULL); in snapshot_has_changed()
390 ret = snapshot_walk(SNAP_PSETS, old, new, dummy_cb, NULL); in snapshot_has_changed()
392 ret = snapshot_walk(SNAP_IODEVS, old, new, dummy_cb, NULL); in snapshot_has_changed()