Home | History | Annotate | Download | only in update_payload

Lines Matching refs:block

5 """Tracing block data source through a Chrome OS update payload.
7 This module is used internally by the main Payload class for tracing block
23 # Payload block tracing.
26 """Tracing the origin of block data through update instructions.
38 def _TraceBlock(block, skip, trace_out_file, operations, base_name):
39 """Trace the origin of a given block through a sequence of operations.
41 This method tries to map the given dest block to the corresponding source
42 block from which its content originates in the course of an update. It
46 source blocks responsible for the data in the given dest block to the
50 block: the block number to trace
62 # Is the traced block mentioned in the dest extents?
65 if (block >= dst_ex.start_block
66 and block < dst_ex.start_block + dst_ex.num_blocks):
70 total_block_offset += block - dst_ex.start_block
72 '%d: %s: found %s (total block offset: %d)\n' %
73 (block, dst_ex_name, common.FormatExtent(dst_ex),
85 # For MOVE, find corresponding source block and keep tracing.
89 block = src_ex.start_block + total_block_offset
92 (src_ex_name, common.FormatExtent(src_ex), block))
97 def Run(self, block, skip, trace_out_file, is_kernel):
98 """Block tracer entry point, invoking the actual search.
101 block: the block number whose origin to trace
113 self._TraceBlock(block, skip, trace_out_file, operations, base_name)