Files
src/usr.bin
Mateusz Guzik d9d5f2c042 cpuset: add --count
Can be used to count the number of hardware threads in the cpu set.

For example:
$ cpuset -g -p $$
pid 2440 mask: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16,
17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34,
35, 36, 37, 38, 39
pid 2440 domain policy: first-touch mask: 0, 1
$ cpuset -g --count -p $$
40

The intent is to replace calls to sysctl hw.ncpu and kern.smp.cpus which
can be found in the tree, which are not adequate given existence of
cpusets.

Right now only -g -p combination is supported to reduce complexity.
As anything else errors out, this can be expanded later as needed.

Differential Revision:	https://reviews.freebsd.org/D36351
2023-02-04 17:50:41 +00:00
..
2022-08-08 19:06:35 +00:00
2021-11-05 08:53:36 -06:00
2022-03-04 00:03:44 +01:00
2022-03-04 00:03:44 +01:00
2019-01-12 12:35:02 +00:00
2023-01-27 16:33:01 -08:00
2022-02-05 09:08:45 +00:00
2022-12-22 11:13:32 -06:00
2020-10-09 14:03:45 +00:00
2019-12-11 17:37:53 +00:00
2020-10-21 16:30:34 +00:00
2020-06-23 10:27:41 +00:00
2020-07-27 16:51:23 +00:00
2023-02-04 17:50:41 +00:00
2022-04-20 15:18:41 -06:00
2022-12-13 19:31:21 -06:00
2021-01-07 09:31:03 +00:00
2022-02-15 08:46:14 -05:00
2023-01-24 09:53:35 +01:00
2021-03-13 18:26:15 +01:00
2020-10-29 18:39:04 +00:00
2021-09-07 10:25:23 +02:00
2020-10-24 16:40:34 +00:00
2023-02-02 19:20:18 +01:00
2020-12-26 11:47:47 -05:00
2018-03-02 23:31:55 +00:00
2020-06-20 11:27:59 +00:00
2019-11-12 22:31:59 +00:00
2022-10-26 19:46:43 +02:00
2021-07-17 22:20:44 -07:00
2022-02-14 19:30:09 +00:00
2020-12-11 19:27:21 +00:00
2022-10-19 16:02:30 +02:00
2022-09-29 17:56:41 +01:00
2020-12-29 21:48:12 +01:00
2022-02-05 09:13:07 +00:00
2022-02-05 08:58:30 +00:00
2022-07-24 15:01:52 -06:00
2019-12-11 17:37:53 +00:00
2020-07-01 16:33:32 +00:00
2021-08-08 10:16:06 +02:00
2020-06-27 11:19:18 +00:00
2022-11-15 21:20:18 -08:00
2018-07-03 19:09:46 +00:00
2018-06-25 11:44:56 +00:00
2022-10-01 12:05:07 +02:00
2019-12-11 17:37:53 +00:00
2019-12-11 17:37:53 +00:00
2020-03-26 17:58:52 +00:00
2022-12-14 09:54:06 -08:00
2022-10-30 11:29:59 +01:00
2022-11-18 17:01:30 +01:00
2020-07-07 16:07:39 +00:00
2020-08-30 17:37:56 +00:00
2022-09-16 13:27:54 +02:00
2021-10-05 20:27:16 -04:00
2022-11-04 22:46:55 -05:00
2022-10-17 10:39:04 +00:00
2023-01-30 13:37:33 -05:00
2020-07-14 01:54:24 +00:00
2023-01-27 17:22:31 +00:00
2023-02-02 18:34:35 +01:00