| /linux/tools/testing/selftests/cpu-hotplug/ |
| H 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
|
| /linux/Documentation/translations/zh_CN/core-api/ |
| H A D | cpu_hotplug.rst | 107 -r--r--r-- 1 root root 4.0K Dec 21 16:33 online 111 文件 *offline* 、 *online* 、*possible* 、*present* 代表CPU掩码。每个CPU文件 112 夹包含一个 *online* 文件,控制逻辑上的开(1)和关(0)状态。要在逻辑上关闭CPU4:: 114 $ echo 0 > /sys/devices/system/cpu/cpu4/online 120 $ echo 1 > /sys/devices/system/cpu/cpu4/online 379 online 对应ONLINE阶段中的状态 387 @name参数的示例:"perf/online", "perf/x86:prepare", "RCU/tree:dying", "sched/waitempty" 521 state = cpuhp_setup_state_nocalls(CPUHP_ONLINE_DYN, "subsys:online", subsys_cpu_online, NULL); 529 …state = cpuhp_setup_state_multi(CPUHP_ONLINE_DYN, "subsys:online", subsys_cpu_online, subsys_cpu_o… 557 138: mm/vmscan:online [all …]
|
| /linux/Documentation/core-api/ |
| H A D | cpu_hotplug.rst | 36 other CPUs later online. 41 those CPUs can not be brought online later. 65 Bitmap of all CPUs currently online. Its set in ``__cpu_up()`` 73 of them may be online. When physical hotplug is processed by the relevant 106 -r--r--r-- 1 root root 4.0K Dec 21 16:33 online 110 The files *offline*, *online*, *possible*, *present* represent the CPU masks. 111 Each CPU folder contains an *online* file which controls the logical on (1) and 114 $ echo 0 > /sys/devices/system/cpu/cpu4/online 119 bring CPU4 back online:: 121 $ echo 1 > /sys/devices/system/cpu/cpu4/online [all …]
|
| /linux/Documentation/admin-guide/ |
| H A D | cputopology.rst | 61 offline: CPUs that are not online because they have been 66 online: CPUs that are online and being scheduled [cpu_online_mask] 69 brought online if they are present. [cpu_possible_mask] 80 being 32. Note also that CPUs 2 and 4-31 are not online but could be 81 brought online as they are both present and possible:: 85 online: 0-1,3 92 online.):: 96 online: 0-1,3
|
| /linux/tools/testing/selftests/bpf/prog_tests/ |
| H 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()
|
| H 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()
|
| /linux/Documentation/ABI/testing/ |
| H A D | sysfs-devices-online | 1 What: /sys/devices/.../online 5 The /sys/devices/.../online attribute is only present for 6 devices whose bus types provide .online() and .offline() 13 this file, the device bus type's .online() callback is executed 20 type's .online() is executed successfully.
|
| H A D | sysfs-devices-system-xen_cpu | 12 What: /sys/devices/system/xen_cpu/xen_cpu#/online 16 Interface to online/offline Xen physical cpus 19 to online/offline physical cpus, except cpu0 due to several
|
| H A D | sysfs-devices-memory | 47 is read-write. When read, it returns the online/offline 49 the online/offline state of a memory block using the following 52 # echo online > /sys/devices/system/memory/memoryX/state 60 reading the file will return "online"; the zone information 77 For online memory blocks, it returns in which zone memory 85 the state of an offline memory block to "online". Only one of
|
| /linux/kernel/irq/ |
| H A D | matrix.c | 17 bool online; member 88 BUG_ON(cm->online); in irq_matrix_online() 96 cm->online = true; in irq_matrix_online() 111 cm->online = false; in irq_matrix_offline() 146 if (!cm->online || cm->available <= maxavl) in matrix_find_best_cpu() 167 if (!cm->online || cm->managed_allocated > allocated) in matrix_find_best_cpu_managed() 228 if (cm->online) { in irq_matrix_reserve_managed() 278 if (cm->online) { in irq_matrix_remove_managed() 439 if (cm->online) in irq_matrix_free() 444 if (cm->online) in irq_matrix_free()
|
| /linux/Documentation/arch/s390/ |
| H A D | driver-model.rst | 49 online: 50 An interface to set the device online and offline. 52 notify function under 1.2), piping 0 to online will forcibly delete 77 via the 'online' interface. 93 int online; 161 activated via the 'online' attribute. The driver should finally 171 verified that the device is not already online. 175 de-activated via the 'online' attribute. The driver should shut 185 verified that the device is online. 194 * In online state, device detached (CIO_GONE) or last path gone [all …]
|
| /linux/tools/testing/selftests/ftrace/test.d/ftrace/ |
| H 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)
|
| /linux/tools/perf/arch/arm/util/ |
| H A D | pmu.c | 21 struct perf_cpu_map *intersect, *online = cpu_map__online(); in perf_pmu__arch_init() local 42 intersect = perf_cpu_map__intersect(online, pmu->cpus); in perf_pmu__arch_init() 43 perf_cpu_map__put(online); in perf_pmu__arch_init()
|
| /linux/drivers/power/supply/ |
| H A D | max14656_charger_detector.c | 86 int online; member 152 chip->online = 1; in max14656_irq_worker() 154 chip->online = 0; in max14656_irq_worker() 216 val->intval = chip->online; in max14656_get_property() 262 chip->online = 0; in max14656_probe()
|
| H A D | power_supply_leds.c | 171 union power_supply_propval online; in power_supply_update_gen_leds() local 173 if (power_supply_get_property(psy, POWER_SUPPLY_PROP_ONLINE, &online)) in power_supply_update_gen_leds() 176 dev_dbg(&psy->dev, "%s %d\n", __func__, online.intval); in power_supply_update_gen_leds() 178 if (online.intval) in power_supply_update_gen_leds()
|
| H A D | rn5t618_power.c | 434 bool online; in rn5t618_adp_get_property() local 441 online = !!(chgstate & CHG_STATE_ADP_INPUT); in rn5t618_adp_get_property() 445 val->intval = online; in rn5t618_adp_get_property() 448 if (!online) { in rn5t618_adp_get_property() 554 bool online; in rn5t618_usb_get_property() local 561 online = !!(chgstate & CHG_STATE_USB_INPUT); in rn5t618_usb_get_property() 565 val->intval = online; in rn5t618_usb_get_property() 568 if (!online) { in rn5t618_usb_get_property() 578 if (!online || (info->rn5t618->variant != RC5T619)) in rn5t618_usb_get_property()
|
| /linux/tools/perf/util/ |
| H A D | tool_pmu.c | 393 struct perf_cpu_map *online = cpu_map__online(); in tool_pmu__read_event() local 395 if (!online) in tool_pmu__read_event() 400 *result = perf_cpu_map__nr(online); in tool_pmu__read_event() 404 perf_cpu_map__intersect(online, evsel->core.cpus); in tool_pmu__read_event() 417 perf_cpu_map__intersect(online, evsel->core.pmu_cpus); in tool_pmu__read_event() 422 *result = perf_cpu_map__nr(online); in tool_pmu__read_event() 425 perf_cpu_map__put(online); in tool_pmu__read_event()
|
| /linux/tools/testing/selftests/memory-hotplug/ |
| H 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
|
| /linux/include/trace/events/ |
| H A D | irq_matrix.h | 75 __field( bool, online ) 88 __entry->online = cmap->online; 99 __entry->bit, __entry->cpu, __entry->online,
|
| /linux/Documentation/translations/zh_CN/admin-guide/ |
| H A D | cputopology.rst | 66 online: 在线的CPU,可供调度使用。[cpu_online_mask] 82 online: 0-1,3 91 online: 0-1,3
|
| /linux/Documentation/translations/zh_TW/admin-guide/ |
| H A D | cputopology.rst | 66 online: 在線的CPU,可供調度使用。[cpu_online_mask] 82 online: 0-1,3 91 online: 0-1,3
|
| /linux/tools/testing/selftests/sched_ext/ |
| H A D | hotplug.c | 24 static void toggle_online_status(bool online) in toggle_online_status() argument 26 long val = online ? 1 : 0; in toggle_online_status() 32 online ? "online" : "offline", strerror(errno)); in toggle_online_status()
|
| /linux/tools/testing/selftests/cpufreq/ |
| H A D | cpu.sh | 35 echo 0 > $CPUROOT/$1/online 42 echo 1 > $CPUROOT/$1/online
|
| /linux/Documentation/arch/arm64/ |
| H A D | cpu-hotplug.rst | 9 CPUs online/offline using PSCI. This document is about ACPI firmware allowing 51 marked as disabled by firmware. Only the CPU's online/offline behaviour is 59 brought online. Firmware can enforce its policy via PSCI's return codes. e.g. 64 ``enabled`` in the MADT GICC structures, but should have the ``online capable`` 69 CPUs described as ``online capable`` but not ``enabled`` can be set to enabled
|
| /linux/tools/testing/selftests/cgroup/ |
| H 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
|