c/agent: add hardware report
This adds an agent which currently just gathers hardware information and
dumps it to stdout.
Change-Id: Idb8518d3e40096dd3dd881808bc6ac98082083a0
Reviewed-on: https://review.monogon.dev/c/monogon/+/1067
Tested-by: Jenkins CI
Reviewed-by: Serge Bazanski <serge@monogon.tech>
diff --git a/cloud/agent/testdata/cpuinfo_qemu_virtual.txt b/cloud/agent/testdata/cpuinfo_qemu_virtual.txt
new file mode 100644
index 0000000..15f79f9
--- /dev/null
+++ b/cloud/agent/testdata/cpuinfo_qemu_virtual.txt
@@ -0,0 +1,25 @@
+processor : 0
+vendor_id : GenuineIntel
+cpu family : 6
+model : 6
+model name : QEMU Virtual CPU version 2.1.0
+stepping : 3
+microcode : 0x1
+cpu MHz : 2693.764
+cache size : 4096 KB
+physical id : 0
+siblings : 1
+core id : 0
+cpu cores : 1
+apicid : 0
+initial apicid : 0
+fpu : yes
+fpu_exception : yes
+cpuid level : 4
+wp : yes
+flags : fpu de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pse36 clflush mmx fxsr sse sse2 syscall nx lm rep_good nopl pni cx16 x2apic popcnt hypervisor lahf_lm abm
+bogomips : 5387.52
+clflush size : 64
+cache_alignment : 64
+address sizes : 40 bits physical, 48 bits virtual
+power management: