Changes

Jump to navigation Jump to search
107 bytes added ,  18:33, 26 May 2022
m
Fixed a bunch of typos
Line 23: Line 23:  
=== Pretty output ===
 
=== Pretty output ===
   −
Command <decode> prints JSON text in one line. This can be read by any further JSON-aware tool for parsing. For human eyes it's more convenient to read JSON multi-line with indentation. CRIT can do this when using the <code>show</code> action or the <code>--pretty</code> option.
+
<code>crit decode</code> prints JSON text in one line. This can be read by any further JSON-aware tool for parsing. For human eyes it's more convenient to read JSON multi-line with indentation. CRIT can do this when using the <code>show</code> action or the <code>--pretty</code> option.
    
Wend doing pretty optput CRIT does a little bit more, than just multiline indented JSON.
 
Wend doing pretty optput CRIT does a little bit more, than just multiline indented JSON.
Line 44: Line 44:  
== Functionality ==
 
== Functionality ==
   −
=== Convert images to JSON From IMG ===
+
=== Convert images from IMG to JSON ===
      −
This is the replacement for (rather nasty) <code>criu show</code> code. Also this is the way to edit the images before restoring from them.
+
<code>crit decode</code> is the replacement for the (rather nasty) <code>criu show</code> code. This is also the way to edit the images before restoring from them.
    
It uses [https://developers.google.com/protocol-buffers/docs/reference/python/google.protobuf.text_format-module text_format] as a human-readable format for protobuf messages.
 
It uses [https://developers.google.com/protocol-buffers/docs/reference/python/google.protobuf.text_format-module text_format] as a human-readable format for protobuf messages.
Line 417: Line 417:     
<pre>
 
<pre>
cat "core-5679.json" | crit decode  
+
cat "core-5679.img" | crit decode  
 
</pre>
 
</pre>
    
=== Convert images from JSON to IMG ===
 
=== Convert images from JSON to IMG ===
   −
This Converts the image from JSON to IMG.Standard usage would look like
+
<code>crit encode</code> converts the image from JSON to IMG. Standard usage would look like:
    
<pre>
 
<pre>
Line 434: Line 434:  
</pre>
 
</pre>
   −
Incase a "-o" Flag is not specified the input is piped out to STDOUT.
+
Incase a "-o" flag is not specified the input is piped out to STDOUT.
    
=== Generate core files out of task images ===
 
=== Generate core files out of task images ===
Line 442: Line 442:  
=== Show images statistics ===
 
=== Show images statistics ===
   −
E.g. -- total number of processes, files, memory, sockets, etc.
+
<code>crit x</code> allows you to explore image statistics.
Use
+
E.g. Total number of processes, files, memory, sockets, etc.
 +
 
 
<pre>
 
<pre>
 
crit x $directory_with_images <explore type>
 
crit x $directory_with_images <explore type>
16

edits

Navigation menu