| /tools/testing/selftests/cpu-hotplug/ |
| A D | cpu-on-off-test.sh | 33 online_cpus=`cat $SYSFS/devices/system/cpu/online` 64 if [ -f $cpu/online ] && grep -q $state $cpu/online; then 82 grep -q 1 $SYSFS/devices/system/cpu/cpu$1/online 87 grep -q 0 $SYSFS/devices/system/cpu/cpu$1/online 92 echo 1 > $SYSFS/devices/system/cpu/cpu$1/online 97 echo 0 > $SYSFS/devices/system/cpu/cpu$1/online 121 echo $FUNCNAME $cpu: unexpected online >&2
|
| /tools/testing/selftests/ftrace/test.d/ftrace/ |
| A D | func_hotplug.tc | 21 if [ -f $i/online ] && [ "$(cat $i/online)" = "1" ]; then 38 (echo 0 > $cpu/online) 40 (echo 1 > $cpu/online)
|
| /tools/testing/selftests/bpf/prog_tests/ |
| A D | perf_buffer.c | 54 bool *online; in serial_test_perf_buffer() local 61 &online, &on_len); in serial_test_perf_buffer() 66 if (online[i]) in serial_test_perf_buffer() 95 if (i >= on_len || !online[i]) { in serial_test_perf_buffer() 118 if (i >= on_len || !online[i]) in serial_test_perf_buffer() 146 free(online); in serial_test_perf_buffer()
|
| A D | raw_tp_test_run.c | 15 bool *online = NULL; in test_raw_tp_test_run() local 22 err = parse_cpu_mask_file("/sys/devices/system/cpu/online", &online, in test_raw_tp_test_run() 58 if (!online[i]) in test_raw_tp_test_run() 85 free(online); in test_raw_tp_test_run()
|
| /tools/perf/arch/arm/util/ |
| A D | pmu.c | 21 struct perf_cpu_map *intersect, *online = cpu_map__online(); in perf_pmu__arch_init() local 44 intersect = perf_cpu_map__intersect(online, pmu->cpus); in perf_pmu__arch_init() 45 perf_cpu_map__put(online); in perf_pmu__arch_init()
|
| /tools/testing/selftests/cpufreq/ |
| A D | cpu.sh | 35 echo 0 > $CPUROOT/$1/online 42 echo 1 > $CPUROOT/$1/online
|
| /tools/testing/selftests/cgroup/ |
| A D | test_cpuset_v1_hp.sh | 36 echo 0 > /sys/devices/system/cpu/cpu1/online 38 echo 1 > /sys/devices/system/cpu/cpu1/online
|
| A D | test_cpuset_prs.sh | 490 CPUFILE=//sys/devices/system/cpu/cpu${CPU}/online
|
| /tools/testing/selftests/sched_ext/ |
| A D | allowed_cpus.bpf.c | 98 const struct cpumask *online = scx_bpf_get_online_cpumask(); in BPF_STRUCT_OPS_SLEEPABLE() local 100 bpf_cpumask_set_cpu(bpf_cpumask_first(online), mask); in BPF_STRUCT_OPS_SLEEPABLE() 101 scx_bpf_put_cpumask(online); in BPF_STRUCT_OPS_SLEEPABLE()
|
| A D | hotplug.c | 25 static void toggle_online_status(bool online) in toggle_online_status() argument 27 long val = online ? 1 : 0; in toggle_online_status() 33 online ? "online" : "offline", strerror(errno)); in toggle_online_status()
|
| /tools/testing/selftests/rcutorture/bin/ |
| A D | jitter.sh | 33 if test -f $i/online 58 if cpus=`grep 1 /sys/devices/system/cpu/*/online 2>&1 |
|
| /tools/testing/selftests/memory-hotplug/ |
| A D | mem-on-off-test.sh | 58 hotpluggable_memory online 63 grep -q online $SYSFS/devices/system/memory/memory$1/state 73 echo online > $SYSFS/devices/system/memory/memory$1/state 103 echo $FUNCNAME $memory: unexpected online >&2
|
| /tools/perf/util/ |
| A D | tool_pmu.c | 370 struct perf_cpu_map *online = cpu_map__online(); in tool_pmu__read_event() local 372 if (!online) in tool_pmu__read_event() 377 *result = perf_cpu_map__nr(online); in tool_pmu__read_event() 381 perf_cpu_map__intersect(online, evsel->core.cpus); in tool_pmu__read_event() 394 perf_cpu_map__intersect(online, evsel->core.pmu_cpus); in tool_pmu__read_event() 399 *result = perf_cpu_map__nr(online); in tool_pmu__read_event() 402 perf_cpu_map__put(online); in tool_pmu__read_event()
|
| A D | cpumap.c | 720 static struct perf_cpu_map *online; in cpu_map__online() local 722 if (!online) in cpu_map__online() 723 online = perf_cpu_map__new_online_cpus(); /* from /sys/devices/system/cpu/online */ in cpu_map__online() 725 return perf_cpu_map__get(online); in cpu_map__online()
|
| /tools/virtio/ringtest/ |
| A D | run-on-all.sh | 4 CPUS_ONLINE=$(lscpu --online -p=cpu|grep -v -e '#')
|
| /tools/sched_ext/ |
| A D | scx_qmap.bpf.c | 644 const struct cpumask *possible, *online; in print_cpus() local 650 online = scx_bpf_get_online_cpumask(); in print_cpus() 656 if (bpf_cpumask_test_cpu(cpu, online)) in print_cpus() 671 scx_bpf_put_cpumask(online); in print_cpus() 711 const struct cpumask *online; in monitor_cpuperf() local 715 online = scx_bpf_get_online_cpumask(); in monitor_cpuperf() 721 if (!bpf_cpumask_test_cpu(i, online)) in monitor_cpuperf() 760 scx_bpf_put_cpumask(online); in monitor_cpuperf()
|
| /tools/sched/ |
| A D | dl_bw_dump.py | 31 if rq.online == 0:
|
| /tools/power/x86/intel-speed-select/ |
| A D | isst-config.c | 478 ret = read(fd, &online, sizeof(online)); in is_cpu_online() 485 online = 1; in is_cpu_online() 487 online = 0; in is_cpu_online() 489 return online; in is_cpu_online() 553 int online; in for_each_online_power_domain_in_set() local 560 if (online < 0) in for_each_online_power_domain_in_set() 563 if (!online) in for_each_online_power_domain_in_set() 622 int online; in for_each_online_target_cpu_in_set() local 630 online = in for_each_online_target_cpu_in_set() 2651 int online; in set_turbo_mode() local [all …]
|
| /tools/testing/selftests/power_supply/ |
| A D | test_power_supply_properties.sh | 63 test_sysfs_prop_optional_range online 0 2
|
| /tools/sched_ext/include/scx/ |
| A D | common.bpf.h | 421 def_iter_struct(online); 422 def_iter_new(online); 423 def_iter_next(online); 424 def_iter_destroy(online); 425 #define for_each_online_cpu(cpu) bpf_for_each(online, cpu, NULL, 0)
|
| /tools/testing/selftests/net/ |
| A D | fib_nexthop_multiprefix.sh | 236 cpus=$(cat /sys/devices/system/cpu/online)
|
| /tools/testing/selftests/drivers/platform/x86/intel/ifs/ |
| A D | test_ifs.sh | 84 echo "$on_off" > "$CPU_SYSFS"/cpu"$i"/online
|
| /tools/perf/Documentation/ |
| A D | perf-daemon.txt | 170 Make sure control session is online:
|
| A D | perf-stat.txt | 301 socket number and the number of online processors on that socket. This is 308 die number and the number of online processors on that die. This is 315 cluster number and the number of online processors on that cluster. This is 331 core number and the number of online logical processors on that physical processor.
|
| A D | perf-ftrace.txt | 53 Default is to trace on all online CPUs.
|