Home
last modified time | relevance | path

Searched refs:online (Results 1 – 25 of 29) sorted by relevance

12

/tools/testing/selftests/cpu-hotplug/
A Dcpu-on-off-test.sh33 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 Dfunc_hotplug.tc21 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 Dperf_buffer.c54 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 Draw_tp_test_run.c15 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 Dpmu.c21 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 Dcpu.sh35 echo 0 > $CPUROOT/$1/online
42 echo 1 > $CPUROOT/$1/online
/tools/testing/selftests/cgroup/
A Dtest_cpuset_v1_hp.sh36 echo 0 > /sys/devices/system/cpu/cpu1/online
38 echo 1 > /sys/devices/system/cpu/cpu1/online
A Dtest_cpuset_prs.sh490 CPUFILE=//sys/devices/system/cpu/cpu${CPU}/online
/tools/testing/selftests/sched_ext/
A Dallowed_cpus.bpf.c98 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 Dhotplug.c25 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 Djitter.sh33 if test -f $i/online
58 if cpus=`grep 1 /sys/devices/system/cpu/*/online 2>&1 |
/tools/testing/selftests/memory-hotplug/
A Dmem-on-off-test.sh58 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 Dtool_pmu.c370 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 Dcpumap.c720 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 Drun-on-all.sh4 CPUS_ONLINE=$(lscpu --online -p=cpu|grep -v -e '#')
/tools/sched_ext/
A Dscx_qmap.bpf.c644 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 Ddl_bw_dump.py31 if rq.online == 0:
/tools/power/x86/intel-speed-select/
A Disst-config.c478 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 Dtest_power_supply_properties.sh63 test_sysfs_prop_optional_range online 0 2
/tools/sched_ext/include/scx/
A Dcommon.bpf.h421 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 Dfib_nexthop_multiprefix.sh236 cpus=$(cat /sys/devices/system/cpu/online)
/tools/testing/selftests/drivers/platform/x86/intel/ifs/
A Dtest_ifs.sh84 echo "$on_off" > "$CPU_SYSFS"/cpu"$i"/online
/tools/perf/Documentation/
A Dperf-daemon.txt170 Make sure control session is online:
A Dperf-stat.txt301 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 Dperf-ftrace.txt53 Default is to trace on all online CPUs.

Completed in 45 milliseconds

12