Home
last modified time | relevance | path

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

12345678910

/linux-6.15/drivers/gpu/drm/xe/
H A Dxe_guc_log.c74 if (!snapshot) in xe_guc_log_snapshot_alloc()
85 snapshot->copy = kcalloc(snapshot->num_chunks, sizeof(*snapshot->copy), in xe_guc_log_snapshot_alloc()
100 return snapshot; in xe_guc_log_snapshot_alloc()
107 kfree(snapshot); in xe_guc_log_snapshot_alloc()
122 if (!snapshot) in xe_guc_log_snapshot_free()
131 kfree(snapshot); in xe_guc_log_snapshot_free()
156 if (!snapshot) in xe_guc_log_snapshot_capture()
181 return snapshot; in xe_guc_log_snapshot_capture()
194 if (!snapshot) { in xe_guc_log_snapshot_print()
201 snapshot->ver_found.major, snapshot->ver_found.minor, snapshot->ver_found.patch, in xe_guc_log_snapshot_print()
[all …]
H A Dxe_gt_sriov_pf_migration.c140 return container_of(snapshot, struct xe_gt_sriov_metadata, snapshot) - gt->sriov.pf.vfs; in pf_snapshot_index()
148 snapshot->guc.buff = NULL; in pf_free_guc_state()
149 snapshot->guc.size = 0; in pf_free_guc_state()
174 snapshot->guc.buff = p; in pf_alloc_guc_state()
175 snapshot->guc.size = size; in pf_alloc_guc_state()
187 snapshot->guc.buff, min(SZ_64, snapshot->guc.size)); in pf_dump_guc_state()
213 snapshot->guc.size = size; in pf_save_vf_guc_state()
256 if (!snapshot->guc.size) in pf_restore_vf_guc_state()
261 ret = pf_send_guc_restore_vf_state(gt, vfid, snapshot->guc.buff, snapshot->guc.size); in pf_restore_vf_guc_state()
331 if (snapshot->guc.size) in xe_gt_sriov_pf_migration_read_guc_state()
[all …]
H A Dxe_guc_submit.c2135 snapshot->guc.wqi_head, snapshot->parallel.wq_desc.head); in guc_exec_queue_wq_snapshot_print()
2137 snapshot->guc.wqi_tail, snapshot->parallel.wq_desc.tail); in guc_exec_queue_wq_snapshot_print()
2167 snapshot = kzalloc(sizeof(*snapshot), GFP_ATOMIC); in xe_guc_exec_queue_snapshot_capture()
2169 if (!snapshot) in xe_guc_exec_queue_snapshot_capture()
2173 memcpy(&snapshot->name, &q->name, sizeof(snapshot->name)); in xe_guc_exec_queue_snapshot_capture()
2225 return snapshot; in xe_guc_exec_queue_snapshot_capture()
2239 if (!snapshot || !snapshot->lrc) in xe_guc_exec_queue_snapshot_capture_delayed()
2259 if (!snapshot) in xe_guc_exec_queue_snapshot_print()
2274 for (i = 0; snapshot->lrc && i < snapshot->width; ++i) in xe_guc_exec_queue_snapshot_print()
2303 if (!snapshot) in xe_guc_exec_queue_snapshot_free()
[all …]
H A Dxe_lrc.c1787 struct xe_lrc_snapshot *snapshot = kmalloc(sizeof(*snapshot), GFP_NOWAIT); in xe_lrc_snapshot_capture() local
1789 if (!snapshot) in xe_lrc_snapshot_capture()
1806 snapshot->lrc_size = lrc->bo->size - snapshot->lrc_offset; in xe_lrc_snapshot_capture()
1810 return snapshot; in xe_lrc_snapshot_capture()
1819 if (!snapshot) in xe_lrc_snapshot_capture_delayed()
1826 snapshot->lrc_snapshot = kvmalloc(snapshot->lrc_size, GFP_KERNEL); in xe_lrc_snapshot_capture_delayed()
1833 snapshot->lrc_snapshot, &src, snapshot->lrc_offset, in xe_lrc_snapshot_capture_delayed()
1851 if (!snapshot) in xe_lrc_snapshot_print()
1861 snapshot->tail.internal, snapshot->tail.memory); in xe_lrc_snapshot_print()
1893 if (!snapshot) in xe_lrc_snapshot_free()
[all …]
H A Dxe_sched_job.c333 struct xe_sched_job_snapshot *snapshot; in xe_sched_job_snapshot_capture() local
334 size_t len = sizeof(*snapshot) + (sizeof(u64) * q->width); in xe_sched_job_snapshot_capture()
337 snapshot = kzalloc(len, GFP_ATOMIC); in xe_sched_job_snapshot_capture()
338 if (!snapshot) in xe_sched_job_snapshot_capture()
341 snapshot->batch_addr_len = q->width; in xe_sched_job_snapshot_capture()
343 snapshot->batch_addr[i] = in xe_sched_job_snapshot_capture()
346 return snapshot; in xe_sched_job_snapshot_capture()
351 kfree(snapshot); in xe_sched_job_snapshot_free()
355 xe_sched_job_snapshot_print(struct xe_sched_job_snapshot *snapshot, in xe_sched_job_snapshot_print() argument
360 if (!snapshot) in xe_sched_job_snapshot_print()
[all …]
H A Dxe_guc_ct.c1630 snapshot = kzalloc(sizeof(*snapshot), atomic ? GFP_ATOMIC : GFP_KERNEL); in guc_ct_snapshot_alloc()
1631 if (!snapshot) in guc_ct_snapshot_alloc()
1639 return snapshot; in guc_ct_snapshot_alloc()
1671 if (!snapshot) { in guc_ct_snapshot_capture()
1686 return snapshot; in guc_ct_snapshot_capture()
1714 if (!snapshot) in xe_guc_ct_snapshot_print()
1726 if (snapshot->ctb) { in xe_guc_ct_snapshot_print()
1729 snapshot->ctb, 0, snapshot->ctb_size); in xe_guc_ct_snapshot_print()
1745 if (!snapshot) in xe_guc_ct_snapshot_free()
1748 kfree(snapshot->ctb); in xe_guc_ct_snapshot_free()
[all …]
H A Dxe_hw_engine.c882 snapshot = kzalloc(sizeof(*snapshot), GFP_ATOMIC); in xe_hw_engine_snapshot_capture()
884 if (!snapshot) in xe_hw_engine_snapshot_capture()
888 snapshot->hwe = hwe; in xe_hw_engine_snapshot_capture()
893 snapshot->mmio_base = hwe->mmio_base; in xe_hw_engine_snapshot_capture()
898 return snapshot; in xe_hw_engine_snapshot_capture()
909 return snapshot; in xe_hw_engine_snapshot_capture()
917 return snapshot; in xe_hw_engine_snapshot_capture()
930 if (!snapshot) in xe_hw_engine_snapshot_free()
933 gt = snapshot->hwe->gt; in xe_hw_engine_snapshot_free()
941 kfree(snapshot->name); in xe_hw_engine_snapshot_free()
[all …]
H A Dxe_devcoredump.c94 ss = &coredump->snapshot; in __xe_devcoredump_read()
181 ss = &coredump->snapshot; in xe_devcoredump_read()
215 cancel_work_sync(&coredump->snapshot.work); in xe_devcoredump_free()
219 xe_devcoredump_snapshot_free(&coredump->snapshot); in xe_devcoredump_free()
220 kvfree(coredump->snapshot.read.buffer); in xe_devcoredump_free()
223 memset(&coredump->snapshot, 0, sizeof(coredump->snapshot)); in xe_devcoredump_free()
234 struct xe_devcoredump *coredump = container_of(ss, typeof(*coredump), snapshot); in xe_devcoredump_deferred_snap_work()
274 struct xe_devcoredump_snapshot *ss = &coredump->snapshot; in devcoredump_snapshot()
353 coredump->snapshot.reason = kvasprintf(GFP_ATOMIC, fmt, varg); in xe_devcoredump()
/linux-6.15/drivers/gpu/drm/i915/display/
H A Dintel_display_snapshot.c29 snapshot = kzalloc(sizeof(*snapshot), GFP_ATOMIC); in intel_display_snapshot_capture()
30 if (!snapshot) in intel_display_snapshot_capture()
33 snapshot->display = display; in intel_display_snapshot_capture()
35 memcpy(&snapshot->info, DISPLAY_INFO(display), sizeof(snapshot->info)); in intel_display_snapshot_capture()
44 return snapshot; in intel_display_snapshot_capture()
52 if (!snapshot) in intel_display_snapshot_print()
57 intel_display_device_info_print(&snapshot->info, &snapshot->runtime_info, p); in intel_display_snapshot_print()
66 if (!snapshot) in intel_display_snapshot_free()
71 kfree(snapshot->overlay); in intel_display_snapshot_free()
72 kfree(snapshot->dmc); in intel_display_snapshot_free()
[all …]
/linux-6.15/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-6.15/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-6.15/fs/bcachefs/
H A Dfsck.c107 *snapshot = le32_to_cpu(s.snapshot); in subvol_lookup()
486 iter.snapshot = k.k->p.snapshot; in reattach_inode()
829 .snapshot = inode.k->p.snapshot, in add_inode()
885 new.snapshot = k.k->p.snapshot; in lookup_inode_for_snapshot()
1571 .snapshot = k.k->p.snapshot, in extent_ends_at()
1588 if (i->snapshot >= k.k->p.snapshot) in extent_ends_at()
2580 i->snapshot == snapshot) in path_is_dup()
2626 .snapshot = snapshot, in check_path_loop()
2654 snapshot = inode_k.k->p.snapshot; in check_path_loop()
2753 .snapshot = snapshot, in add_nlink()
[all …]
H A Dstr_hash.h157 u32 snapshot) in bch2_hash_lookup_in_snapshot() argument
163 SPOS(inum.inum, desc.hash_key(info, key), snapshot), in bch2_hash_lookup_in_snapshot()
189 u32 snapshot; in bch2_hash_lookup() local
205 u32 snapshot; in bch2_hash_hole() local
213 SPOS(inum.inum, desc.hash_key(info, key), snapshot), in bch2_hash_hole()
258 subvol_inum inum, u32 snapshot, in bch2_hash_set_or_get_in_snapshot() argument
270 snapshot), in bch2_hash_set_or_get_in_snapshot()
317 subvol_inum inum, u32 snapshot, in bch2_hash_set_in_snapshot() argument
323 snapshot, insert, flags); in bch2_hash_set_in_snapshot()
345 u32 snapshot; in bch2_hash_set() local
[all …]
H A Dbkey.h101 (l.snapshot ^ r.snapshot)); in bpos_eq()
108 l.snapshot != r.snapshot ? l.snapshot < r.snapshot : false; in bpos_lt()
115 l.snapshot != r.snapshot ? l.snapshot < r.snapshot : true; in bpos_le()
132 cmp_int(l.snapshot, r.snapshot); in bpos_cmp()
256 if (!++p.snapshot && in bpos_successor()
266 if (!p.snapshot-- && in bpos_predecessor()
276 p.snapshot = 0; in bpos_nosnap_successor()
287 p.snapshot = 0; in bpos_nosnap_predecessor()
306 .snapshot = k->p.snapshot, in bkey_start_pos()
548 x(BKEY_FIELD_SNAPSHOT, p.snapshot) \
H A Dinode.c343 u32 snapshot; in __bch2_inode_peek() local
383 inode_p->inode.k.p.snapshot = iter->snapshot; in bch2_inode_write_flags()
626 if (bch2_snapshot_is_ancestor(c, pos.snapshot, k.k->p.snapshot)) in bch2_bkey_get_iter_snapshot_parent()
661 if (bch2_snapshot_is_ancestor(c, k.k->p.snapshot, pos.snapshot) && in __bch2_inode_has_child_snapshots()
927 u32 snapshot, u64 cpu) in bch2_inode_create() argument
996 u32 snapshot; in bch2_inode_delete_keys() local
1048 u32 snapshot; in bch2_inode_rm() local
1280 inum, snapshot); in __bch2_inode_rm_snapshot()
1366 pos.offset, pos.snapshot)) in may_delete_deleted_inode()
1387 pos.offset, pos.snapshot)) in may_delete_deleted_inode()
[all …]
H A Dsubvolume.c35 struct bch_snapshot snapshot; in check_subvol() local
44 snapid = le32_to_cpu(subvol.v->snapshot); in check_subvol()
115 le32_to_cpu(subvol.v->snapshot))) { in check_subvol()
221 bkey_fsck_err_on(!subvol.v->snapshot, in bch2_subvolume_validate()
239 le32_to_cpu(s.v->snapshot)); in bch2_subvolume_to_text()
351 *snapid = le32_to_cpu(subvol.v->snapshot); in __bch2_subvolume_get_snapshot()
426 u32 snapid = le32_to_cpu(subvol.v->snapshot); in __bch2_subvolume_delete()
428 struct bkey_s_c_snapshot snapshot = in __bch2_subvolume_delete() local
431 0, snapshot); in __bch2_subvolume_delete()
432 ret = bkey_err(snapshot); in __bch2_subvolume_delete()
[all …]
H A Dsnapshot.c476 POS(0, root_id), 0, snapshot); in check_snapshot_tree()
512 le32_to_cpu(subvol.snapshot), in check_snapshot_tree()
870 struct bkey_i_snapshot *snapshot = bch2_trans_kmalloc(trans, sizeof(*snapshot)); in check_snapshot_exists() local
871 ret = PTR_ERR_OR_ZERO(snapshot); in check_snapshot_exists()
876 snapshot->k.p = POS(0, id); in check_snapshot_exists()
1045 0, snapshot); in bch2_snapshot_node_set_deleted()
1101 0, snapshot); in bch2_snapshot_node_delete()
1128 0, snapshot); in bch2_snapshot_node_delete()
1254 0, snapshot); in bch2_snapshot_node_create_children()
1406 new->k.p.snapshot = live_child; in delete_dead_snapshots_process_key()
[all …]
/linux-6.15/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()
205 if (snapshot) { in devlink_nl_region_notify_build()
207 snapshot->id); in devlink_nl_region_notify_build()
431 snapshot = kzalloc(sizeof(*snapshot), GFP_KERNEL); in __devlink_region_snapshot_create()
432 if (!snapshot) in __devlink_region_snapshot_create()
441 snapshot->data = data; in __devlink_region_snapshot_create()
451 kfree(snapshot); in __devlink_region_snapshot_create()
467 kfree(snapshot); in devlink_region_snapshot_del()
624 if (!snapshot) { in devlink_nl_region_del_doit()
[all …]
/linux-6.15/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-6.15/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-6.15/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-6.15/kernel/power/
H A Dswap.c570 ret = snapshot_read_next(snapshot); in save_image()
696 struct snapshot_handle *snapshot, in save_compressed_image() argument
814 ret = snapshot_read_next(snapshot); in save_compressed_image()
953 struct snapshot_handle snapshot; in swsusp_write() local
972 error = snapshot_read_next(&snapshot); in swsusp_write()
1120 ret = snapshot_write_next(snapshot); in load_image()
1126 if (snapshot->sync_read) in load_image()
1212 struct snapshot_handle *snapshot, in load_compressed_image() argument
1355 ret = snapshot_write_next(snapshot); in load_compressed_image()
1473 memcpy(data_of(*snapshot), in load_compressed_image()
[all …]
/linux-6.15/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 …]

12345678910