<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://truxwiki.com/index.php?action=history&amp;feed=atom&amp;title=Truxton_dump_black_box</id>
	<title>Truxton dump black box - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://truxwiki.com/index.php?action=history&amp;feed=atom&amp;title=Truxton_dump_black_box"/>
	<link rel="alternate" type="text/html" href="https://truxwiki.com/index.php?title=Truxton_dump_black_box&amp;action=history"/>
	<updated>2026-09-09T15:59:31Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.34.1</generator>
	<entry>
		<id>https://truxwiki.com/index.php?title=Truxton_dump_black_box&amp;diff=6475&amp;oldid=prev</id>
		<title>Sam: Created page with &quot;This function tells a Truxton process on this machine to dump its state.  =Syntax= &lt;source lang=&quot;C&quot;&gt; void truxton_dump_black_box( uint64_t process_id ); &lt;/source...&quot;</title>
		<link rel="alternate" type="text/html" href="https://truxwiki.com/index.php?title=Truxton_dump_black_box&amp;diff=6475&amp;oldid=prev"/>
		<updated>2023-05-28T14:44:16Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;This function tells a Truxton process on this machine to dump its &lt;a href=&quot;/Black_Box&quot; title=&quot;Black Box&quot;&gt;state&lt;/a&gt;.  =Syntax= &amp;lt;source lang=&amp;quot;C&amp;quot;&amp;gt; void truxton_dump_black_box( uint64_t process_id ); &amp;lt;/source...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;This function tells a Truxton process on this machine to dump its [[Black Box|state]].&lt;br /&gt;
&lt;br /&gt;
=Syntax=&lt;br /&gt;
&amp;lt;source lang=&amp;quot;C&amp;quot;&amp;gt;&lt;br /&gt;
void truxton_dump_black_box( uint64_t process_id );&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Parameters=&lt;br /&gt;
==&amp;lt;code&amp;gt;process_id&amp;lt;/code&amp;gt;==&lt;br /&gt;
The id of the process to dump.&lt;br /&gt;
&lt;br /&gt;
=Sample=&lt;br /&gt;
&amp;lt;source lang=&amp;quot;C&amp;quot; highlight=&amp;quot;5&amp;quot;&amp;gt;&lt;br /&gt;
void whats_going_on( uint64_t process_id )&lt;br /&gt;
{&lt;br /&gt;
   printf( &amp;quot;Dumping the black box of process %&amp;quot; PRIU64 &amp;quot;\n&amp;quot; );&lt;br /&gt;
&lt;br /&gt;
   truxton_dump_black_box( process_id );&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;code&amp;gt;PRIu64&amp;lt;/code&amp;gt; in the sample code above is a standard way of [https://en.wikipedia.org/wiki/C_data_types#Printf_and_scanf_format_specifiers formatting] a 64-bit unsigned integer in C.&lt;br /&gt;
Over the years, different compilers on different operating systems used different format specifiers for things, these &amp;lt;code&amp;gt;PRI&amp;lt;/code&amp;gt; macros, along with some tricky string concatenation the compilers perform for you, allow you to maintain a single code base without a bunch of macro magic.&lt;/div&gt;</summary>
		<author><name>Sam</name></author>
		
	</entry>
</feed>