Home
last modified time | relevance | path

Searched full:snapshot (Results 1 – 25 of 545) sorted by relevance

12345678910>>...22

/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
19 For snapshot merge the contents of the COW storage are merged back into
24 snapshot, snapshot-origin, and snapshot-merge.
26 - snapshot-origin <origin>
30 original data will be saved in the <COW device> of each snapshot to keep
34 - snapshot <origin> <COW device> <persistent?> <chunksize>
37 A snapshot of the <origin> block device is created. Changed chunks of
41 smaller than the origin and if it fills up the snapshot will become
48 snapshot status. So supported store types are "P", "PO" and "N".
[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_guc_log.c116 struct xe_guc_log_snapshot *snapshot; in xe_guc_log_snapshot_alloc()
120 snapshot = kzalloc_obj(*snapshot, atomic ? GFP_ATOMIC : GFP_KERNEL); in xe_guc_log_snapshot_alloc()
121 if (!snapshot) in xe_guc_log_snapshot_alloc()
129 snapshot->size = xe_bo_size(log->bo); in xe_guc_log_snapshot_alloc()
130 snapshot->num_chunks = DIV_ROUND_UP(snapshot->size, GUC_LOG_CHUNK_SIZE); in xe_guc_log_snapshot_alloc()
132 snapshot->copy = kzalloc_objs(*snapshot->copy, snapshot in xe_guc_log_snapshot_alloc()
115 struct xe_guc_log_snapshot *snapshot; xe_guc_log_snapshot_alloc() local
164 xe_guc_log_snapshot_free(struct xe_guc_log_snapshot * snapshot) xe_guc_log_snapshot_free() argument
190 struct xe_guc_log_snapshot *snapshot; xe_guc_log_snapshot_capture() local
233 xe_guc_log_snapshot_print(struct xe_guc_log_snapshot * snapshot,struct drm_printer * p) xe_guc_log_snapshot_print() argument
414 xe_guc_log_output_lfd_init(struct drm_printer * p,struct xe_guc_log_snapshot * snapshot,struct guc_lic_save * config) xe_guc_log_output_lfd_init() argument
432 xe_guc_log_print_chunks(struct drm_printer * p,struct xe_guc_log_snapshot * snapshot,u32 from,u32 to) xe_guc_log_print_chunks() argument
453 xe_guc_log_add_log_event(struct drm_printer * p,struct xe_guc_log_snapshot * snapshot,struct guc_lic_save * config) xe_guc_log_add_log_event() argument
502 xe_guc_log_add_crash_dump(struct drm_printer * p,struct xe_guc_log_snapshot * snapshot,struct guc_lic_save * config) xe_guc_log_add_crash_dump() argument
546 xe_guc_log_snapshot_print_lfd(struct xe_guc_log_snapshot * snapshot,struct drm_printer * p) xe_guc_log_snapshot_print_lfd() argument
600 struct xe_guc_log_snapshot *snapshot; xe_guc_log_print() local
617 struct xe_guc_log_snapshot *snapshot; xe_guc_log_print_lfd() local
[all...]
H A Dxe_lrc.c2619 struct xe_lrc_snapshot *snapshot = kmalloc_obj(*snapshot, GFP_NOWAIT); in xe_lrc_snapshot_print()
2621 if (!snapshot) in xe_lrc_snapshot_print()
2624 snapshot->context_desc = xe_lrc_ggtt_addr(lrc); in xe_lrc_snapshot_print()
2625 snapshot->ring_addr = __xe_lrc_ring_ggtt_addr(lrc); in xe_lrc_snapshot_print()
2626 snapshot->indirect_context_desc = xe_lrc_indirect_ring_ggtt_addr(lrc); in xe_lrc_snapshot_print()
2627 snapshot->head = xe_lrc_ring_head(lrc);
2628 snapshot->tail.internal = lrc->ring.tail; in xe_lrc_snapshot_free() argument
2629 snapshot->tail.memory = xe_lrc_ring_tail(lrc); in xe_lrc_snapshot_free()
2630 snapshot in xe_lrc_snapshot_free()
2513 struct xe_lrc_snapshot *snapshot = kmalloc_obj(*snapshot, GFP_NOWAIT); xe_lrc_snapshot_capture() local
2548 xe_lrc_snapshot_capture_delayed(struct xe_lrc_snapshot * snapshot) xe_lrc_snapshot_capture_delayed() argument
2578 xe_lrc_snapshot_print(struct xe_lrc_snapshot * snapshot,struct drm_printer * p) xe_lrc_snapshot_print() argument
[all...]
H A Dxe_hw_engine.c1050 * xe_hw_engine_snapshot_capture - Take a quick snapshot of the HW Engine.
1057 * Returns: a Xe HW Engine snapshot object that must be freed by the
1063 struct xe_hw_engine_snapshot *snapshot; in xe_hw_engine_snapshot_capture() local
1069 snapshot = kzalloc_obj(*snapshot, GFP_ATOMIC); in xe_hw_engine_snapshot_capture()
1071 if (!snapshot) in xe_hw_engine_snapshot_capture()
1074 snapshot->name = kstrdup(hwe->name, GFP_ATOMIC); in xe_hw_engine_snapshot_capture()
1075 snapshot->hwe = hwe; in xe_hw_engine_snapshot_capture()
1076 snapshot->logical_instance = hwe->logical_instance; in xe_hw_engine_snapshot_capture()
1077 snapshot->forcewake.domain = hwe->domain; in xe_hw_engine_snapshot_capture()
1078 snapshot->forcewake.ref = xe_force_wake_ref(gt_to_fw(hwe->gt), in xe_hw_engine_snapshot_capture()
[all …]
H A Dxe_guc_submit.c3689 struct xe_guc_submit_exec_queue_snapshot *snapshot)
3696 snapshot->guc.wqi_head = q->guc->wqi_head; in xe_guc_has_registered_mlrc_queues()
3697 snapshot->guc.wqi_tail = q->guc->wqi_tail; in xe_guc_has_registered_mlrc_queues()
3698 snapshot->parallel.wq_desc.head = parallel_read(xe, map, wq_desc.head); in xe_guc_has_registered_mlrc_queues()
3699 snapshot->parallel.wq_desc.tail = parallel_read(xe, map, wq_desc.tail); in xe_guc_has_registered_mlrc_queues()
3700 snapshot->parallel.wq_desc.status = parallel_read(xe, map, in xe_guc_has_registered_mlrc_queues()
3703 if (snapshot->parallel.wq_desc.head != in xe_guc_has_registered_mlrc_queues()
3704 snapshot->parallel.wq_desc.tail) { in xe_guc_has_registered_mlrc_queues()
3705 for (i = snapshot->parallel.wq_desc.head; in xe_guc_has_registered_mlrc_queues()
3706 i != snapshot in xe_guc_has_registered_mlrc_queues()
3440 guc_exec_queue_wq_snapshot_capture(struct xe_exec_queue * q,struct xe_guc_submit_exec_queue_snapshot * snapshot) guc_exec_queue_wq_snapshot_capture() argument
3465 guc_exec_queue_wq_snapshot_print(struct xe_guc_submit_exec_queue_snapshot * snapshot,struct drm_printer * p) guc_exec_queue_wq_snapshot_print() argument
3500 struct xe_guc_submit_exec_queue_snapshot *snapshot; xe_guc_exec_queue_snapshot_capture() local
3553 xe_guc_exec_queue_snapshot_capture_delayed(struct xe_guc_submit_exec_queue_snapshot * snapshot) xe_guc_exec_queue_snapshot_capture_delayed() argument
3572 xe_guc_exec_queue_snapshot_print(struct xe_guc_submit_exec_queue_snapshot * snapshot,struct drm_printer * p) xe_guc_exec_queue_snapshot_print() argument
3615 xe_guc_exec_queue_snapshot_free(struct xe_guc_submit_exec_queue_snapshot * snapshot) xe_guc_exec_queue_snapshot_free() argument
3632 struct xe_guc_submit_exec_queue_snapshot *snapshot; guc_exec_queue_print() local
[all...]
/linux/Documentation/networking/devlink/
H A Ddevlink-region.rst17 Snapshot identifiers are scoped to the devlink instance, not a region.
18 All snapshots with the same snapshot id within a devlink instance
27 Regions may optionally support capturing a snapshot on demand via the
29 requested snapshots must implement the ``.snapshot`` callback for the region
30 in its ``devlink_region_ops`` structure. If snapshot id is not set in
32 the snapshot information to user space.
35 snapshot. Direct read requests are not atomic. In particular a read request
37 access is required, use a snapshot. A driver wishing to enable this for a
40 ``DEVLINK_ATTR_REGION_DIRECT`` attribute instead of specifying a snapshot
50 $ devlink region del DEV/REGION snapshot SNAPSHOT_ID
[all …]
H A Diosm.rst100 In case a firmware encounters an exception, a snapshot will be taken by the
130 $ 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
[all …]
/linux/net/devlink/
H A Dregion.c62 struct devlink_snapshot *snapshot; in devlink_region_snapshot_get_by_id() local
64 list_for_each_entry(snapshot, &region->snapshot_list, list) in devlink_region_snapshot_get_by_id()
65 if (snapshot->id == id) in devlink_region_snapshot_get_by_id()
66 return snapshot; in devlink_region_snapshot_get_by_id()
73 struct devlink_snapshot *snapshot) in devlink_nl_region_snapshot_id_put() argument
82 err = nla_put_u32(msg, DEVLINK_ATTR_REGION_SNAPSHOT_ID, snapshot->id); in devlink_nl_region_snapshot_id_put()
98 struct devlink_snapshot *snapshot; in devlink_nl_region_snapshots_id_put() local
107 list_for_each_entry(snapshot, &region->snapshot_list, list) { in devlink_nl_region_snapshots_id_put()
108 err = devlink_nl_region_snapshot_id_put(msg, devlink, snapshot); in devlink_nl_region_snapshots_id_put()
171 struct devlink_snapshot *snapshot, in devlink_nl_region_notify_build() argument
[all …]
/linux/tools/power/x86/turbostat/
H A DMakefile7 SNAPSHOT = turbostat-$(DAY) macro
28 @rm -f $(SNAPSHOT).tar.gz
36 snapshot: turbostat target
37 @rm -rf $(SNAPSHOT)
38 @mkdir $(SNAPSHOT)
39 …bostat Makefile turbostat.c turbostat.8 ../../../../arch/x86/include/asm/intel-family.h $(SNAPSHOT)
41 …/bits.h>/#include "bits.h"/' ../../../../arch/x86/include/asm/msr-index.h > $(SNAPSHOT)/msr-index.h
42 @echo '#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]))' >> $(SNAPSHOT)/msr-index.h
43 @echo "#define BIT(x) (1 << (x))" > $(SNAPSHOT)/bits.h
44 @echo "#define BIT_ULL(nr) (1ULL << (nr))" >> $(SNAPSHOT)/bits.h
[all …]
/linux/tools/testing/selftests/ftrace/test.d/trigger/
H A Dtrigger-snapshot.tc3 # description: event trigger - test snapshot-trigger
4 # requires: set_event events/sched/sched_process_fork/trigger snapshot
11 FEATURE=`grep snapshot events/sched/sched_process_fork/trigger`
13 echo "snapshot trigger is not supported"
17 echo "Test snapshot trigger"
18 echo 0 > snapshot
21 echo 'snapshot:1' > events/sched/sched_process_fork/trigger
23 grep sched_process_fork snapshot > /dev/null || \
24 fail "snapshot trigger on sched_process_fork did not work"
27 echo 0 > snapshot
[all …]
H A Dtrigger-trace-marker-snapshot.tc3 # description: trace_marker trigger - test snapshot trigger
4 # requires: set_event snapshot events/ftrace/print/trigger
30 echo "Test snapshot trace_marker trigger"
32 echo 'snapshot' > events/ftrace/print/trigger
34 # make sure the snapshot is allocated
36 grep -q 'Snapshot is allocated' snapshot
41 test_trace snapshot 2
/linux/kernel/trace/
H A Dtrace_snapshot.c8 /* Used if snapshot allocated at boot */
51 trace_array_puts(tr, "*** SNAPSHOT CALLED FROM NMI CONTEXT ***\n"); in tracing_snapshot_instance_cond()
52 trace_array_puts(tr, "*** snapshot is being ignored ***\n"); in tracing_snapshot_instance_cond()
57 trace_array_puts(tr, "*** SNAPSHOT NOT ALLOCATED ***\n"); in tracing_snapshot_instance_cond()
65 trace_array_puts(tr, "*** Can not use snapshot (sorry) ***\n"); in tracing_snapshot_instance_cond()
69 /* Note, snapshot can not be used when the tracer uses it */ in tracing_snapshot_instance_cond()
72 trace_array_puts(tr, "*** Can not use snapshot (sorry) ***\n"); in tracing_snapshot_instance_cond()
87 * tracing_snapshot_cond - conditionally take a snapshot of the current buffer.
88 * @tr: The tracing instance to snapshot
91 * This is the same as tracing_snapshot() except that the snapshot i
[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
48 creating the snapshot (1) or after restoring the system memory state
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
118 The device's read() operation can be used to transfer the snapshot imag
[all...]
/linux/tools/testing/selftests/ftrace/test.d/00basic/
H A Dsnapshot.tc2 # description: Snapshot and tracing setting
3 # requires: snapshot
9 echo "Allocate and take a snapshot"
10 echo 1 > snapshot
12 # Since trace buffer is empty, snapshot is also empty, but allocated
13 grep -q "Snapshot is allocated" snapshot
21 echo "Take a snapshot again"
22 echo 1 > snapshot
/linux/drivers/net/ethernet/intel/ice/
H A Dice_vf_mbx.c89 * 1. The mailbox snapshot structure, ice_mbx_snapshot, is initialized during
129 * ice_mbx_reset_snapshot - Reset mailbox snapshot structure
130 * @snap: pointer to the mailbox snapshot
137 * mailbox snapshot state to a new capture. in ice_mbx_reset_snapshot()
148 * ice_mbx_traverse - Pass through mailbox snapshot
152 * Traversing the mailbox static snapshot without checking
169 /* Checking either of the below conditions to exit snapshot traversal: in ice_mbx_traverse()
172 * of the static snapshot. in ice_mbx_traverse()
186 * ice_mbx_detect_malvf - Detect malicious VF in snapshot
207 /* continue to iterate through the mailbox snapshot */ in ice_mbx_detect_malvf()
[all …]
/linux/tools/testing/selftests/ftrace/test.d/trigger/inter-event/
H A Dtrigger-snapshot-action-hist.tc3 # description: event trigger - test inter-event histogram trigger snapshot action
4 # requires: set_event snapshot events/sched/sched_process_fork/hist "onchange(var)":README "snapshot()":README ping:program nice:program
12 echo "Test snapshot action"
16 echo 'hist:keys=comm:newprio=prio:onchange($newprio).save(comm,prio):onchange($newprio).snapshot() if comm=="ping"' >> events/sched/sched_waking/trigger
27 if ! grep -q "comm=ping" snapshot; then
28 fail "Failed to create snapshot action inter-event histogram"
31 echo '!hist:keys=comm:newprio=prio:onchange($newprio).save(comm,prio):onchange($newprio).snapshot() if comm=="ping"' >> events/sched/sched_waking/trigger
H A Dtrigger-action-hist-xfail.tc4 # requires: set_event snapshot "snapshot()":README
12 echo "Test expected snapshot action failure"
14 echo 'hist:keys=comm:onmatch(sched.sched_wakeup).snapshot()' >> events/sched/sched_waking/trigger &…
/linux/tools/testing/selftests/drivers/net/netdevsim/
H A Ddevlink.sh261 count=$(devlink region show $DL_HANDLE/$name -j | jq -e -r '.[][].snapshot | length')
263 check_err $? "Unexpected $phase_name snapshot count"
276 check_err $? "Failed to take first dummy region snapshot"
277 check_region_snapshot_count dummy post-first-snapshot 1
280 check_err $? "Failed to take second dummy region snapshot"
281 check_region_snapshot_count dummy post-second-snapshot 2
284 check_err $? "Failed to take third dummy region snapshot"
285 check_region_snapshot_count dummy post-third-snapshot 3
287 devlink region del $DL_HANDLE/dummy snapshot 1
288 check_err $? "Failed to delete first dummy region snapshot"
[all...]
/linux/drivers/net/ethernet/xscale/
H A Dixp46x_ts.h17 u32 tx_snap_lo; /* 0x48 Transmit Snapshot Low Register */
18 u32 tx_snap_hi; /* 0x4C Transmit Snapshot High Register */
19 u32 rx_snap_lo; /* 0x50 Receive Snapshot Low Register */
20 u32 rx_snap_hi; /* 0x54 Receive Snapshot High Register */
38 u32 asms_lo; /* 0x30 Auxiliary Slave Mode Snapshot Low */
39 u32 asms_hi; /* 0x34 Auxiliary Slave Mode Snapshot High */
40 u32 amms_lo; /* 0x38 Auxiliary Master Mode Snapshot Low */
41 u32 amms_hi; /* 0x3C Auxiliary Master Mode Snapshot High */
/linux/drivers/md/
H A Ddm-snap.c29 static const char dm_snapshot_merge_target_name[] = "snapshot-merge";
66 * You can't use a snapshot if this is 0 (e.g. if full).
67 * A snapshot-merge target never clears this.
72 * The snapshot overflowed because of a write to the snapshot device.
73 * We don't have to invalidate the snapshot in this case, but we need
133 * => use the origin; forget about the snapshot.
214 /* Pointer back to snapshot context */
438 * snap_src - a snapshot suitable for use as a source of exception handover
439 * snap_dest - a snapshot capabl
[all...]
/linux/tools/testing/selftests/ring-buffer/
H A Dmap_test.c263 FIXTURE(snapshot) { in FIXTURE() argument
267 FIXTURE_SETUP(snapshot) in FIXTURE_SETUP() argument
276 if (stat(TRACEFS_ROOT"/snapshot", &sb)) in FIXTURE_SETUP()
277 SKIP(return, "Skipping: %s", "snapshot not available"); in FIXTURE_SETUP()
290 FIXTURE_TEARDOWN(snapshot) in FIXTURE_TEARDOWN() argument
293 "!snapshot"); in FIXTURE_TEARDOWN()
300 TEST_F(snapshot, excludes_map) in TEST_F() argument
307 "snapshot"); in TEST_F()
311 TEST_F(snapshot, excluded_by_map) in TEST_F() argument
319 "snapshot"), -EBUSY); in TEST_F()
[all …]
/linux/drivers/net/ethernet/intel/ixgbe/devlink/
H A Dregion.c30 * ixgbe_devlink_nvm_snapshot - Capture a snapshot of the NVM content
34 * @data: on exit points to snapshot data buffer
38 * Capture a snapshot of the whole requested NVM region.
106 * ixgbe_devlink_devcaps_snapshot - Capture a snapshot of device capabilities
110 * @data: on exit points to snapshot data buffer
115 * Capture a snapshot of the device capabilities reported by firmware.
152 * @ops: the devlink region to snapshot
207 .snapshot = ixgbe_devlink_nvm_snapshot,
214 .snapshot = ixgbe_devlink_nvm_snapshot,
221 .snapshot = ixgbe_devlink_devcaps_snapshot,
/linux/fs/ceph/
H A Dsubvolume_metrics.h16 * struct ceph_subvol_metric_snapshot - Point-in-time snapshot of subvolume metrics
18 * @read_ops: Number of read operations since last snapshot
19 * @write_ops: Number of write operations since last snapshot
20 * @read_bytes: Total bytes read since last snapshot
21 * @write_bytes: Total bytes written since last snapshot
79 void ceph_subvolume_metrics_free_snapshot(struct ceph_subvol_metric_snapshot *snapshot);
/linux/net/ceph/
H A Dsnapshot.c3 * snapshot.c Ceph snapshot context utility routines (part of libceph)
13 * Ceph snapshot contexts are reference counted objects, and the
21 * Create a new ceph snapshot context large enough to hold the
22 * indicated number of snapshot ids (which can be 0). Caller has

12345678910>>...22