Home
last modified time | relevance | path

Searched +full:local +full:- +full:pid (Results 1 – 25 of 347) sorted by relevance

12345678910>>...14

/Linux-v6.1/tools/testing/selftests/net/forwarding/
Dtsn_lib.sh2 # 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-v6.1/tools/perf/tests/shell/
Ddaemon.sh3 # 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=`echo "${line}" | awk 'BEGIN { FS = ":" } ; { print $2 }'`
15 local line_base=`echo "${line}" | awk 'BEGIN { FS = ":" } ; { print $3 }'`
16 local line_output=`echo "${line}" | awk 'BEGIN { FS = ":" } ; { print $4 }'`
[all …]
/Linux-v6.1/tools/testing/selftests/net/
Dgre_gso.sh2 # 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 …]
Dudpgro.sh2 # SPDX-License-Identifier: GPL-2.0
6 readonly PEER_NS="ns-peer-$(mktemp -u XXXXXX)"
13 if [ $ret -eq 0 ]; then
19 local -r jobs="$(jobs -p)"
20 local -r ns="$(ip netns list|grep $PEER_NS)"
22 [ -n "${jobs}" ] && kill -1 ${jobs} 2>/dev/null
23 [ -n "$ns" ] && ip netns del $ns 2>/dev/null
29 ip -netns "${PEER_NS}" link set lo up
36 ip -netns "${PEER_NS}" addr add dev veth1 192.168.1.1/24
37 ip -netns "${PEER_NS}" addr add dev veth1 2001:db8::1/64 nodad
[all …]
/Linux-v6.1/Documentation/devicetree/bindings/soc/qcom/
Dqcom,smp2p.yaml1 # 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-v6.1/tools/testing/selftests/breakpoints/
Dbreakpoint_test.c1 // 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-v6.1/drivers/infiniband/core/
Diwpm_msg.c15 * - 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-v6.1/tools/perf/Documentation/
Dperf-c2c.txt1 perf-c2c(1)
5 ----
6 perf-c2c - Shared Data C2C/HITM Analyzer.
9 --------
12 'perf c2c record' [<options>] \-- [<record command options>] <command>
16 -----------
28 - memory address of the access
29 - type of the access (load and store details)
30 - latency (in cycles) of the load access
33 for cachelines with highest contention - highest number of HITM accesses.
[all …]
Dperf-probe.txt1 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-v6.1/arch/alpha/kernel/
Dsys_marvel.c1 // 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-v6.1/tools/testing/selftests/bpf/progs/
Dlocal_storage.c1 // SPDX-License-Identifier: GPL-2.0
17 int inode_storage_result = -1;
18 int sk_storage_result = -1;
56 __u32 pid = bpf_get_current_pid_tgid() >> 32; in BPF_PROG() local
60 if (pid != monitored_pid) in BPF_PROG()
67 is_self_unlink = storage->exec_inode == victim->d_inode; in BPF_PROG()
69 return -EPERM; in BPF_PROG()
80 __u32 pid = bpf_get_current_pid_tgid() >> 32; in BPF_PROG() local
84 /* new_dentry->d_inode can be NULL when the inode is renamed to a file in BPF_PROG()
88 bpf_inode_storage_get(&inode_storage_map, new_dentry->d_inode, 0, in BPF_PROG()
[all …]
/Linux-v6.1/arch/powerpc/kvm/
De500.c1 // 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-v6.1/tools/testing/selftests/nci/
Dnci_dev.c1 // 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-v6.1/scripts/
Dcheck-local-export2 # SPDX-License-Identifier: GPL-2.0-only
7 # Exit with error if a local exported symbol is found.
10 set -e
11 pid=$$
13 # If there is no symbol in the object, ${NM} (both GNU nm and llvm-nm) shows
16 # hand-crafted error message here.
19 # Use --quiet instead of 2>/dev/null when we upgrade the minimum version of
22 # { ${NM} --quiet ${1} || kill 0; } |
24 { ${NM} ${1} 2>/dev/null || { echo "${0}: ${NM} failed" >&2; kill $pid; } } |
25 ${AWK} -v "file=${1}" '
[all …]
/Linux-v6.1/tools/usb/usbip/doc/
Dusbipd.83 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-v6.1/arch/powerpc/include/asm/
Dvas.h1 /* 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-v6.1/drivers/soc/qcom/
Dsmp2p.c1 // 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-v6.1/arch/powerpc/include/asm/nohash/
Dtlbflush.h1 /* 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-v6.1/arch/powerpc/mm/book3s64/
Dradix_tlb.c1 // 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-v6.1/tools/testing/selftests/bpf/benchs/
Dbench_local_storage_rcu_tasks_trace.c1 // SPDX-License-Identifier: GPL-2.0
31 { "kthread_pid", ARG_KTHREAD_PID, "PID", 0,
32 "Pid of rcu_tasks_trace kthread for ticks tracking"},
85 fprintf(stderr, "benchmark doesn't support multi-producer!\n"); in validate()
89 fprintf(stderr, "benchmark doesn't support multi-consumer!\n"); in validate()
107 return -1; in kthread_pid_ticks()
170 printf("Spun up %u procs (our pid %d)\n", args.nr_procs, runner_pid); in local_storage_tasks_trace_setup()
182 if (!bpf_program__attach(ctx.skel->progs.get_local)) { in local_storage_tasks_trace_setup()
187 if (!bpf_program__attach(ctx.skel->progs.pregp_step)) { in local_storage_tasks_trace_setup()
192 if (!bpf_program__attach(ctx.skel->progs.postgp)) { in local_storage_tasks_trace_setup()
[all …]
/Linux-v6.1/tools/perf/util/
Ds390-cpumsf.c1 // 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-v6.1/tools/accounting/
Dprocacct.c1 // 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 …]
Dgetdelays.c1 // SPDX-License-Identifier: GPL-2.0
4 * Utility to get per-pid and per-tgid delay accounting statistics
12 * gcc -I/usr/src/linux/include getdelays.c -o getdelays
38 #define GENLMSG_PAYLOAD(glh) (NLMSG_PAYLOAD(glh, 0) - GENL_HDRLEN)
40 #define NLA_PAYLOAD(len) (len - NLA_HDRLEN)
76 fprintf(stderr, "getdelays [-dilv] [-w logfile] [-r bufsize] " in usage()
77 "[-m cpumask] [-t tgid] [-p pid]\n"); in usage()
78 fprintf(stderr, " -d: print delayacct stats\n"); in usage()
79 fprintf(stderr, " -i: print IO accounting (works only with -p)\n"); in usage()
80 fprintf(stderr, " -l: listen forever\n"); in usage()
[all …]
/Linux-v6.1/arch/x86/um/
Dsyscalls_64.c2 * Copyright (C) 2003 - 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com)
21 int pid = task->mm->context.id.u.pid; in arch_prctl() local
39 ret = restore_pid_registers(pid, &current->thread.regs.regs); in arch_prctl()
46 * With these two, we read to a local pointer and in arch_prctl()
50 * fault it in (or return -EFAULT) instead of having in arch_prctl()
51 * the host return -EFAULT. in arch_prctl()
56 ret = os_arch_prctl(pid, option, ptr); in arch_prctl()
62 current->thread.arch.fs = (unsigned long) ptr; in arch_prctl()
63 ret = save_registers(pid, &current->thread.regs.regs); in arch_prctl()
66 ret = save_registers(pid, &current->thread.regs.regs); in arch_prctl()
[all …]
/Linux-v6.1/tools/testing/selftests/cgroup/
Dwith_stress.sh2 # 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 …]

12345678910>>...14