Lines Matching refs:new
40 cpu_walk(struct snapshot *old, struct snapshot *new, in cpu_walk() argument
47 for (i = 0; i < new->s_nr_cpus; i++) { in cpu_walk()
49 struct cpu_snapshot *newcpu = &new->s_cpus[i]; in cpu_walk()
62 if ((new->s_types & SNAP_PSETS) && in cpu_walk()
73 pset_walk(struct snapshot *old, struct snapshot *new, in pset_walk() argument
80 while (old && i < old->s_nr_psets && j < new->s_nr_psets) { in pset_walk()
81 if (old->s_psets[i].ps_id < new->s_psets[j].ps_id) { in pset_walk()
85 } else if (old->s_psets[i].ps_id > new->s_psets[j].ps_id) { in pset_walk()
86 cb(NULL, &new->s_psets[j], data); in pset_walk()
90 cb(&old->s_psets[i], &new->s_psets[j], data); in pset_walk()
102 while (j < new->s_nr_psets) { in pset_walk()
103 cb(NULL, &new->s_psets[j], data); in pset_walk()
156 struct snapshot *new, snapshot_cb cb, void *data) in snapshot_walk() argument
162 changed = cpu_walk(old, new, cb, data); in snapshot_walk()
166 changed = pset_walk(old, new, cb, data); in snapshot_walk()
174 new->s_iodevs, cb, data); in snapshot_walk()
332 snapshot_report_changes(struct snapshot *old, struct snapshot *new) in snapshot_report_changes() argument
336 if (old == NULL || new == NULL) in snapshot_report_changes()
339 if (old->s_types != new->s_types) in snapshot_report_changes()
348 (void) snapshot_walk(SNAP_CPUS, old, new, cpu_report, &pset); in snapshot_report_changes()
359 (void) snapshot_walk(SNAP_PSETS, old, new, in snapshot_report_changes()
363 iodev_report(old->s_iodevs, new->s_iodevs); in snapshot_report_changes()
373 snapshot_has_changed(struct snapshot *old, struct snapshot *new) in snapshot_has_changed() argument
383 if (new == NULL) in snapshot_has_changed()
386 if (old->s_types != new->s_types) in snapshot_has_changed()
390 ret = snapshot_walk(SNAP_CPUS, old, new, dummy_cb, NULL); in snapshot_has_changed()
392 ret = snapshot_walk(SNAP_PSETS, old, new, dummy_cb, NULL); in snapshot_has_changed()
394 ret = snapshot_walk(SNAP_IODEVS, old, new, dummy_cb, NULL); in snapshot_has_changed()