Commit Graph

42 Commits

Author SHA1 Message Date
Tuomas Tynkkynen 87841f454e lscpu: Use parse_size from uucore 2025-10-12 15:17:41 +03:00
Daniel Hofstetter 12b1e3d6e9 clippy: fix warnings from uninlined_format_args 2025-06-27 11:51:13 +02:00
Alexandre Macabies 8a7b23d4eb lscpu: Add option --bytes
Fixes #17.
2025-02-22 17:16:15 +01:00
Daniel Hofstetter 68706fbb63 lscpu: simplify signature of CpuInfo::new() 2025-02-17 16:51:13 +01:00
Andrey Aleksandrov 748bbf845e Update src/uu/lscpu/src/sysfs.rs
Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
2025-02-17 17:34:16 +02:00
alxndrv 3180b89522 lscpu: Fix minor issues from review 2025-02-17 16:40:08 +02:00
alxndrv 4b6b9f9291 lscpu: Show "threads per core" count 2025-02-14 22:17:52 +02:00
alxndrv c6a3659029 lscpu: Print cache sizes in human-readable form 2025-02-14 20:38:12 +02:00
alxndrv 2a381e5321 lscpu: Use own function to parse cache sizes 2025-02-14 19:33:19 +02:00
alxndrv bc44b86fe7 lscpu: Calculate core/socket count 2025-02-14 15:31:54 +02:00
alxndrv 41bff4fbd6 lscpu: Show number of physical CPU sockets, add unit test 2025-02-14 14:57:43 +02:00
alxndrv 99c751bd1d lscpu: Parse CPU cache topology from sysfs 2025-02-14 13:34:36 +02:00
alxndrv e689bee771 lscpu: Read CPU count from sysfs, add freq_boost status to output 2025-02-13 22:10:25 +02:00
alxndrv 3980e7714f lscpu: Show CPU vulnerability mitigation info 2025-02-13 19:25:44 +02:00
alxndrv 21706eb103 lscpu: Move code around as per the review comments 2025-02-13 12:28:00 +02:00
alxndrv 0281da00dd lscpu: Align output values to the same column 2025-02-12 20:22:05 +02:00
alxndrv e0a6ec7eb5 lscpu: Add support for CPU byte order 2025-02-12 19:40:34 +02:00
alxndrv 5e98c66882 lscpu: Don't early-return on failure to read /proc/cpuinfo 2025-02-12 19:15:57 +02:00
alxndrv 3953552e3a lscpu: Clean up creation of new entries 2025-02-12 18:56:34 +02:00
alxndrv 1e456daff5 lscpu: Use recursive printing logic to output nested fields 2025-02-12 18:37:49 +02:00
alxndrv edb3b83ec9 lscpu: Use common function to read fields from /proc/cpuinfo 2025-02-12 17:05:37 +02:00
alxndrv 9e1b825a7d lscpu: Add support for nested fields in output 2025-02-12 16:50:14 +02:00
alxndrv b6a4bfd888 lscpu: Ensure regex behaves correctly with multi-line input 2025-02-12 16:42:56 +02:00
Yang Hau 4fc7653e84 lscpu: Add option --json
closes #15
2025-02-08 16:05:26 +01:00
Sylvestre Ledru 25c6dac67b Merge pull request #208 from cakebaker/lscpu_remove_underscore_from_var_name
lscpu: remove underscore-prefix from var name
2025-01-29 17:30:50 +01:00
Daniel Hofstetter c9cf60cd7d lscpu: remove underscore-prefix from var name 2025-01-29 17:05:01 +01:00
Daniel Hofstetter 3fde4a5df9 lscpu: remove irrelevant info from help text 2025-01-29 16:44:33 +01:00
Daniel Hofstetter 3e70821c43 lscpu: fix code formatting 2025-01-29 16:40:37 +01:00
Harshit Verma 16817945c4 test: add hex flag test for lscpu 2025-01-24 22:28:48 +05:30
Harshit Verma ffe2ba60b0 feature: add --hex flag for lscpu
This commits add the `--hex` flag for lscpu in order to convert
all the decimal values (for now only cores) to hexadecimal.
2025-01-23 06:08:43 +05:30
Sylvestre Ledru 314beb36ef Merge pull request #80 from cakebaker/bump_sysinfo
Bump `sysinfo` and fix compile error in `lscpu`
2024-08-01 22:15:11 +02:00
Daniel Hofstetter 801292a6e4 lscpu: fix bin name in Cargo.toml 2024-08-01 14:34:15 +02:00
Daniel Hofstetter 921c99c6e7 lscpu: remove unused line causing compile error 2024-08-01 09:53:26 +02:00
Daniel Hofstetter 2ddfed1d76 lscpu: make --help & --version work 2024-05-13 09:33:25 +02:00
Daniel Hofstetter d875ddb07e lscpu: fix two "unused variable" warnings 2024-05-06 15:12:11 +02:00
Daniel Hofstetter 2fb5f5e996 lscpu: fix "never_loop" clippy lint 2024-05-06 15:12:11 +02:00
Sylvestre Ledru 7c7f5fa5d4 rustfmt the code 2024-01-26 19:16:15 +01:00
Sylvestre Ledru 4280abe67c match the coreutils style 2024-01-26 19:15:05 +01:00
Sylvestre Ledru 1b4b449d49 match the coreutils style 2024-01-26 19:09:54 +01:00
Sylvestre Ledru 9737677a2d add license headers 2024-01-16 22:29:02 +01:00
Sylvestre Ledru e99a1184d0 rustfmt the code 2024-01-16 19:23:15 +01:00
Sylvestre Ledru 8bba913e56 draft of lscpu 2024-01-16 19:10:13 +01:00