Lines Matching refs:utils

17 from linux import utils
19 printk_info_type = utils.CachedType("struct printk_info")
20 prb_data_blk_lpos_type = utils.CachedType("struct prb_data_blk_lpos")
21 prb_desc_type = utils.CachedType("struct prb_desc")
22 prb_desc_ring_type = utils.CachedType("struct prb_desc_ring")
23 prb_data_ring_type = utils.CachedType("struct prb_data_ring")
24 printk_ringbuffer_type = utils.CachedType("struct printk_ringbuffer")
25 atomic_long_type = utils.CachedType("atomic_long_t")
39 prb = utils.read_memoryview(inf, prb_addr, sz).tobytes()
45 desc_ring = utils.read_memoryview(inf, addr, sz).tobytes()
49 desc_ring_count = 1 << utils.read_u32(desc_ring, off)
52 addr = utils.read_ulong(desc_ring, off)
53 descs = utils.read_memoryview(inf, addr, desc_sz * desc_ring_count).tobytes()
58 addr = utils.read_ulong(desc_ring, off)
59 infos = utils.read_memoryview(inf, addr, info_sz * desc_ring_count).tobytes()
65 text_data_ring = utils.read_memoryview(inf, addr, sz).tobytes()
69 text_data_sz = 1 << utils.read_u32(text_data_ring, off)
71 addr = utils.read_ulong(text_data_ring, off)
72 text_data = utils.read_memoryview(inf, addr, text_data_sz).tobytes()
88 desc_sv_bits = utils.get_long_type().sizeof * 8
95 tail_id = utils.read_u64(desc_ring, off + counter_off)
97 head_id = utils.read_u64(desc_ring, off + counter_off)
106 state = 3 & (utils.read_u64(descs, desc_off + sv_off +
114 begin = utils.read_ulong(descs, desc_off + begin_off) % text_data_sz
115 end = utils.read_ulong(descs, desc_off + next_off) % text_data_sz
126 text_start = begin + utils.get_long_type().sizeof
128 text_len = utils.read_u16(infos, info_off + len_off)
137 time_stamp = utils.read_u64(infos, info_off + ts_off)