Home
last modified time | relevance | path

Searched refs:snapshot (Results 1 – 25 of 221) sorted by relevance

123456789

/linux/Documentation/admin-guide/device-mapper/
H A Dsnapshot.rst2 Device-mapper snapshot support
12 - To merge a snapshot of a block device back into the snapshot's origin
24 snapshot, snapshot-origin, and snapshot-merge.
26 - snapshot-origin <origin>
55 snapshot-origin or snapshot-merge target must be suspended. A failure to
66 copy-out to the snapshot exception store because the snapshot-origin
78 "snapshot-origin" target and must not be loaded if the "snapshot-origin"
97 3) a "snapshot" device, combining #1 and #2, which is the visible snapshot
126 A merging snapshot assumes the role of the "snapshot-origin" while
130 merging snapshot after it completes. The "snapshot" that hands over its
[all …]
H A Dera.rst16 coherency after rolling back a vendor snapshot.
50 Drop the metadata snapshot.
73 snapshot was the primary use case when developing this target:
75 Taking a vendor snapshot
80 - Take vendor snapshot (the era and snapshot should be forever
83 Rolling back to an vendor snapshot
88 - Take metadata snapshot
89 - Ascertain which blocks have been written since the snapshot was taken
/linux/drivers/gpu/drm/xe/
H A Dxe_hw_engine.c788 snapshot = kzalloc(sizeof(*snapshot), GFP_ATOMIC); in xe_hw_engine_snapshot_capture()
790 if (!snapshot) in xe_hw_engine_snapshot_capture()
803 return snapshot; in xe_hw_engine_snapshot_capture()
831 snapshot->reg.ring_head = in xe_hw_engine_snapshot_capture()
848 return snapshot; in xe_hw_engine_snapshot_capture()
861 if (!snapshot) in xe_hw_engine_snapshot_print()
865 snapshot->name ? snapshot->name : "", in xe_hw_engine_snapshot_print()
868 snapshot->forcewake.domain, snapshot->forcewake.ref); in xe_hw_engine_snapshot_print()
904 if (!snapshot) in xe_hw_engine_snapshot_free()
907 kfree(snapshot->name); in xe_hw_engine_snapshot_free()
[all …]
H A Dxe_devcoredump.c93 ss = &coredump->snapshot; in xe_devcoredump_read()
116 xe_guc_ct_snapshot_print(coredump->snapshot.ct, &p); in xe_devcoredump_read()
124 if (coredump->snapshot.hwe[i]) in xe_devcoredump_read()
128 xe_vm_snapshot_print(coredump->snapshot.vm, &p); in xe_devcoredump_read()
142 cancel_work_sync(&coredump->snapshot.work); in xe_devcoredump_free()
144 xe_guc_ct_snapshot_free(coredump->snapshot.ct); in xe_devcoredump_free()
146 xe_sched_job_snapshot_free(coredump->snapshot.job); in xe_devcoredump_free()
148 if (coredump->snapshot.hwe[i]) in xe_devcoredump_free()
150 xe_vm_snapshot_free(coredump->snapshot.vm); in xe_devcoredump_free()
153 memset(&coredump->snapshot, 0, sizeof(coredump->snapshot)); in xe_devcoredump_free()
[all …]
H A Dxe_guc_submit.c1762 snapshot->guc.wqi_head, snapshot->parallel.wq_desc.head); in guc_exec_queue_wq_snapshot_print()
1764 snapshot->guc.wqi_tail, snapshot->parallel.wq_desc.tail); in guc_exec_queue_wq_snapshot_print()
1794 snapshot = kzalloc(sizeof(*snapshot), GFP_ATOMIC); in xe_guc_exec_queue_snapshot_capture()
1796 if (!snapshot) in xe_guc_exec_queue_snapshot_capture()
1800 memcpy(&snapshot->name, &q->name, sizeof(snapshot->name)); in xe_guc_exec_queue_snapshot_capture()
1852 return snapshot; in xe_guc_exec_queue_snapshot_capture()
1866 if (!snapshot || !snapshot->lrc) in xe_guc_exec_queue_snapshot_capture_delayed()
1886 if (!snapshot) in xe_guc_exec_queue_snapshot_print()
1901 for (i = 0; snapshot->lrc && i < snapshot->width; ++i) in xe_guc_exec_queue_snapshot_print()
1930 if (!snapshot) in xe_guc_exec_queue_snapshot_free()
[all …]
H A Dxe_lrc.c1354 if (!snapshot) in xe_lrc_snapshot_capture()
1365 snapshot->lrc_size = lrc->bo->size - snapshot->lrc_offset; in xe_lrc_snapshot_capture()
1367 return snapshot; in xe_lrc_snapshot_capture()
1375 if (!snapshot) in xe_lrc_snapshot_capture_delayed()
1381 snapshot->lrc_snapshot = kvmalloc(snapshot->lrc_size, GFP_KERNEL); in xe_lrc_snapshot_capture_delayed()
1388 snapshot->lrc_snapshot, &src, snapshot->lrc_offset, in xe_lrc_snapshot_capture_delayed()
1404 if (!snapshot) in xe_lrc_snapshot_print()
1410 snapshot->tail.internal, snapshot->tail.memory); in xe_lrc_snapshot_print()
1439 if (!snapshot) in xe_lrc_snapshot_free()
1443 if (snapshot->lrc_bo) in xe_lrc_snapshot_free()
[all …]
H A Dxe_guc_ct.c1323 if (!snapshot->cmds) { in guc_ctb_snapshot_capture()
1328 head = snapshot->desc.head; in guc_ctb_snapshot_capture()
1329 tail = snapshot->desc.tail; in guc_ctb_snapshot_capture()
1363 if (!snapshot->cmds) in guc_ctb_snapshot_print()
1380 kfree(snapshot->cmds); in guc_ctb_snapshot_free()
1401 snapshot = kzalloc(sizeof(*snapshot), in xe_guc_ct_snapshot_capture()
1404 if (!snapshot) { in xe_guc_ct_snapshot_capture()
1418 return snapshot; in xe_guc_ct_snapshot_capture()
1431 if (!snapshot) in xe_guc_ct_snapshot_print()
1457 if (!snapshot) in xe_guc_ct_snapshot_free()
[all …]
H A Dxe_sched_job.c315 struct xe_sched_job_snapshot *snapshot; in xe_sched_job_snapshot_capture() local
316 size_t len = sizeof(*snapshot) + (sizeof(u64) * q->width); in xe_sched_job_snapshot_capture()
319 snapshot = kzalloc(len, GFP_ATOMIC); in xe_sched_job_snapshot_capture()
320 if (!snapshot) in xe_sched_job_snapshot_capture()
323 snapshot->batch_addr_len = q->width; in xe_sched_job_snapshot_capture()
327 return snapshot; in xe_sched_job_snapshot_capture()
330 void xe_sched_job_snapshot_free(struct xe_sched_job_snapshot *snapshot) in xe_sched_job_snapshot_free() argument
332 kfree(snapshot); in xe_sched_job_snapshot_free()
336 xe_sched_job_snapshot_print(struct xe_sched_job_snapshot *snapshot, in xe_sched_job_snapshot_print() argument
341 if (!snapshot) in xe_sched_job_snapshot_print()
[all …]
H A Dxe_guc_submit.h32 xe_guc_exec_queue_snapshot_capture_delayed(struct xe_guc_submit_exec_queue_snapshot *snapshot);
34 xe_guc_exec_queue_snapshot_print(struct xe_guc_submit_exec_queue_snapshot *snapshot,
37 xe_guc_exec_queue_snapshot_free(struct xe_guc_submit_exec_queue_snapshot *snapshot);
/linux/Documentation/networking/devlink/
H A Ddevlink-region.rst18 All snapshots with the same snapshot id within a devlink instance
32 the snapshot information to user space.
50 $ devlink region del DEV/REGION snapshot SNAPSHOT_ID
51 $ devlink region dump DEV/REGION [ snapshot SNAPSHOT_ID ]
57 pci/0000:00:05.0/fw-health: size 64 snapshot [1 2] max 8
59 # Delete a snapshot using:
60 $ devlink region del pci/0000:00:05.0/cr-space snapshot 1
64 pci/0000:00:05.0/cr-space: snapshot 5
66 # Dump a snapshot:
73 # Read a specific part of a snapshot:
[all …]
H A Diosm.rst130 $ devlink region dump pci/0000:02:00.0/report.json snapshot 0
132 $ devlink region del pci/0000:02:00.0/report.json snapshot 0
136 $ devlink region dump pci/0000:02:00.0/coredump.fcd snapshot 1
138 $ devlink region del pci/0000:02:00.0/coredump.fcd snapshot 1
142 $ devlink region dump pci/0000:02:00.0/cdd.log snapshot 2
144 $ devlink region del pci/0000:02:00.0/cdd.log snapshot 2
148 $ devlink region dump pci/0000:02:00.0/eeprom.bin snapshot 3
150 $ devlink region del pci/0000:02:00.0/eeprom.bin snapshot 3
154 $ devlink region dump pci/0000:02:00.0/bootcore_trace.bin snapshot 4
156 $ devlink region del pci/0000:02:00.0/bootcore_trace.bin snapshot 4
[all …]
/linux/fs/bcachefs/
H A Dfsck.c68 *snapshot = le32_to_cpu(s.snapshot); in subvol_lookup()
114 *snapshot = iter.pos.snapshot; in lookup_inode()
645 .snapshot = inode.k->p.snapshot, in add_inode()
694 new.snapshot = k.k->p.snapshot; in lookup_inode_for_snapshot()
1253 .snapshot = k.k->p.snapshot, in extent_ends_at()
1270 if (i->snapshot >= k.k->p.snapshot) in extent_ends_at()
2371 i->snapshot == snapshot) in path_is_dup()
2428 .snapshot = snapshot, in check_path()
2448 snapshot = inode_k.k->p.snapshot; in check_path()
2543 .snapshot = snapshot, in add_nlink()
[all …]
H A Dstr_hash.h159 u32 snapshot) in bch2_hash_lookup_in_snapshot() argument
165 SPOS(inum.inum, desc.hash_key(info, key), snapshot), in bch2_hash_lookup_in_snapshot()
191 u32 snapshot; in bch2_hash_lookup() local
192 int ret = bch2_subvolume_get_snapshot(trans, inum.subvol, &snapshot); in bch2_hash_lookup()
207 u32 snapshot; in bch2_hash_hole() local
210 ret = bch2_subvolume_get_snapshot(trans, inum.subvol, &snapshot); in bch2_hash_hole()
215 SPOS(inum.inum, desc.hash_key(info, key), snapshot), in bch2_hash_hole()
259 subvol_inum inum, u32 snapshot, in bch2_hash_set_in_snapshot() argument
271 snapshot), in bch2_hash_set_in_snapshot()
325 u32 snapshot; in bch2_hash_set() local
[all …]
H A Dbkey.h107 (l.snapshot ^ r.snapshot)); in bpos_eq()
114 l.snapshot != r.snapshot ? l.snapshot < r.snapshot : false; in bpos_lt()
121 l.snapshot != r.snapshot ? l.snapshot < r.snapshot : true; in bpos_le()
138 cmp_int(l.snapshot, r.snapshot); in bpos_cmp()
255 if (!++p.snapshot && in bpos_successor()
265 if (!p.snapshot-- && in bpos_predecessor()
275 p.snapshot = 0; in bpos_nosnap_successor()
286 p.snapshot = 0; in bpos_nosnap_predecessor()
305 .snapshot = k->p.snapshot, in bkey_start_pos()
547 x(BKEY_FIELD_SNAPSHOT, p.snapshot) \
H A Dinode.c333 u32 snapshot; in bch2_inode_peek_nowarn() local
383 inode_p->inode.k.p.snapshot = iter->snapshot; in bch2_inode_write_flags()
389 u32 snapshot) in __bch2_fsck_write_inode() argument
398 inode_p->inode.k.p.snapshot = snapshot; in __bch2_fsck_write_inode()
407 u32 snapshot) in bch2_fsck_write_inode() argument
726 u32 snapshot, u64 cpu) in bch2_inode_create() argument
809 u32 snapshot; in bch2_inode_delete_keys() local
863 u32 snapshot; in bch2_inode_rm() local
1056 inum, snapshot); in bch2_inode_rm_snapshot()
1102 pos.offset, pos.snapshot)) in may_delete_deleted_inode()
[all …]
H A Ddirent.c207 u32 dir_subvol, u64 dir, u32 snapshot, in bch2_dirent_create_snapshot() argument
223 dirent->k.p.snapshot = snapshot; in bch2_dirent_create_snapshot()
226 dir_inum, snapshot, &dirent->k_i, in bch2_dirent_create_snapshot()
432 new_src->k.p.snapshot != old_src.k->p.snapshot; in bch2_dirent_rename()
436 new_dst->k.p.snapshot != old_dst.k->p.snapshot; in bch2_dirent_rename()
445 bch2_btree_iter_set_snapshot(&src_iter, old_src.k->p.snapshot); in bch2_dirent_rename()
453 bch2_btree_iter_set_snapshot(&dst_iter, old_dst.k->p.snapshot); in bch2_dirent_rename()
512 SPOS(dir, 0, snapshot), in bch2_empty_dir_snapshot()
528 u32 snapshot; in bch2_empty_dir_trans() local
552 u32 snapshot; in bch2_readdir() local
[all …]
H A Dsnapshot.c909 struct bkey_i_snapshot *snapshot = bch2_trans_kmalloc(trans, sizeof(*snapshot)); in check_snapshot_exists() local
1075 0, snapshot); in bch2_snapshot_node_set_deleted()
1131 0, snapshot); in bch2_snapshot_node_delete()
1158 0, snapshot); in bch2_snapshot_node_delete()
1288 0, snapshot); in bch2_snapshot_node_create_children()
1426 new->k.p.snapshot = equiv; in delete_dead_snapshots_process_key()
1640 equiv != snapshot in bch2_delete_dead_snapshots()
1725 if (bch2_snapshot_is_ancestor(c, k.k->p.snapshot, pos.snapshot)) { in __bch2_key_has_snapshot_overwrites()
1762 pos.snapshot = leaf_id; in bch2_propagate_key_to_snapshot_leaf()
1771 if (k.k->p.snapshot != interior_k.k->p.snapshot) in bch2_propagate_key_to_snapshot_leaf()
[all …]
H A Dsubvolume.c34 struct bch_snapshot snapshot; in check_subvol() local
43 snapid = le32_to_cpu(subvol.v->snapshot); in check_subvol()
44 ret = bch2_snapshot_lookup(trans, snapid, &snapshot); in check_subvol()
107 le32_to_cpu(subvol.v->snapshot))) { in check_subvol()
116 inode.bi_inum, inode_iter.k.p.snapshot, in check_subvol()
221 bkey_fsck_err_on(!subvol.v->snapshot, c, err, in bch2_subvolume_invalid()
239 le32_to_cpu(s.v->snapshot)); in bch2_subvolume_to_text()
352 *snapid = le32_to_cpu(subvol.v->snapshot); in bch2_subvolume_get_snapshot()
424 snapid = le32_to_cpu(subvol.v->snapshot); in __bch2_subvolume_delete()
567 parent = le32_to_cpu(src_subvol->v.snapshot); in bch2_subvolume_create()
[all …]
H A Dbtree_update.c98 u32 snapshot = pos.snapshot; in need_whiteout_for_snapshot() local
101 if (!bch2_snapshot_parent(trans->c, pos.snapshot)) in need_whiteout_for_snapshot()
104 pos.snapshot++; in need_whiteout_for_snapshot()
112 if (bch2_snapshot_is_ancestor(trans->c, snapshot, in need_whiteout_for_snapshot()
113 k.k->p.snapshot)) { in need_whiteout_for_snapshot()
135 if (!bch2_snapshot_has_children(c, old_pos.snapshot)) in __bch2_insert_snapshot_whiteouts()
149 if (!bch2_snapshot_is_ancestor(c, old_k.k->p.snapshot, old_pos.snapshot) || in __bch2_insert_snapshot_whiteouts()
175 ret = snapshot_list_add(c, &s, old_k.k->p.snapshot); in __bch2_insert_snapshot_whiteouts()
198 old.k->p.snapshot != new.k->p.snapshot; in bch2_trans_update_extent_overwrite()
250 update->k.p.snapshot = new.k->p.snapshot; in bch2_trans_update_extent_overwrite()
[all …]
/linux/net/devlink/
H A Dregion.c65 if (snapshot->id == id) in devlink_region_snapshot_get_by_id()
66 return snapshot; in devlink_region_snapshot_get_by_id()
207 if (snapshot) { in devlink_nl_region_notify_build()
209 snapshot->id); in devlink_nl_region_notify_build()
433 snapshot = kzalloc(sizeof(*snapshot), GFP_KERNEL); in __devlink_region_snapshot_create()
434 if (!snapshot) in __devlink_region_snapshot_create()
443 snapshot->data = data; in __devlink_region_snapshot_create()
453 kfree(snapshot); in __devlink_region_snapshot_create()
469 kfree(snapshot); in devlink_region_snapshot_del()
626 if (!snapshot) { in devlink_nl_region_del_doit()
[all …]
/linux/Documentation/power/
H A Duserland-swsusp.rst13 utilities that will read/write the system memory snapshot from/to the
22 be read from /sys/class/misc/snapshot/dev.
45 create a snapshot of the system memory; the
50 SNAPSHOT_CREATE_IMAGE ioctl() again); after the snapshot
56 uploaded snapshot image; before calling it you should transfer
57 the system memory snapshot back to the kernel using the write()
58 operation; this call will not succeed if the snapshot
62 free memory allocated for the snapshot image
170 (a) The suspending utility MUST NOT close the snapshot device
175 system MUST be powered off or rebooted after the snapshot
[all …]
/linux/tools/testing/selftests/ftrace/test.d/trigger/
H A Dtrigger-snapshot.tc11 FEATURE=`grep snapshot events/sched/sched_process_fork/trigger`
18 echo 0 > snapshot
23 grep sched_process_fork snapshot > /dev/null || \
27 echo 0 > snapshot
/linux/kernel/power/
H A Dswap.c570 ret = snapshot_read_next(snapshot); in save_image()
694 struct snapshot_handle *snapshot, in save_compressed_image() argument
805 ret = snapshot_read_next(snapshot); in save_compressed_image()
944 struct snapshot_handle snapshot; in swsusp_write() local
963 error = snapshot_read_next(&snapshot); in swsusp_write()
1111 ret = snapshot_write_next(snapshot); in load_image()
1117 if (snapshot->sync_read) in load_image()
1200 struct snapshot_handle *snapshot, in load_compressed_image() argument
1336 ret = snapshot_write_next(snapshot); in load_compressed_image()
1454 memcpy(data_of(*snapshot), in load_compressed_image()
[all …]
/linux/tools/testing/selftests/ftrace/test.d/00basic/
H A Dsnapshot.tc10 echo 1 > snapshot
13 grep -q "Snapshot is allocated" snapshot
22 echo 1 > snapshot
/linux/tools/testing/selftests/drivers/net/netdevsim/
H A Ddevlink.sh170 check_region_snapshot_count dummy post-first-snapshot 1
174 check_region_snapshot_count dummy post-second-snapshot 2
178 check_region_snapshot_count dummy post-third-snapshot 3
180 devlink region del $DL_HANDLE/dummy snapshot 1
185 devlink region new $DL_HANDLE/dummy snapshot 25
190 devlink region dump $DL_HANDLE/dummy snapshot 25 >> /dev/null
193 devlink region read $DL_HANDLE/dummy snapshot 25 addr 0 len 1 >> /dev/null
196 devlink region read $DL_HANDLE/dummy snapshot 25 addr 128 len 128 >> /dev/null
205 devlink region del $DL_HANDLE/dummy snapshot 25
215 devlink region dump $DL_HANDLE/dummy snapshot $sid >> /dev/null
[all …]

123456789