1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-01-26 10:03:40 +03:00
Giedrius Statkevičius 68337e55f6 condition: add CPUFeature
Taking a stab at implementing #14479.

Add {Condition,Assert}CPUFeature to `systemd-analyze` & friends. Implement it
by executing the CPUID instruction. Add tables for common x86/i386
features.

Tested via unit tests + checked that commands such as:

```bash
systemd-analyze condition 'AssertCPUFeature = rdrand'
```

Succeed as expected and that commands such as

```bash
systemd-analyze condition 'AssertCPUFeature = foobar'
```

Fail as expected. Finally, I have amended the `systemd.unit` manual page
with the new condition and the list of all currently supported flags.
2021-02-17 15:31:29 +09:00
..
2021-02-15 21:34:00 +00:00
2020-11-25 09:48:17 +01:00
2020-12-17 20:02:32 +01:00
2020-12-16 18:30:15 +01:00
2020-03-27 20:12:44 +01:00
2020-12-17 20:02:32 +01:00
2020-12-16 17:21:48 +01:00
2021-01-04 11:01:17 +00:00
2021-01-04 11:01:17 +00:00
2021-01-04 11:01:17 +00:00
2021-01-25 12:31:17 +09:00
2020-12-18 12:59:29 +09:00
2021-01-15 10:33:28 +01:00
2021-02-04 19:17:50 +01:00
2021-02-17 15:31:29 +09:00
2020-11-09 13:23:58 +09:00
2020-12-17 20:02:32 +01:00
2020-12-16 17:21:48 +01:00
2020-12-17 20:02:32 +01:00