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
9f5f567d90
Merge pull request #194 from dezgeg/blockdev
...
blockdev: Add tool
2025-02-05 18:19:41 +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
renovate[bot]
770b2eb308
fix(deps): update rust crate parse_datetime to 0.7.0
2025-01-20 00:59:38 +00:00
Tuomas Tynkkynen
8c98151001
blockdev: Add tool
...
This supports most of the functionality; only missing functionality is
--report with no arguments.
2025-01-19 01:39:27 +02:00
Daniel Hofstetter
770158d530
Merge pull request #179 from dezgeg/fsfreeze
...
fsfreeze: add tool (+ linux-raw-sys dependency)
2025-01-08 16:42:52 +01:00
Tuomas Tynkkynen
ca574b49d3
fsfreeze: Add tool
...
Add fsfreeze, a Linux-specific tool used to freeze/thaw writes to a
filesystem. It's an extremely simple tool so this should have full
feature-parity.
2025-01-04 15:26:19 +02:00
Goffredo Baroncelli
98ef2d7f82
dmesg: add support of reading from /dev/kmesg
...
In order to properly read from /dev/kmsg, we need [*]:
1) open /dev/kmsg with O_NONBLOCK
2) handle the EAGAIN/WouldBlock error as end of records
3) treat '\n' (and not '\0') as record separator.
4) do lseek(fd, 0, SEEK_DATA)
Because Windows doesn't support O_NONBLOCK and SEEK_DATA, we had protect
these code with #[cfg(not(target_os = "windows"))]. Moreover because
Windows doesn't have /dev/kmsg, it is mandatory to use the '-K' switch.
[*] https://www.kernel.org/doc/Documentation/ABI/testing/dev-kmsg
2025-01-03 11:20:02 +01:00
Goffredo Baroncelli
f878075a74
dmesg: add the field record separator to the the struct dmesg
...
Add the field kmsg_record_separator to the struct Dmesg so it can be
changed from \0 to \n when dmesg reads from a file.
2025-01-02 17:03:11 +01:00
Daniel Hofstetter
7c7809ec99
Merge pull request #167 from fuad1502/dmesg-filter
...
Support `dmesg` filtering options (`--facility`, `--level`, `--since`, and `--until` options).
2024-12-15 14:43:43 +01:00
Fuad Ismail
e6364af9c6
dmesg: parse unknown facility and level as an Unknown.
2024-12-15 02:33:28 +07:00
Fuad Ismail
5a333b463e
dmesg: remove unnecessary 'remove_enclosing_quotes' function.
2024-12-14 22:28:27 +07:00
Fuad Ismail
5335f1bc2b
dmesg: simplify expression.
...
Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com >
2024-12-14 11:43:39 +07:00
Sylvestre Ledru
a84726cfcb
Merge pull request #159 from cakebaker/bump_tabled
...
Bump `tabled` and adapt `lsmem` to a renamed struct
2024-12-13 17:41:00 +01:00
Fuad Ismail
9e99aad01b
dmesg: support single quoted argument for since/until options.
2024-12-12 13:17:57 +07:00
Fuad Ismail
b90751119d
tests/dmesg: use fixed offset time argument in test.
2024-12-12 12:54:58 +07:00
Fuad Ismail
48c4f78088
dmesg: set to fixed timezone in test.
2024-12-11 15:48:51 +07:00
Fuad Ismail
a35c00b0e4
dmesg: implement since/until filter.
2024-12-11 14:48:45 +07:00
Fuad Ismail
c7ff9cd553
dmesg: modify is_record_in_set to accept Option.
2024-12-11 12:04:15 +07:00
Fuad Ismail
fb77a356ca
dmesg: parse since/until option values.
2024-12-11 11:32:45 +07:00
Fuad Ismail
8cd9f9d89f
dmesg: add since/until options.
2024-12-11 10:42:07 +07:00
Fuad Ismail
07e01a5276
dmesg: cache record regex.
2024-12-09 17:59:48 +07:00
Fuad Ismail
e5ee286c7a
dmesg: implement level & facility filters.
2024-12-09 17:59:48 +07:00
Fuad Ismail
db42f300b0
dmesg: add facility & level argument.
2024-12-09 17:59:47 +07:00
Fuad Ismail
6adabf4e7d
dmesg: use RecordIterator for Dmesg print.
2024-12-09 17:53:41 +07:00
Fuad Ismail
2f803ceae3
dmesg: implement RecordIterator.
2024-12-07 09:27:21 +07:00
Fuad Ismail
e965074baf
dmesg: avoid using insert for better readability.
2024-11-30 22:15:38 +07:00
Fuad Ismail
f3de668f7f
dmesg: add file header.
2024-11-30 22:07:32 +07:00
Fuad Ismail
c3c80c4bcd
dmesg: refactor to avoid duplicate code.
...
Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com >
2024-11-30 22:03:03 +07:00
Fuad Ismail
dff0a8ea0b
dmesg: change Record timestamp_us data type to i64.
2024-11-27 16:05:31 +07:00
Fuad Ismail
c4944f4c85
dmesg: remove int to float conversion for adding sign.
2024-11-27 15:59:03 +07:00
Fuad Ismail
f621687dd6
dmesg: use utmpx to get boot time.
2024-11-27 00:45:13 +07:00