/linux-master/tools/testing/selftests/ftrace/test.d/00basic/ |
H A D | snapshot.tc | 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
|
H A D | snapshot1.tc | 4 # requires: trace_marker tracing_cpumask snapshot 17 # Take a snapshot of the main buffer 18 echo 1 > snapshot
|
/linux-master/tools/testing/selftests/ftrace/test.d/trigger/ |
H A D | trigger-snapshot.tc | 3 # 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 D | trigger-trace-marker-snapshot.tc | 3 # 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-master/drivers/gpu/drm/xe/ |
H A D | xe_devcoredump.c | 45 * 'First' failure snapshot: 48 * snapshot of the 'first' failure and ignore subsequent calls of this function, 93 ss = &coredump->snapshot; 116 xe_guc_ct_snapshot_print(coredump->snapshot.ct, &p); 117 xe_guc_exec_queue_snapshot_print(coredump->snapshot.ge, &p); 120 xe_sched_job_snapshot_print(coredump->snapshot.job, &p); 124 if (coredump->snapshot.hwe[i]) 125 xe_hw_engine_snapshot_print(coredump->snapshot.hwe[i], 128 xe_vm_snapshot_print(coredump->snapshot.vm, &p); 142 cancel_work_sync(&coredump->snapshot [all...] |
H A D | xe_guc_submit.h | 32 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);
|
H A D | xe_hw_engine.c | 770 * xe_hw_engine_snapshot_capture - Take a quick snapshot of the HW Engine. 776 * Returns: a Xe HW Engine snapshot object that must be freed by the 782 struct xe_hw_engine_snapshot *snapshot; local 788 snapshot = kzalloc(sizeof(*snapshot), GFP_ATOMIC); 790 if (!snapshot) 793 snapshot->name = kstrdup(hwe->name, GFP_ATOMIC); 794 snapshot->class = hwe->class; 795 snapshot->logical_instance = hwe->logical_instance; 796 snapshot 858 xe_hw_engine_snapshot_print(struct xe_hw_engine_snapshot *snapshot, struct drm_printer *p) argument 902 xe_hw_engine_snapshot_free(struct xe_hw_engine_snapshot *snapshot) argument 920 struct xe_hw_engine_snapshot *snapshot; local [all...] |
H A D | xe_guc_submit.c | 1731 struct xe_guc_submit_exec_queue_snapshot *snapshot) 1738 snapshot->guc.wqi_head = q->guc->wqi_head; 1739 snapshot->guc.wqi_tail = q->guc->wqi_tail; 1740 snapshot->parallel.wq_desc.head = parallel_read(xe, map, wq_desc.head); 1741 snapshot->parallel.wq_desc.tail = parallel_read(xe, map, wq_desc.tail); 1742 snapshot->parallel.wq_desc.status = parallel_read(xe, map, 1745 if (snapshot->parallel.wq_desc.head != 1746 snapshot->parallel.wq_desc.tail) { 1747 for (i = snapshot->parallel.wq_desc.head; 1748 i != snapshot 1730 guc_exec_queue_wq_snapshot_capture(struct xe_exec_queue *q, struct xe_guc_submit_exec_queue_snapshot *snapshot) argument 1756 guc_exec_queue_wq_snapshot_print(struct xe_guc_submit_exec_queue_snapshot *snapshot, struct drm_printer *p) argument 1791 struct xe_guc_submit_exec_queue_snapshot *snapshot; local 1862 xe_guc_exec_queue_snapshot_capture_delayed(struct xe_guc_submit_exec_queue_snapshot *snapshot) argument 1881 xe_guc_exec_queue_snapshot_print(struct xe_guc_submit_exec_queue_snapshot *snapshot, struct drm_printer *p) argument 1926 xe_guc_exec_queue_snapshot_free(struct xe_guc_submit_exec_queue_snapshot *snapshot) argument 1944 struct xe_guc_submit_exec_queue_snapshot *snapshot; local [all...] |
H A D | xe_hw_engine.h | 58 void xe_hw_engine_snapshot_free(struct xe_hw_engine_snapshot *snapshot); 59 void xe_hw_engine_snapshot_print(struct xe_hw_engine_snapshot *snapshot,
|
H A D | xe_devcoredump_types.h | 18 * struct xe_devcoredump_snapshot - Crash snapshot 36 /** @ct: GuC CT snapshot */ 38 /** @ge: Guc Engine snapshot */ 41 /** @hwe: HW Engine snapshot array */ 58 /** @captured: The snapshot of the first hang has already been taken. */ 60 /** @snapshot: Snapshot is captured at time of the first crash */ 61 struct xe_devcoredump_snapshot snapshot; member in struct:xe_devcoredump
|
H A D | xe_sched_job.c | 315 struct xe_sched_job_snapshot *snapshot; local 316 size_t len = sizeof(*snapshot) + (sizeof(u64) * q->width); 319 snapshot = kzalloc(len, GFP_ATOMIC); 320 if (!snapshot) 323 snapshot->batch_addr_len = q->width; 325 snapshot->batch_addr[i] = xe_device_uncanonicalize_addr(xe, job->batch_addr[i]); 327 return snapshot; 330 void xe_sched_job_snapshot_free(struct xe_sched_job_snapshot *snapshot) argument 332 kfree(snapshot); 336 xe_sched_job_snapshot_print(struct xe_sched_job_snapshot *snapshot, argument [all...] |
H A D | xe_guc_ct.c | 1311 struct guc_ctb_snapshot *snapshot, 1316 xe_map_memcpy_from(xe, &snapshot->desc, &ctb->desc, 0, 1318 memcpy(&snapshot->info, &ctb->info, sizeof(struct guc_ctb_info)); 1320 snapshot->cmds = kmalloc_array(ctb->info.size, sizeof(u32), 1323 if (!snapshot->cmds) { 1324 drm_err(&xe->drm, "Skipping CTB commands snapshot. Only CTB info will be available.\n"); 1328 head = snapshot->desc.head; 1329 tail = snapshot->desc.tail; 1336 snapshot->cmds[head] = xe_map_rd(xe, &map, 0, u32); 1348 static void guc_ctb_snapshot_print(struct guc_ctb_snapshot *snapshot, argument 1310 guc_ctb_snapshot_capture(struct xe_device *xe, struct guc_ctb *ctb, struct guc_ctb_snapshot *snapshot, bool atomic) argument 1378 guc_ctb_snapshot_free(struct guc_ctb_snapshot *snapshot) argument 1399 struct xe_guc_ct_snapshot *snapshot; local 1428 xe_guc_ct_snapshot_print(struct xe_guc_ct_snapshot *snapshot, struct drm_printer *p) argument 1455 xe_guc_ct_snapshot_free(struct xe_guc_ct_snapshot *snapshot) argument 1476 struct xe_guc_ct_snapshot *snapshot; local [all...] |
H A D | xe_lrc.h | 59 void xe_lrc_snapshot_capture_delayed(struct xe_lrc_snapshot *snapshot); 60 void xe_lrc_snapshot_print(struct xe_lrc_snapshot *snapshot, struct drm_printer *p); 61 void xe_lrc_snapshot_free(struct xe_lrc_snapshot *snapshot);
|
H A D | xe_lrc.c | 1352 struct xe_lrc_snapshot *snapshot = kmalloc(sizeof(*snapshot), GFP_NOWAIT); local 1354 if (!snapshot) 1357 snapshot->context_desc = lower_32_bits(xe_lrc_ggtt_addr(lrc)); 1358 snapshot->head = xe_lrc_ring_head(lrc); 1359 snapshot->tail.internal = lrc->ring.tail; 1360 snapshot->tail.memory = xe_lrc_read_ctx_reg(lrc, CTX_RING_TAIL); 1361 snapshot->start_seqno = xe_lrc_start_seqno(lrc); 1362 snapshot->seqno = xe_lrc_seqno(lrc); 1363 snapshot 1370 xe_lrc_snapshot_capture_delayed(struct xe_lrc_snapshot *snapshot) argument 1400 xe_lrc_snapshot_print(struct xe_lrc_snapshot *snapshot, struct drm_printer *p) argument 1437 xe_lrc_snapshot_free(struct xe_lrc_snapshot *snapshot) argument [all...] |
H A D | xe_sched_job.h | 85 void xe_sched_job_snapshot_free(struct xe_sched_job_snapshot *snapshot); 86 void xe_sched_job_snapshot_print(struct xe_sched_job_snapshot *snapshot, struct drm_printer *p);
|
/linux-master/tools/testing/selftests/ftrace/test.d/trigger/inter-event/ |
H A D | trigger-snapshot-action-hist.tc | 3 # 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 11 echo "Test snapshot action" 15 echo 'hist:keys=comm:newprio=prio:onchange($newprio).save(comm,prio):onchange($newprio).snapshot() if comm=="ping"' >> events/sched/sched_waking/trigger 26 if ! grep -q "comm=ping" snapshot; then 27 fail "Failed to create snapshot action inter-event histogram"
|
/linux-master/net/devlink/ |
H A D | region.c | 62 struct devlink_snapshot *snapshot; local 64 list_for_each_entry(snapshot, ®ion->snapshot_list, list) 65 if (snapshot->id == id) 66 return snapshot; 73 struct devlink_snapshot *snapshot) 82 err = nla_put_u32(msg, DEVLINK_ATTR_REGION_SNAPSHOT_ID, snapshot->id); 98 struct devlink_snapshot *snapshot; local 107 list_for_each_entry(snapshot, ®ion->snapshot_list, list) { 108 err = devlink_nl_region_snapshot_id_put(msg, devlink, snapshot); 173 struct devlink_snapshot *snapshot, 71 devlink_nl_region_snapshot_id_put(struct sk_buff *msg, struct devlink *devlink, struct devlink_snapshot *snapshot) argument 172 devlink_nl_region_notify_build(struct devlink_region *region, struct devlink_snapshot *snapshot, enum devlink_command cmd, u32 portid, u32 seq) argument 229 devlink_nl_region_notify(struct devlink_region *region, struct devlink_snapshot *snapshot, enum devlink_command cmd) argument 421 struct devlink_snapshot *snapshot; local 457 devlink_region_snapshot_del(struct devlink_region *region, struct devlink_snapshot *snapshot) argument 594 struct devlink_snapshot *snapshot; local 639 struct devlink_snapshot *snapshot; local 839 struct devlink_snapshot *snapshot = cb_priv; local 941 struct devlink_snapshot *snapshot; local 1167 struct devlink_snapshot *snapshot, *ts; local [all...] |
/linux-master/fs/bcachefs/ |
H A D | subvolume_format.h | 12 __le32 snapshot; member in struct:bch_subvolume 15 * Snapshot subvolumes form a tree, separate from the snapshot nodes 16 * tree - if this subvolume is a snapshot, this is the ID of the 29 * We need to know whether a subvolume is a snapshot so we can know whether we
|
H A D | fsck.c | 16 #include "snapshot.h" 28 u32 snapshot) 33 SPOS(inum, 0, snapshot), 45 u32 snapshot) 50 SPOS(inum, 0, snapshot), 63 u32 *snapshot, u64 *inum) 68 *snapshot = le32_to_cpu(s.snapshot); 98 u32 *snapshot) 105 SPOS(0, inode_nr, *snapshot), 27 bch2_count_inode_sectors(struct btree_trans *trans, u64 inum, u32 snapshot) argument 44 bch2_count_subdirs(struct btree_trans *trans, u64 inum, u32 snapshot) argument 62 subvol_lookup(struct btree_trans *trans, u32 subvol, u32 *snapshot, u64 *inum) argument 96 lookup_inode(struct btree_trans *trans, u64 inode_nr, struct bch_inode_unpacked *inode, u32 *snapshot) argument 120 lookup_dirent_in_snapshot(struct btree_trans *trans, struct bch_hash_info hash_info, subvol_inum dir, struct qstr *name, u64 *target, unsigned *type, u32 snapshot) argument 166 lookup_lostfound(struct btree_trans *trans, u32 snapshot, struct bch_inode_unpacked *lostfound, u64 reattaching_inum) argument 458 reconstruct_inode(struct btree_trans *trans, u32 snapshot, u64 inum, u64 size, unsigned mode) argument 471 reconstruct_reg_inode(struct btree_trans *trans, u32 snapshot, u64 inum) argument 613 u32 snapshot; member in struct:inode_walker_entry 869 inode_get_dirent(struct btree_trans *trans, struct btree_iter *iter, struct bch_inode_unpacked *inode, u32 *snapshot) argument 1218 u32 snapshot; member in struct:extent_end 1826 find_snapshot_subvol(struct btree_trans *trans, u32 snapshot, u32 *subvolid) argument 2199 u32 snapshot; local 2362 u32 snapshot; member in struct:pathbuf_entry 2367 path_is_dup(pathbuf *p, u64 inum, u32 snapshot) argument 2388 u32 snapshot = inode_k.k->p.snapshot; local 2514 u32 snapshot; member in struct:nlink_table::nlink 2519 add_nlink(struct bch_fs *c, struct nlink_table *t, u64 inum, u32 snapshot) argument 2557 inc_link(struct bch_fs *c, struct snapshots_seen *s, struct nlink_table *links, u64 range_start, u64 range_end, u64 inum, u32 snapshot) argument [all...] |
H A D | str_hash.h | 159 u32 snapshot) 165 SPOS(inum.inum, desc.hash_key(info, key), snapshot), 191 u32 snapshot; local 192 int ret = bch2_subvolume_get_snapshot(trans, inum.subvol, &snapshot); 196 return bch2_hash_lookup_in_snapshot(trans, iter, desc, info, inum, key, flags, snapshot); 207 u32 snapshot; local 210 ret = bch2_subvolume_get_snapshot(trans, inum.subvol, &snapshot); 215 SPOS(inum.inum, desc.hash_key(info, key), snapshot), 259 subvol_inum inum, u32 snapshot, 271 snapshot), 153 bch2_hash_lookup_in_snapshot(struct btree_trans *trans, struct btree_iter *iter, const struct bch_hash_desc desc, const struct bch_hash_info *info, subvol_inum inum, const void *key, enum btree_iter_update_trigger_flags flags, u32 snapshot) argument 256 bch2_hash_set_in_snapshot(struct btree_trans *trans, const struct bch_hash_desc desc, const struct bch_hash_info *info, subvol_inum inum, u32 snapshot, struct bkey_i *insert, enum btree_iter_update_trigger_flags flags) argument 325 u32 snapshot; local [all...] |
H A D | bkey.h | 107 (l.snapshot ^ r.snapshot)); 114 l.snapshot != r.snapshot ? l.snapshot < r.snapshot : false; 121 l.snapshot != r.snapshot ? l.snapshot < r.snapshot [all...] |
H A D | dirent.c | 207 u32 dir_subvol, u64 dir, u32 snapshot, 223 dirent->k.p.snapshot = snapshot; 226 dir_inum, snapshot, &dirent->k_i, 423 * not just emit a whiteout in the current snapshot - there can only be 432 new_src->k.p.snapshot != old_src.k->p.snapshot; 436 new_dst->k.p.snapshot != old_dst.k->p.snapshot; 445 bch2_btree_iter_set_snapshot(&src_iter, old_src.k->p.snapshot); 206 bch2_dirent_create_snapshot(struct btree_trans *trans, u32 dir_subvol, u64 dir, u32 snapshot, const struct bch_hash_info *hash_info, u8 type, const struct qstr *name, u64 dst_inum, u64 *dir_offset, enum btree_iter_update_trigger_flags flags) argument 505 bch2_empty_dir_snapshot(struct btree_trans *trans, u64 dir, u32 subvol, u32 snapshot) argument 528 u32 snapshot; local 552 u32 snapshot; local [all...] |
H A D | inode.c | 16 #include "snapshot.h" 333 u32 snapshot; local 336 ret = bch2_subvolume_get_snapshot(trans, inum.subvol, &snapshot); 341 SPOS(0, inum.inum, snapshot), 383 inode_p->inode.k.p.snapshot = iter->snapshot; 389 u32 snapshot) 398 inode_p->inode.k.p.snapshot = snapshot; 407 u32 snapshot) 387 __bch2_fsck_write_inode(struct btree_trans *trans, struct bch_inode_unpacked *inode, u32 snapshot) argument 405 bch2_fsck_write_inode(struct btree_trans *trans, struct bch_inode_unpacked *inode, u32 snapshot) argument 723 bch2_inode_create(struct btree_trans *trans, struct btree_iter *iter, struct bch_inode_unpacked *inode_u, u32 snapshot, u64 cpu) argument 809 u32 snapshot; local 863 u32 snapshot; local 1019 bch2_inode_rm_snapshot(struct btree_trans *trans, u64 inum, u32 snapshot) argument [all...] |
/linux-master/drivers/misc/echo/ |
H A D | echo.h | 171 /* snapshot sample of coeffs used for development */ 172 int16_t *snapshot; member in struct:oslec_state
|
/linux-master/net/ceph/ |
H A D | Makefile | 17 pagevec.o snapshot.o string_table.o \
|