| /kernel/linux/linux-6.6/tools/testing/selftests/net/forwarding/ |
| D | tsn_lib.sh | 2 # SPDX-License-Identifier: GPL-2.0 3 # Copyright 2021-2022 NXP 13 # https://github.com/vladimiroltean/tsn-scripts 14 # WARNING: isochron versions pre-1.0 are unstable, 25 local uds_address=$1 26 local extra_args="" 28 if ! [ -z "${uds_address}" ]; then 29 extra_args="${extra_args} -z ${uds_address}" 34 chrt -f 10 phc2sys -m \ 35 -a -rr \ [all …]
|
| /kernel/linux/build/test/moduletest/runtest/bin/sched_rtg_t/testcases/bin/ |
| D | sched_rtg02.sh | 5 # SPDX-License-Identifier: GPL-2.0 16 # Description: sched RTG /proc/$PID/sched_group_id interface test 18 # 2-20: valid rtgid 20 # Authors: Ma Feng - mafeng.ma@huawei.com 22 # History: April 6 2022 - init scripts 32 PID=$(ps -ef | grep "create_process" | grep -v grep | awk '{print $2}') 37 local res=0 38 local sched_group_id=/proc/$PID/sched_group_id 40 tst_res TINFO "Start process $PID sched RTG interface test ..." 42 tst_res TINFO "process $PID already in rtgid $sched_group_id, remove it firstly..." [all …]
|
| D | sched_rtg03.sh | 5 # SPDX-License-Identifier: GPL-2.0 18 # Authors: liudanning - liudanning@h-partners.com 20 # History: April 6 2022 - init scripts 30 PID=$(ps -ef | grep "create_process" | grep -v grep | awk '{print $2}') 35 local res=0 36 local sched_group_id=/proc/$PID/sched_group_id 40 tst_res TINFO "process $PID already in rtgid $sched_group_id, remove it firstly..." 43 set_check_rtgid_debug 2 $PID 0 2 45 set_check_rtgid_debug 0 $PID 0 0 50 local _set_rtgid=$1 [all …]
|
| D | sched_rtg01.sh | 5 # SPDX-License-Identifier: GPL-2.0 16 # Description: sched RTG /proc/$PID/sched_group_id basic function test 18 # Authors: Ma Feng - mafeng.ma@huawei.com 20 # History: April 6 2022 - init scripts 30 PID=$(ps -ef | grep "create_process" | grep -v grep | awk '{print $2}') 35 local res=0 36 local sched_group_id=/proc/$PID/sched_group_id 38 tst_res TINFO "Start process $PID join rtgid 2 test ..." 40 if [ cur_rtgid -eq 2 ]; then 41 tst_res TINFO "process $PID already in rtgid 2, remove it firstly..." [all …]
|
| /kernel/linux/linux-6.6/tools/perf/tests/shell/ |
| D | daemon.sh | 3 # SPDX-License-Identifier: GPL-2.0 7 local line=$1 8 local name=$2 9 local base=$3 10 local output=$4 11 local lock=$5 12 local up=$6 14 local line_name 16 local line_base 18 local line_output [all …]
|
| /kernel/linux/linux-5.10/arch/powerpc/mm/book3s64/ |
| D | radix_tlb.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 * Copyright 2015-2016, Aneesh Kumar K.V, IBM Corporation. 14 #include <asm/ppc-opcode.h> 30 unsigned int pid, in tlbiel_radix_set_isa300() argument 37 rs = ((unsigned long)pid << PPC_BITLSHIFT(31)); in tlbiel_radix_set_isa300() 89 WARN(1, "%s called on pre-POWER9 CPU\n", __func__); in radix__tlbiel_all() 94 static __always_inline void __tlbiel_pid(unsigned long pid, int set, in __tlbiel_pid() argument 101 rs = ((unsigned long)pid) << PPC_BITLSHIFT(31); in __tlbiel_pid() 110 static __always_inline void __tlbie_pid(unsigned long pid, unsigned long ric) in __tlbie_pid() argument 115 rs = pid << PPC_BITLSHIFT(31); in __tlbie_pid() [all …]
|
| /kernel/linux/linux-6.6/tools/testing/selftests/bpf/progs/ |
| D | task_kfunc_common.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 25 struct task_struct *bpf_task_from_pid(s32 pid) __ksym; 31 s32 pid; in tasks_kfunc_map_value_lookup() local 34 status = bpf_probe_read_kernel(&pid, sizeof(pid), &p->pid); in tasks_kfunc_map_value_lookup() 38 return bpf_map_lookup_elem(&__tasks_kfunc_map, &pid); in tasks_kfunc_map_value_lookup() 43 struct __tasks_kfunc_map_value local, *v; in tasks_kfunc_map_insert() local 46 s32 pid; in tasks_kfunc_map_insert() local 48 status = bpf_probe_read_kernel(&pid, sizeof(pid), &p->pid); in tasks_kfunc_map_insert() 52 local.task = NULL; in tasks_kfunc_map_insert() 53 status = bpf_map_update_elem(&__tasks_kfunc_map, &pid, &local, BPF_NOEXIST); in tasks_kfunc_map_insert() [all …]
|
| D | task_kfunc_failure.c | 1 // SPDX-License-Identifier: GPL-2.0 42 acquired = bpf_task_acquire(v->task); in BPF_PROG() 142 kptr = bpf_kptr_xchg(&v->task, NULL); in BPF_PROG() 175 bpf_task_release(v->task); in BPF_PROG() 196 struct __tasks_kfunc_map_value local, *v; in BPF_PROG() local 199 s32 pid; in BPF_PROG() local 201 status = bpf_probe_read_kernel(&pid, sizeof(pid), &task->pid); in BPF_PROG() 205 local.task = NULL; in BPF_PROG() 206 status = bpf_map_update_elem(&__tasks_kfunc_map, &pid, &local, BPF_NOEXIST); in BPF_PROG() 210 v = bpf_map_lookup_elem(&__tasks_kfunc_map, &pid); in BPF_PROG() [all …]
|
| /kernel/linux/build/test/moduletest/runtest/bin/mem_debug_t/testcases/bin/ |
| D | mem_debug08.sh | 5 # SPDX-License-Identifier: GPL-2.0 18 # Authors: Wangyuting - wangyuting36@huawei.com 20 # History: Mar 23 2022 - init scripts 33 local pid=$(cat /proc/ashmem_process_info | awk 'NR>3 && $2!="" {print $2}' | sort -u) 34 local line=$(cat /proc/ashmem_process_info | awk 'NR>3 && $2!="" {print $2}' | sort -u | wc -l) 35 if [ $line -eq 0 ]; then 38 tst_res TPASS "The following $line ashmem processes have been found(PID): $pid." 42 for p in $pid 52 local pid=$1 53 tst_res TINFO "pid is $pid ." [all …]
|
| /kernel/linux/linux-6.6/tools/testing/selftests/net/ |
| D | gre_gso.sh | 2 # SPDX-License-Identifier: GPL-2.0 7 # Kselftest framework requirement - SKIP code is 4. 10 # all tests in this script. Can be overridden with -t option 16 IP="ip -netns ns1" 19 PID= 23 local rc=$1 24 local expected=$2 25 local msg="$3" 27 if [ ${rc} -eq ${expected} ]; then 28 printf " TEST: %-60s [ OK ]\n" "${msg}" [all …]
|
| /kernel/linux/linux-6.6/Documentation/devicetree/bindings/soc/qcom/ |
| D | qcom,smp2p.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Andy Gross <agross@kernel.org> 11 - Bjorn Andersson <bjorn.andersson@linaro.org> 12 - Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> 16 of a single 32-bit value between two processors. Each value has a single 17 writer (the local side) and a single reader (the remote side). Values are 18 uniquely identified in the system by the directed edge (local processor ID to 35 $ref: /schemas/types.yaml#/definitions/phandle-array [all …]
|
| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/soc/qcom/ |
| D | qcom,smp2p.txt | 4 a single 32-bit value between two processors. Each value has a single writer 5 (the local side) and a single reader (the remote side). Values are uniquely 6 identified in the system by the directed edge (local processor ID to remote 9 - compatible: 15 - interrupts: 17 Value type: <prop-encoded-array> 20 - mboxes: 22 Value type: <prop-encoded-array> 26 - qcom,ipc: 28 Value type: <prop-encoded-array> [all …]
|
| /kernel/linux/build/test/moduletest/runtest/bin/purgeable_t/testcases/bin/ |
| D | purgeable_mem03.sh | 5 # SPDX-License-Identifier: GPL-2.0 21 # Authors: Ke Liu - liuke94@huawei.com 23 # History: Nov 2 2022 - init scripts 35 local testpath=$(find / -name purgeable_cpp_test | grep -v find) 40 local pid= $(pidof purgeable_cpp_test) 41 while [ "$pid" -eq '0' ] 43 pid=$(pidof purgeable_cpp_test) 45 while [ "$pid" -ne '0' ] 47 cat /proc/${pid}/status | grep -i purg | grep -v grep | grep -v Name >>mem.log 48 pid=$(pidof purgeable_cpp_test) [all …]
|
| D | purgeable_mem02.sh | 5 # SPDX-License-Identifier: GPL-2.0 21 # Authors: Ke Liu - liuke94@huawei.com 23 # History: Nov 2 2022 - init scripts 35 local testpath=$(find / -name purgeable_cpp_test | grep -v find) 40 local pid=$(pidof purgeable_cpp_test) 41 while [ "$pid" -eq '0' ] 43 pid=$(pidof purgeable_cpp_test) 45 while [ "$pid" -ne '0' ] 47 cat /proc/meminfo | grep -i purg | grep -v grep | grep -v Name >>mem.log 48 pid=$(pidof purgeable_cpp_test) [all …]
|
| /kernel/linux/linux-5.10/tools/testing/selftests/net/mptcp/ |
| D | diag.sh | 2 # SPDX-License-Identifier: GPL-2.0 6 rndh=$(printf %x $sec)-$(mktemp -u XXXXXX) 7 ns="ns1-$rndh" 19 for pid in ${pids[@]}; do 20 [ -d /proc/$pid ] && kill -SIGUSR1 $pid >/dev/null 2>&1 28 for pid in ${pids[@]}; do 29 [ -d /proc/$pid ] && kill -9 $pid >/dev/null 2>&1 35 ip -Version > /dev/null 2>&1 36 if [ $? -ne 0 ];then 40 ss -h | grep -q MPTCP [all …]
|
| /kernel/linux/linux-6.6/tools/testing/selftests/net/mptcp/ |
| D | mptcp_lib.sh | 2 # SPDX-License-Identifier: GPL-2.0 9 readonly KSFT_TEST="${MPTCP_LIB_KSFT_TEST:-$(basename "${0}" .sh)}" 11 # These variables are used in some selftests, read-only 12 declare -rx MPTCP_LIB_EVENT_CREATED=1 # MPTCP_EVENT_CREATED 13 declare -rx MPTCP_LIB_EVENT_ESTABLISHED=2 # MPTCP_EVENT_ESTABLISHED 14 declare -rx MPTCP_LIB_EVENT_CLOSED=3 # MPTCP_EVENT_CLOSED 15 declare -rx MPTCP_LIB_EVENT_ANNOUNCED=6 # MPTCP_EVENT_ANNOUNCED 16 declare -rx MPTCP_LIB_EVENT_REMOVED=7 # MPTCP_EVENT_REMOVED 17 declare -rx MPTCP_LIB_EVENT_SUB_ESTABLISHED=10 # MPTCP_EVENT_SUB_ESTABLISHED 18 declare -rx MPTCP_LIB_EVENT_SUB_CLOSED=11 # MPTCP_EVENT_SUB_CLOSED [all …]
|
| /kernel/linux/linux-5.10/tools/testing/selftests/breakpoints/ |
| D | breakpoint_test.c | 1 // SPDX-License-Identifier: GPL-2.0-only 54 int local, int global, int set) in toggle_breakpoint() argument 94 if (local) { in toggle_breakpoint() 112 exit(-1); in toggle_breakpoint() 205 int len, local, global, i; in trigger_tests() local 219 for (local = 0; local < 2; local++) { in trigger_tests() 221 if (!local && !global) in trigger_tests() 233 for (local = 0; local < 2; local++) { in trigger_tests() 235 if (!local && !global) in trigger_tests() 244 for (local = 0; local < 2; local++) { in trigger_tests() [all …]
|
| /kernel/linux/linux-6.6/tools/testing/selftests/breakpoints/ |
| D | breakpoint_test.c | 1 // SPDX-License-Identifier: GPL-2.0-only 54 int local, int global, int set) in toggle_breakpoint() argument 94 if (local) { in toggle_breakpoint() 112 exit(-1); in toggle_breakpoint() 205 int len, local, global, i; in trigger_tests() local 219 for (local = 0; local < 2; local++) { in trigger_tests() 221 if (!local && !global) in trigger_tests() 233 for (local = 0; local < 2; local++) { in trigger_tests() 235 if (!local && !global) in trigger_tests() 244 for (local = 0; local < 2; local++) { in trigger_tests() [all …]
|
| /kernel/linux/linux-6.6/drivers/infiniband/core/ |
| D | iwpm_msg.c | 15 * - Redistributions of source code must retain the above 19 * - Redistributions in binary form must reproduce the above 42 * iwpm_valid_pid - Check if the userspace iwarp port mapper pid is valid 44 * Returns true if the pid is greater than zero, otherwise returns false 52 * iwpm_register_pid - Send a netlink query to userspace 53 * to get the iwarp port mapper pid 70 int ret = -EINVAL; in iwpm_register_pid() 80 nlh->nlmsg_seq = iwpm_get_nlmsg_seq(); in iwpm_register_pid() 81 nlmsg_request = iwpm_get_nlmsg_request(nlh->nlmsg_seq, nl_client, GFP_KERNEL); in iwpm_register_pid() 88 /* fill in the pid request message */ in iwpm_register_pid() [all …]
|
| /kernel/linux/linux-6.6/tools/perf/Documentation/ |
| D | perf-c2c.txt | 1 perf-c2c(1) 5 ---- 6 perf-c2c - Shared Data C2C/HITM Analyzer. 9 -------- 12 'perf c2c record' [<options>] \-- [<record command options>] <command> 16 ----------- 27 required. See linkperf:perf-arm-spe[1] for a setup guide. Due to the 32 - memory address of the access 33 - type of the access (load and store details) 34 - latency (in cycles) of the load access [all …]
|
| /kernel/linux/linux-6.6/arch/alpha/kernel/ |
| D | sys_marvel.c | 1 // SPDX-License-Identifier: GPL-2.0 43 unsigned int pid; in io7_device_interrupt() local 52 * -----+-----+--------+--- in io7_device_interrupt() 57 * 0x0800 - 0x0ff0 - 0x0800 + (LSI id << 4) in io7_device_interrupt() 58 * 0x1000 - 0x2ff0 - 0x1000 + (MSI_DAT<8:0> << 4) in io7_device_interrupt() 60 pid = vector >> 16; in io7_device_interrupt() 61 irq = ((vector & 0xffff) - 0x800) >> 4; in io7_device_interrupt() 65 irq |= pid << MARVEL_IRQ_VEC_PE_SHIFT; /* merge the pid */ in io7_device_interrupt() 74 unsigned int pid; in io7_get_irq_ctl() local 77 pid = irq >> MARVEL_IRQ_VEC_PE_SHIFT; in io7_get_irq_ctl() [all …]
|
| /kernel/linux/linux-5.10/arch/alpha/kernel/ |
| D | sys_marvel.c | 1 // SPDX-License-Identifier: GPL-2.0 43 unsigned int pid; in io7_device_interrupt() local 52 * -----+-----+--------+--- in io7_device_interrupt() 57 * 0x0800 - 0x0ff0 - 0x0800 + (LSI id << 4) in io7_device_interrupt() 58 * 0x1000 - 0x2ff0 - 0x1000 + (MSI_DAT<8:0> << 4) in io7_device_interrupt() 60 pid = vector >> 16; in io7_device_interrupt() 61 irq = ((vector & 0xffff) - 0x800) >> 4; in io7_device_interrupt() 65 irq |= pid << MARVEL_IRQ_VEC_PE_SHIFT; /* merge the pid */ in io7_device_interrupt() 74 unsigned int pid; in io7_get_irq_ctl() local 77 pid = irq >> MARVEL_IRQ_VEC_PE_SHIFT; in io7_get_irq_ctl() [all …]
|
| /kernel/linux/linux-5.10/tools/testing/selftests/net/ |
| D | udpgro.sh | 2 # SPDX-License-Identifier: GPL-2.0 6 readonly PEER_NS="ns-peer-$(mktemp -u XXXXXX)" 11 if [ $ret -eq 0 ]; then 17 local -r jobs="$(jobs -p)" 18 local -r ns="$(ip netns list|grep $PEER_NS)" 20 [ -n "${jobs}" ] && kill -1 ${jobs} 2>/dev/null 21 [ -n "$ns" ] && ip netns del $ns 2>/dev/null 27 ip -netns "${PEER_NS}" link set lo up 34 ip -netns "${PEER_NS}" addr add dev veth1 192.168.1.1/24 35 ip -netns "${PEER_NS}" addr add dev veth1 2001:db8::1/64 nodad [all …]
|
| /kernel/linux/linux-5.10/drivers/infiniband/core/ |
| D | iwpm_msg.c | 15 * - Redistributions of source code must retain the above 19 * - Redistributions in binary form must reproduce the above 42 * iwpm_valid_pid - Check if the userspace iwarp port mapper pid is valid 44 * Returns true if the pid is greater than zero, otherwise returns false 52 * iwpm_register_pid - Send a netlink query to userspace 53 * to get the iwarp port mapper pid 70 int ret = -EINVAL; in iwpm_register_pid() 84 nlh->nlmsg_seq = iwpm_get_nlmsg_seq(); in iwpm_register_pid() 85 nlmsg_request = iwpm_get_nlmsg_request(nlh->nlmsg_seq, nl_client, GFP_KERNEL); in iwpm_register_pid() 92 /* fill in the pid request message */ in iwpm_register_pid() [all …]
|
| /kernel/linux/linux-5.10/arch/powerpc/kvm/ |
| D | e500.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (C) 2008-2011 Freescale Semiconductor, Inc. All rights reserved. 36 * (guestAS,guestTID,guestPR) --> ID of physical cpu 49 * ID --> address of vcpu_id_table item. 58 /* This variable keeps last used shadow ID on local core. 73 int ret = -1; in local_sid_setup_one() 78 entry->val = sid; in local_sid_setup_one() 79 entry->pentry = this_cpu_ptr(&pcpu_sids.entry[sid]); in local_sid_setup_one() 84 * If sid == NUM_TIDS, we've run out of sids. We return -1, and in local_sid_setup_one() 106 if (entry && entry->val != 0 && in local_sid_lookup() [all …]
|