/linux-6.8/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 …]
|
/linux-6.8/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 …]
|
/linux-6.8/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 …]
|
D | local_storage.c | 1 // SPDX-License-Identifier: GPL-2.0 17 int inode_storage_result = -1; 18 int sk_storage_result = -1; 19 int task_storage_result = -1; 64 __u32 pid = bpf_get_current_pid_tgid() >> 32; in BPF_PROG() local 70 if (pid != monitored_pid) in BPF_PROG() 77 task_storage_result = -1; in BPF_PROG() 84 is_self_unlink = storage->exec_inode == victim->d_inode; in BPF_PROG() 88 if (!storage || storage->value) in BPF_PROG() 98 local_storage = task->bpf_storage; in BPF_PROG() [all …]
|
D | cpumask_success.c | 1 // SPDX-License-Identifier: GPL-2.0 13 int pid, nr_cpus; variable 19 return pid == cur_pid; in is_test_task() 421 cpumask = bpf_kptr_xchg(&v->cpumask, NULL); in BPF_PROG() 433 struct bpf_cpumask *local, *prev; in BPF_PROG() local 438 local = create_cpumask(); in BPF_PROG() 439 if (!local) in BPF_PROG() 442 prev = bpf_kptr_xchg(&global_mask, local); in BPF_PROG() 450 local = global_mask; in BPF_PROG() 451 if (!local) { in BPF_PROG() [all …]
|
/linux-6.8/tools/testing/selftests/net/ |
D | gre_gso.sh | 2 # SPDX-License-Identifier: GPL-2.0 8 # all tests in this script. Can be overridden with -t option 15 PID= 19 local rc=$1 20 local expected=$2 21 local msg="$3" 23 if [ ${rc} -eq ${expected} ]; then 24 printf " TEST: %-60s [ OK ]\n" "${msg}" 29 printf " TEST: %-60s [FAIL]\n" "${msg}" 48 set -e [all …]
|
D | udpgro.sh | 2 # SPDX-License-Identifier: GPL-2.0 8 readonly PEER_NS="ns-peer-$(mktemp -u XXXXXX)" 15 if [ $ret -eq 0 ]; then 21 local -r jobs="$(jobs -p)" 22 local -r ns="$(ip netns list|grep $PEER_NS)" 24 [ -n "${jobs}" ] && kill -1 ${jobs} 2>/dev/null 25 [ -n "$ns" ] && ip netns del $ns 2>/dev/null 31 ip -netns "${PEER_NS}" link set lo up 38 ip -netns "${PEER_NS}" addr add dev veth1 192.168.1.1/24 39 ip -netns "${PEER_NS}" addr add dev veth1 2001:db8::1/64 nodad [all …]
|
/linux-6.8/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 …]
|
/linux-6.8/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 …]
|
/linux-6.8/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 …]
|
/linux-6.8/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 …]
|
/linux-6.8/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 …]
|
D | perf-probe.txt | 1 perf-probe(1) 5 ---- 6 perf-probe - Define new dynamic tracepoints 9 -------- 11 'perf probe' [options] --add='PROBE' [...] 15 'perf probe' [options] --del='[GROUP:]EVENT' [...] 17 'perf probe' --list[=[GROUP:]EVENT] 19 'perf probe' [options] --line='LINE' 21 'perf probe' [options] --vars='PROBEPOINT' 23 'perf probe' [options] --funcs [all …]
|
/linux-6.8/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 …]
|
/linux-6.8/tools/testing/selftests/nci/ |
D | nci_dev.c | 1 // SPDX-License-Identifier: GPL-2.0-only 22 #define GENLMSG_PAYLOAD(glh) (NLMSG_PAYLOAD(glh, 0) - GENL_HDRLEN) 24 #define NLA_PAYLOAD(len) ((len) - NLA_HDRLEN) 93 struct sockaddr_nl local; in create_nl_socket() local 97 return -1; in create_nl_socket() 99 memset(&local, 0, sizeof(local)); in create_nl_socket() 100 local.nl_family = AF_NETLINK; in create_nl_socket() 102 if (bind(fd, (struct sockaddr *)&local, sizeof(local)) < 0) in create_nl_socket() 108 return -1; in create_nl_socket() 133 na->nla_type = nla_type[cnt]; in send_cmd_mt_nla() [all …]
|
/linux-6.8/tools/usb/usbip/doc/ |
D | usbipd.8 | 3 usbipd \- USB/IP server daemon 21 \fB\-4\fR, \fB\-\-ipv4\fR 27 \fB\-6\fR, \fB\-\-ipv6\fR 33 \fB\-e\fR, \fB\-\-device\fR 39 \fB\-D\fR, \fB\-\-daemon\fR 45 \fB\-d\fR, \fB\-\-debug\fR 51 \fB\-PFILE\fR, \fB\-\-pid FILE\fR 55 If no FILE specified, use /var/run/usbipd.pid 58 \fB\-tPORT\fR, \fB\-\-tcp\-port PORT\fR 63 \fB\-h\fR, \fB\-\-help\fR [all …]
|
/linux-6.8/tools/testing/selftests/bpf/benchs/ |
D | bench_local_storage_rcu_tasks_trace.c | 1 // SPDX-License-Identifier: GPL-2.0 28 { "kthread_pid", ARG_KTHREAD_PID, "PID", 0, 29 "Pid of rcu_tasks_trace kthread for ticks tracking"}, 72 fprintf(stderr, "benchmark doesn't support multi-producer!\n"); in validate() 94 return -1; in kthread_pid_ticks() 157 printf("Spun up %u procs (our pid %d)\n", args.nr_procs, runner_pid); in local_storage_tasks_trace_setup() 169 if (!bpf_program__attach(ctx.skel->progs.get_local)) { in local_storage_tasks_trace_setup() 174 if (!bpf_program__attach(ctx.skel->progs.pregp_step)) { in local_storage_tasks_trace_setup() 179 if (!bpf_program__attach(ctx.skel->progs.postgp)) { in local_storage_tasks_trace_setup() 193 res->gp_ct = atomic_swap(&ctx.skel->bss->gp_hits, 0); in measure() [all …]
|
/linux-6.8/arch/powerpc/include/asm/ |
D | vas.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 3 * Copyright 2016-17 IBM Corp. 11 #include <uapi/asm/vas-api.h> 15 * (Local FIFO Size Register) of the VAS workbook. 46 #define MASK_LSH(m) (__builtin_ffsl(m) - 1) 51 * Co-processor Engine type. 65 * to pid and mm until windows are closed. 66 * Stores pid, mm, and tgid for each window. 69 struct pid *pid; /* PID of owner */ member 70 struct pid *tgid; /* Thread group ID of owner */ [all …]
|
/linux-6.8/drivers/soc/qcom/ |
D | smp2p.c | 1 // SPDX-License-Identifier: GPL-2.0-only 4 * Copyright (c) 2012-2013, The Linux Foundation. All rights reserved. 25 * of a single 32-bit value between two processors. Each value has a single 26 * writer (the local side) and a single reader (the remote side). Values are 27 * uniquely identified in the system by the directed edge (local processor ID 31 * item is writable by the local processor and readable by the remote 32 * processor. By using two separate SMEM items that are single-reader and 33 * single-writer, SMP2P does not require any remote locking mechanisms. 51 * struct smp2p_smem_item - in memory communication structure 53 * @version: version - must be 1 [all …]
|
/linux-6.8/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. 15 #include <asm/ppc-opcode.h> 29 unsigned int pid, in tlbiel_radix_set_isa300() argument 36 rs = ((unsigned long)pid << PPC_BITLSHIFT(31)); in tlbiel_radix_set_isa300() 95 WARN(1, "%s called on pre-POWER9 CPU\n", __func__); in radix__tlbiel_all() 100 static __always_inline void __tlbiel_pid(unsigned long pid, int set, in __tlbiel_pid() argument 107 rs = ((unsigned long)pid) << PPC_BITLSHIFT(31); in __tlbiel_pid() 116 static __always_inline void __tlbie_pid(unsigned long pid, unsigned long ric) in __tlbie_pid() argument 121 rs = pid << PPC_BITLSHIFT(31); in __tlbie_pid() [all …]
|
/linux-6.8/arch/powerpc/include/asm/nohash/ |
D | tlbflush.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 8 * - flush_tlb_mm(mm) flushes the specified mm context TLB's 9 * - flush_tlb_page(vma, vmaddr) flushes one page 10 * - local_flush_tlb_mm(mm, full) flushes the specified mm context on 11 * the local processor 12 * - local_flush_tlb_page(vma, vmaddr) flushes one page on the local processor 13 * - flush_tlb_range(vma, start, end) flushes a range of pages 14 * - flush_tlb_kernel_range(start, end) flushes a range of kernel pages 29 #define MMU_NO_CONTEXT ((unsigned int)-1) 37 unsigned int pid = READ_ONCE(mm->context.id); in local_flush_tlb_mm() local [all …]
|
/linux-6.8/tools/perf/util/ |
D | s390-cpumsf.c | 1 // SPDX-License-Identifier: GPL-2.0 4 * Auxtrace support for s390 CPU-Measurement Sampling Facility 17 * see Documentation/perf.data-file-format.txt. 72 * Each sampling-data entry in the auxiliary trace data generates a perf sample. 74 * with data from the auxtrace such as PID/TID, instruction address, CPU state, 80 * auxtrace_heap top. This is triggered by ordered_event->deliver(). 95 * | - Those generated by perf record command (type number equal or higher 98 * | - Those generated by the kernel are handled by 108 * | Other timestamps (0 or -1) are handled immediately by 162 #include "s390-cpumsf.h" [all …]
|
/linux-6.8/tools/accounting/ |
D | procacct.c | 1 // SPDX-License-Identifier: GPL-2.0 10 * The TGID together with the PID and the AGROUP flag allow 11 * identification of threads in a process and single-threaded processes. 12 * The ac_tgetime field gives proper whole-process walltime. 18 * Utility to get per-pid and per-tgid delay accounting statistics 50 #define GENLMSG_PAYLOAD(glh) (NLMSG_PAYLOAD(glh, 0) - GENL_HDRLEN) 52 #define NLA_PAYLOAD(len) (len - NLA_HDRLEN) 88 fprintf(stderr, "procacct [-v] [-w logfile] [-r bufsize] [-m cpumask]\n"); in usage() 89 fprintf(stderr, " -v: debug on\n"); in usage() 98 struct sockaddr_nl local; in create_nl_socket() local [all …]
|
/linux-6.8/tools/testing/selftests/cgroup/ |
D | with_stress.sh | 2 # SPDX-License-Identifier: GPL-2.0 4 # Kselftest framework requirement - SKIP code is 4. 17 local verb=+ 20 [ $verb = "+" ] && verb=- || verb=+ 28 sysfs=`mount -t cgroup2 | head -1 | awk '{ print $3 }'` 29 if [ ! -d "$sysfs" ]; then 39 if ! echo -$subsys_ctrl >$sysfs/cgroup.subtree_control ; then 45 declare -a stresses 46 declare -a stress_pids 61 echo "Usage $0 [ -s stress ] ... [ -d duration ] [-c controller] cmd args .." [all …]
|