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