Parsing `/proc/cpuinfo` is fragile to changes to the format. Linux kernel provides the [hwprobe](https://docs.kernel.org/arch/riscv/hwprobe.html) system call to probe extensions. See <https://zenn.dev/mod_poppo/articles/detect-processor-features-riscv-linux> for examples.
Parsing
/proc/cpuinfois fragile to changes to the format. Linux kernel provides the hwprobe system call to probe extensions. See https://zenn.dev/mod_poppo/articles/detect-processor-features-riscv-linux for examples.