| /linux/drivers/gpu/drm/xe/ |
| H A D | xe_guc_log.c | 69 struct xe_guc_log_snapshot *snapshot; in xe_guc_log_snapshot_alloc() local 73 snapshot = kzalloc(sizeof(*snapshot), atomic ? GFP_ATOMIC : GFP_KERNEL); in xe_guc_log_snapshot_alloc() 74 if (!snapshot) in xe_guc_log_snapshot_alloc() 82 snapshot->size = xe_bo_size(log->bo); in xe_guc_log_snapshot_alloc() 83 snapshot->num_chunks = DIV_ROUND_UP(snapshot->size, GUC_LOG_CHUNK_SIZE); in xe_guc_log_snapshot_alloc() 85 snapshot->copy = kcalloc(snapshot->num_chunks, sizeof(*snapshot->copy), in xe_guc_log_snapshot_alloc() 87 if (!snapshot->copy) in xe_guc_log_snapshot_alloc() 90 remain = snapshot->size; in xe_guc_log_snapshot_alloc() 91 for (i = 0; i < snapshot->num_chunks; i++) { in xe_guc_log_snapshot_alloc() 94 snapshot->copy[i] = kmalloc(size, atomic ? GFP_ATOMIC : GFP_KERNEL); in xe_guc_log_snapshot_alloc() [all …]
|
| H A D | xe_guc_ct.c | 1886 struct xe_guc_ct_snapshot *snapshot; in guc_ct_snapshot_alloc() local 1888 snapshot = kzalloc(sizeof(*snapshot), atomic ? GFP_ATOMIC : GFP_KERNEL); in guc_ct_snapshot_alloc() 1889 if (!snapshot) in guc_ct_snapshot_alloc() 1893 snapshot->ctb_size = xe_bo_size(ct->bo); in guc_ct_snapshot_alloc() 1894 snapshot->ctb = kmalloc(snapshot->ctb_size, atomic ? GFP_ATOMIC : GFP_KERNEL); in guc_ct_snapshot_alloc() 1897 return snapshot; in guc_ct_snapshot_alloc() 1901 struct guc_ctb_snapshot *snapshot) in guc_ctb_snapshot_capture() argument 1903 xe_map_memcpy_from(xe, &snapshot->desc, &ctb->desc, 0, in guc_ctb_snapshot_capture() 1905 memcpy(&snapshot->info, &ctb->info, sizeof(struct guc_ctb_info)); in guc_ctb_snapshot_capture() 1908 static void guc_ctb_snapshot_print(struct guc_ctb_snapshot *snapshot, in guc_ctb_snapshot_print() argument [all …]
|
| H A D | xe_devcoredump.c | 95 ss = &coredump->snapshot; in __xe_devcoredump_read() 204 ss = &coredump->snapshot; in xe_devcoredump_read() 258 cancel_work_sync(&coredump->snapshot.work); in xe_devcoredump_free() 262 xe_devcoredump_snapshot_free(&coredump->snapshot); in xe_devcoredump_free() 263 kvfree(coredump->snapshot.read.buffer); in xe_devcoredump_free() 266 memset(&coredump->snapshot, 0, sizeof(coredump->snapshot)); in xe_devcoredump_free() 277 struct xe_devcoredump *coredump = container_of(ss, typeof(*coredump), snapshot); in xe_devcoredump_deferred_snap_work() 332 struct xe_devcoredump_snapshot *ss = &coredump->snapshot; in devcoredump_snapshot() 399 coredump->snapshot.reason = kvasprintf(GFP_ATOMIC, fmt, varg); in xe_devcoredump()
|
| H A D | xe_guc_capture.h | 54 void xe_engine_manual_capture(struct xe_hw_engine *hwe, struct xe_hw_engine_snapshot *snapshot); 55 void xe_engine_snapshot_print(struct xe_hw_engine_snapshot *snapshot, struct drm_printer *p);
|
| /linux/Documentation/admin-guide/device-mapper/ |
| H A D | snapshot.rst | 2 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 D | era.rst | 16 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
|
| H A D | dm-init.rst | 54 `snapshot` constrained, userspace should verify src/dst device 55 `snapshot-origin` allowed 56 `snapshot-merge` constrained, userspace should verify src/dst device 111 "snapshot-origin":: 113 dm-snap-orig,,4,ro,0 409600 snapshot-origin 8:2
|
| H A D | zero.rst | 12 conjunction with dm-snapshot. A sparse device reports a device-size larger 27 Then create a snapshot of the zero device, using any available block-device as 32 echo "0 $TEN_TERABYTES snapshot /dev/mapper/zero1 /dev/sdb1 p 128" | \
|
| /linux/Documentation/networking/devlink/ |
| H A D | devlink-region.rst | 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 51 $ devlink region dump DEV/REGION [ snapshot SNAPSHOT_ID ] [all …]
|
| H A D | iosm.rst | 100 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/Documentation/power/ |
| H A D | userland-swsusp.rst | 13 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 image from [all …]
|
| /linux/tools/testing/selftests/ftrace/test.d/trigger/ |
| H A D | trigger-snapshot.tc | 11 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
|
| H A D | trigger-trace-marker-snapshot.tc | 36 grep -q 'Snapshot is allocated' snapshot 41 test_trace snapshot 2
|
| /linux/kernel/power/ |
| H A D | swap.c | 516 struct snapshot_handle *snapshot, in save_image() argument 537 ret = snapshot_read_next(snapshot); in save_image() 540 ret = swap_write_page(handle, data_of(*snapshot), &hb); in save_image() 690 struct snapshot_handle *snapshot, in save_compressed_image() argument 808 ret = snapshot_read_next(snapshot); in save_compressed_image() 816 data_of(*snapshot), PAGE_SIZE); in save_compressed_image() 941 struct snapshot_handle snapshot; in swsusp_write() local 959 memset(&snapshot, 0, sizeof(struct snapshot_handle)); in swsusp_write() 960 error = snapshot_read_next(&snapshot); in swsusp_write() 967 header = (struct swsusp_info *)data_of(snapshot); in swsusp_write() [all …]
|
| /linux/tools/testing/selftests/ftrace/test.d/00basic/ |
| H A D | snapshot.tc | 10 echo 1 > snapshot 13 grep -q "Snapshot is allocated" snapshot 22 echo 1 > snapshot
|
| /linux/tools/testing/selftests/drivers/net/netdevsim/ |
| H A D | devlink.sh | 260 count=$(devlink region show $DL_HANDLE/$name -j | jq -e -r '.[][].snapshot | length') 262 check_err $? "Unexpected $phase_name snapshot count" 275 check_err $? "Failed to take first dummy region snapshot" 276 check_region_snapshot_count dummy post-first-snapshot 1 279 check_err $? "Failed to take second dummy region snapshot" 280 check_region_snapshot_count dummy post-second-snapshot 2 283 check_err $? "Failed to take third dummy region snapshot" 284 check_region_snapshot_count dummy post-third-snapshot 3 286 devlink region del $DL_HANDLE/dummy snapshot 1 287 check_err $? "Failed to delete first dummy region snapshot" [all...] |
| /linux/drivers/net/ethernet/qualcomm/rmnet/ |
| H A D | rmnet_vnd.c | 136 struct rmnet_vnd_stats snapshot; in rmnet_get_stats64() local 144 snapshot = pcpu_ptr->stats; /* struct assignment */ in rmnet_get_stats64() 147 total_stats.rx_pkts += snapshot.rx_pkts; in rmnet_get_stats64() 148 total_stats.rx_bytes += snapshot.rx_bytes; in rmnet_get_stats64() 149 total_stats.tx_pkts += snapshot.tx_pkts; in rmnet_get_stats64() 150 total_stats.tx_bytes += snapshot.tx_bytes; in rmnet_get_stats64() 151 total_stats.tx_drops += snapshot.tx_drops; in rmnet_get_stats64()
|
| /linux/arch/x86/events/intel/ |
| H A D | bts.c | 57 bool snapshot; member 111 bb->snapshot = overwrite; in bts_buffer_setup_aux() 155 if (!bb->snapshot) { in bts_config_buffer() 172 ds->bts_interrupt_threshold = !bb->snapshot in bts_config_buffer() 197 if (!bb->snapshot) { in bts_update() 239 if (!bb->snapshot) in __bts_event_start() 325 if (bb->snapshot) in bts_event_stop() 393 if (bb->snapshot) in bts_buffer_reset() 498 if (bb->snapshot) in intel_bts_interrupt()
|
| /linux/fs/nilfs2/ |
| H A D | sysfs.h | 89 NILFS_CP_ATTR_STRUCT(snapshot); 132 NILFS_INFO_ATTR(snapshot, name) 134 NILFS_RO_ATTR(snapshot, name) 136 NILFS_RW_ATTR(snapshot, name)
|
| /linux/tools/testing/selftests/ring-buffer/ |
| H A D | map_test.c | 263 FIXTURE(snapshot) { in FIXTURE() argument 267 FIXTURE_SETUP(snapshot) in FIXTURE_SETUP() argument 290 FIXTURE_TEARDOWN(snapshot) in FIXTURE_TEARDOWN() argument 300 TEST_F(snapshot, excludes_map) in TEST_F() argument 311 TEST_F(snapshot, excluded_by_map) in TEST_F() argument
|
| /linux/tools/testing/selftests/kvm/ |
| H A D | rseq_test.c | 208 int r, i, snapshot, opt, fd = -1, latency = -1; in main() local 279 snapshot = atomic_read(&seq_cnt) & ~1; in main() 292 } while (snapshot != atomic_read(&seq_cnt)); in main()
|
| /linux/kernel/ |
| H A D | tracepoint.c | 45 struct tp_transition_snapshot *snapshot = &tp_transition_snapshot[sync]; in tp_rcu_get_state() local 48 snapshot->rcu = get_state_synchronize_rcu(); in tp_rcu_get_state() 49 snapshot->ongoing = true; in tp_rcu_get_state() 54 struct tp_transition_snapshot *snapshot = &tp_transition_snapshot[sync]; in tp_rcu_cond_sync() local 56 if (!snapshot->ongoing) in tp_rcu_cond_sync() 58 cond_synchronize_rcu(snapshot->rcu); in tp_rcu_cond_sync() 59 snapshot->ongoing = false; in tp_rcu_cond_sync()
|
| /linux/drivers/hwtracing/coresight/ |
| H A D | coresight-tmc-etr.c | 50 bool snapshot; member 1364 int nr_pages, void **pages, bool snapshot) in alloc_etr_buf() argument 1403 void **pages, bool snapshot) in get_perf_etr_buf_cpu_wide() argument 1439 etr_buf = alloc_etr_buf(drvdata, event, nr_pages, pages, snapshot); in get_perf_etr_buf_cpu_wide() 1467 void **pages, bool snapshot) in get_perf_etr_buf_per_thread() argument 1473 return alloc_etr_buf(drvdata, event, nr_pages, pages, snapshot); in get_perf_etr_buf_per_thread() 1478 int nr_pages, void **pages, bool snapshot) in get_perf_etr_buf() argument 1482 pages, snapshot); in get_perf_etr_buf() 1485 pages, snapshot); in get_perf_etr_buf() 1490 int nr_pages, void **pages, bool snapshot) in tmc_etr_setup_perf_buf() argument [all …]
|
| /linux/drivers/pwm/ |
| H A D | pwm-sti.c | 70 u32 snapshot[3]; member 350 high = ddata->snapshot[1] - ddata->snapshot[0]; in sti_pwm_capture() 351 low = ddata->snapshot[2] - ddata->snapshot[1]; in sti_pwm_capture() 452 &ddata->snapshot[ddata->index]); in sti_pwm_interrupt()
|
| /linux/drivers/net/dsa/mv88e6xxx/ |
| H A D | devlink.c | 647 .snapshot = mv88e6xxx_region_global_snapshot, 658 .snapshot = mv88e6xxx_region_global_snapshot, 665 .snapshot = mv88e6xxx_region_atu_snapshot, 671 .snapshot = mv88e6xxx_region_vtu_snapshot, 677 .snapshot = mv88e6xxx_region_stu_snapshot, 683 .snapshot = mv88e6xxx_region_pvt_snapshot, 689 .snapshot = mv88e6xxx_region_port_snapshot,
|