| /linux/tools/testing/selftests/proc/ |
| H A D | .gitignore | 5 /proc-2-is-kthread 6 /proc-fsconfig-hidepid 7 /proc-loadavg-001 8 /proc-maps-race 9 /proc-multiple-procfs 10 /proc-net-dev-lseek 11 /proc-empty-vm 12 /proc-pid-vm 13 /proc-self-map-files-001 14 /proc-self-map-files-002 [all …]
|
| H A D | Makefile | 10 TEST_GEN_PROGS += proc-2-is-kthread 11 TEST_GEN_PROGS += proc-loadavg-001 12 TEST_GEN_PROGS += proc-maps-race 13 TEST_GEN_PROGS += proc-net-dev-lseek 14 TEST_GEN_PROGS += proc-empty-vm 15 TEST_GEN_PROGS += proc-pid-vm 16 TEST_GEN_PROGS += proc-self-map-files-001 17 TEST_GEN_PROGS += proc-self-map-files-002 18 TEST_GEN_PROGS += proc-self-isnt-kthread 19 TEST_GEN_PROGS += proc-self-syscall [all …]
|
| H A D | proc-pidns.c | 49 self->host_mntns = open("/proc/self/ns/mnt", O_RDONLY|O_CLOEXEC); in FIXTURE_SETUP() 68 ASSERT_SUCCESS(mkdir("/tmp/dummy/proc", 0755)); in FIXTURE_SETUP() 70 self->host_pidns = open("/proc/self/ns/pid", O_RDONLY|O_CLOEXEC); in FIXTURE_SETUP() 78 ASSERT_SUCCESS(mount("/proc/self/ns/pid", "/tmp/dummy/pidns", NULL, MS_BIND, NULL)); in FIXTURE_SETUP() 79 ASSERT_SUCCESS(mount("proc", "/tmp/dummy/proc", "proc", 0, NULL)); in FIXTURE_SETUP() 105 ASSERT_SUCCESS(mkdir("/tmp/proc-host", 0755)); in TEST_F() 106 ASSERT_SUCCESS(mount("proc", "/tmp/proc-host", "proc", 0, "pidns=/proc/self/ns/pid")); in TEST_F() 107 ASSERT_SUCCESS(access("/tmp/proc-host/self/", X_OK)); in TEST_F() 109 ASSERT_SUCCESS(mkdir("/tmp/proc-dummy", 0755)); in TEST_F() 110 ASSERT_SUCCESS(mount("proc", "/tmp/proc-dummy", "proc", 0, "pidns=/tmp/dummy/pidns")); in TEST_F() [all …]
|
| H A D | proc-self-map-files-001.c | 16 /* Test readlink /proc/self/map_files/... */ 65 pass("/proc/self/map_files/%lx-%lx", a, b); in main() 66 fail("/proc/self/map_files/ %lx-%lx", a, b); in main() 67 fail("/proc/self/map_files/%lx -%lx", a, b); in main() 68 fail("/proc/self/map_files/%lx- %lx", a, b); in main() 69 fail("/proc/self/map_files/%lx-%lx ", a, b); in main() 70 fail("/proc/self/map_files/0%lx-%lx", a, b); in main() 71 fail("/proc/self/map_files/%lx-0%lx", a, b); in main() 73 fail("/proc/self/map_files/100000000%lx-%lx", a, b); in main() 74 fail("/proc/self/map_files/%lx-100000000%lx", a, b); in main() [all …]
|
| H A D | proc-self-map-files-002.c | 16 /* Test readlink /proc/self/map_files/... with minimum address. */ 77 pass("/proc/self/map_files/%lx-%lx", a, b); in main() 78 fail("/proc/self/map_files/ %lx-%lx", a, b); in main() 79 fail("/proc/self/map_files/%lx -%lx", a, b); in main() 80 fail("/proc/self/map_files/%lx- %lx", a, b); in main() 81 fail("/proc/self/map_files/%lx-%lx ", a, b); in main() 82 fail("/proc/self/map_files/0%lx-%lx", a, b); in main() 83 fail("/proc/self/map_files/%lx-0%lx", a, b); in main() 85 fail("/proc/self/map_files/100000000%lx-%lx", a, b); in main() 86 fail("/proc/self/map_files/%lx-100000000%lx", a, b); in main() [all …]
|
| /linux/arch/arm/mm/ |
| H A D | Makefile | 19 obj-$(CONFIG_MODULES) += proc-syms.o 67 obj-$(CONFIG_CPU_ARM7TDMI) += proc-arm7tdmi.o 68 obj-$(CONFIG_CPU_ARM720T) += proc-arm720.o 69 obj-$(CONFIG_CPU_ARM740T) += proc-arm740.o 70 obj-$(CONFIG_CPU_ARM9TDMI) += proc-arm9tdmi.o 71 obj-$(CONFIG_CPU_ARM920T) += proc-arm920.o 72 obj-$(CONFIG_CPU_ARM922T) += proc-arm922.o 73 obj-$(CONFIG_CPU_ARM925T) += proc-arm925.o 74 obj-$(CONFIG_CPU_ARM926T) += proc-arm926.o 75 obj-$(CONFIG_CPU_ARM940T) += proc-arm940.o [all …]
|
| /linux/rust/macros/ |
| H A D | quote.rs | |
| /linux/tools/testing/selftests/timens/ |
| H A D | procfs.c | 39 char path[] = "/proc/self/ns/time_for_children"; in init_namespaces() 71 FILE *proc; in read_proc_uptime() local 73 proc = fopen("/proc/uptime", "r"); in read_proc_uptime() 74 if (proc == NULL) { in read_proc_uptime() 75 pr_perror("Unable to open /proc/uptime"); in read_proc_uptime() 79 if (fscanf(proc, "%lu.%02lu", &up_sec, &up_nsec) != 2) { in read_proc_uptime() 84 pr_err("failed to parse /proc/uptime"); in read_proc_uptime() 87 fclose(proc); in read_proc_uptime() 96 FILE *proc; in read_proc_stat_btime() local [all...] |
| /linux/fs/dlm/ |
| H A D | user.c | 183 struct dlm_user_proc *proc; in dlm_user_add_ast() local 206 proc = ua->proc; in dlm_user_add_ast() 214 spin_lock_bh(&proc->asts_spin); in dlm_user_add_ast() 229 list_add_tail(&cb->list, &proc->asts); in dlm_user_add_ast() 230 wake_up_interruptible(&proc->wait); in dlm_user_add_ast() 233 spin_unlock_bh(&proc->asts_spin); in dlm_user_add_ast() 237 spin_lock_bh(&proc->locks_spin); in dlm_user_add_ast() 242 spin_unlock_bh(&proc->locks_spin); in dlm_user_add_ast() 248 static int device_user_lock(struct dlm_user_proc *proc, in device_user_lock() argument 256 ls = dlm_find_lockspace_local(proc->lockspace); in device_user_lock() [all …]
|
| /linux/Documentation/userspace-api/ |
| H A D | lsm.rst | 19 The proc filesystem provides this value in ``/proc/self/attr/current``. 21 Smack also provides this value in ``/proc/self/attr/smack/current``. 22 AppArmor also provides this value in ``/proc/self/attr/apparmor/current``. 26 The proc filesystem provides this value in ``/proc/self/attr/exec``. 28 AppArmor also provides this value in ``/proc/self/attr/apparmor/exec``. 32 The proc filesystem provides this value in ``/proc/self/attr/fscreate``. 37 The proc filesystem provides this value in ``/proc/self/attr/keycreate``. 42 The proc filesystem provides this value in ``/proc/self/attr/prev``. 44 AppArmor also provides this value in ``/proc/self/attr/apparmor/prev``. 48 The proc filesystem provides this value in ``/proc/self/attr/sockcreate``.
|
| /linux/tools/testing/selftests/pid_namespace/ |
| H A D | pid_max.c | 113 umount2("/proc", MNT_DETACH); in pid_max_nested_inner() 115 ret = mount("proc", "/proc", "proc", 0, NULL); in pid_max_nested_inner() 117 fprintf(stderr, "%m - Failed to mount proc\n"); in pid_max_nested_inner() 121 fd = open("/proc/sys/kernel/pid_max", O_RDWR | O_CLOEXEC | O_NOCTTY); in pid_max_nested_inner() 159 umount2("/proc", MNT_DETACH); in pid_max_nested_outer() 161 ret = mount("proc", "/proc", "proc", in pid_max_nested_outer() [all...] |
| /linux/tools/testing/selftests/livepatch/ |
| H A D | test-livepatch.sh | 17 # - load a livepatch that modifies the output from /proc/cmdline and 25 if [[ "$(cat /proc/cmdline)" != "$MOD_LIVEPATCH1: this has been live patched" ]] ; then 33 if [[ "$(cat /proc/cmdline)" == "$MOD_LIVEPATCH1: this has been live patched" ]] ; then 52 # - load a livepatch that modifies the output from /proc/cmdline and 62 grep 'live patched' /proc/cmdline > /dev/kmsg 63 grep 'live patched' /proc/meminfo > /dev/kmsg 67 grep 'live patched' /proc/cmdline > /dev/kmsg 68 grep 'live patched' /proc/meminfo > /dev/kmsg 73 grep 'live patched' /proc/cmdline > /dev/kmsg 74 grep 'live patched' /proc/meminf [all...] |
| /linux/drivers/staging/media/sunxi/sun6i-isp/ |
| H A D | sun6i_isp_proc.c | 24 *width = isp_dev->proc.mbus_format.width; in sun6i_isp_proc_dimensions() 26 *height = isp_dev->proc.mbus_format.height; in sun6i_isp_proc_dimensions() 112 struct sun6i_isp_proc *proc = &isp_dev->proc; in sun6i_isp_proc_enable() local 118 if (source == &proc->source_csi0) in sun6i_isp_proc_enable() 142 struct v4l2_mbus_framefmt *mbus_format = &isp_dev->proc.mbus_format; in sun6i_isp_proc_configure() 170 struct sun6i_isp_proc *proc = &isp_dev->proc; in sun6i_isp_proc_s_stream() local 171 struct media_pad *local_pad = &proc->pads[SUN6I_ISP_PROC_PAD_SINK_CSI]; in sun6i_isp_proc_s_stream() 189 if (source_subdev == proc->source_csi0.subdev) in sun6i_isp_proc_s_stream() 190 source = &proc->source_csi0; in sun6i_isp_proc_s_stream() 192 source = &proc->source_csi1; in sun6i_isp_proc_s_stream() [all …]
|
| /linux/tools/testing/selftests/damon/ |
| H A D | damon_nr_regions.py | 18 proc = subprocess.Popen(['./access_memory_even', '%d' % real_nr_regions, 28 targets=[_damon_sysfs.DamonTarget(pid=proc.pid)], 36 proc.terminate() 41 while proc.poll() is None: 45 proc.terminate() 51 proc.terminate() 57 proc.terminate() 63 proc.terminate() 87 proc = subprocess.Popen(['./access_memory_even', '14', '%d' % sz_region]) 95 targets=[_damon_sysfs.DamonTarget(pid=proc.pid)], [all …]
|
| H A D | damos_tried_regions.py | 12 proc = subprocess.Popen(['./access_memory_even', '14', '%d' % sz_region]) 18 targets=[_damon_sysfs.DamonTarget(pid=proc.pid)], 26 proc.terminate() 31 while proc.poll() is None: 35 proc.terminate() 41 proc.terminate() 47 proc.terminate() 53 proc.terminate()
|
| /linux/lib/ |
| H A D | fw_table.c | 114 static __init_or_fwtbl_lib int call_handler(struct acpi_subtable_proc *proc, in call_handler() argument 118 if (proc->handler) in call_handler() 119 return proc->handler(hdr, end); in call_handler() 120 if (proc->handler_arg) in call_handler() 121 return proc->handler_arg(hdr, proc->arg, end); in call_handler() 132 * @proc: array of acpi_subtable_proc struct containing entry id 134 * @proc_num: how big proc is? 137 * For each proc_num find a subtable with proc->id and run proc->handler 146 * On success returns sum of all matching entries for all proc handlers. 153 struct acpi_subtable_proc *proc, in acpi_parse_entries_array() argument [all …]
|
| /linux/Documentation/arch/s390/ |
| H A D | common_io.rst | 24 An ignored device can be un-ignored later; see the "/proc entries"-section for 54 /proc entries 57 * /proc/cio_ignore 61 You can un-ignore certain or all devices by piping to /proc/cio_ignore. 68 - echo free 0.0.0030-0.0.0032 > /proc/cio_ignore 71 - echo free 0.0.0041 > /proc/cio_ignore will furthermore un-ignore device 73 - echo free all > /proc/cio_ignore will un-ignore all remaining ignored 81 /proc/cio_ignore; "add <device range>, <device range>, ..." will ignore the 91 "echo add 0.0.a000-0.0.accc, 0.0.af00-0.0.afff > /proc/cio_ignore" 98 "echo purge > /proc/cio_ignore" [all …]
|
| /linux/tools/testing/selftests/mm/ |
| H A D | va_high_addr_switch.sh | 21 local config="/proc/config.gz" 23 [[ -f "${config}" ]] || skip "Cannot find kernel config in /proc or /boot" 30 else {print 1}; exit}' /proc/cpuinfo 2>/dev/null) 41 local config="/proc/config.gz" 43 [[ -f "${config}" ]] || skip "Cannot find kernel config in /proc or /boot" 50 local mmu_support=$(grep -m1 "mmu" /proc/cpuinfo | awk '{print $3}') 55 local hugepages_total=$(awk '/HugePages_Total/ {print $2}' /proc/meminfo)
|
| H A D | run_vmtests.sh | 189 mem_kb=$(awk '/MemAvailable/ {print $2}' /proc/meminfo) 193 echo 3 > /proc/sys/vm/drop_caches 195 echo 1 > /proc/sys/vm/compact_memory 327 enable_soft_offline=$(cat /proc/sys/vm/enable_soft_offline) 329 echo "$enable_soft_offline" > /proc/sys/vm/enable_soft_offline 358 if [ -f /proc/sys/kernel/yama/ptrace_scope ]; then 359 (echo 0 > /proc/sys/kernel/yama/ptrace_scope 2>&1) | tap_prefix 417 if grep xfs /proc/filesystems &>/dev/null; then
|
| /linux/Documentation/sound/designs/ |
| H A D | oss-emulation.rst | 33 /proc/asound/oss/sndstat. This shows in the same syntax of 35 On ALSA, you can symlink /dev/sndstat to this proc file. 37 Please note that the devices listed in this proc file appear only 129 writing a command to the proc file. There is a proc file for each PCM 130 stream, ``/proc/asound/cardX/pcmY[cp]/oss``, where X is the card number 132 playback and ``c`` for capture, respectively. Note that this proc file 171 % echo "quake 0 0 direct" > /proc/asound/card0/pcm0p/oss 177 % echo "quake 0 0 disable" > /proc/asound/card0/pcm0c/oss 179 The permission of proc files depend on the module options of snd. 202 You can check the currently defined configuration by reading the proc [all …]
|
| /linux/net/sunrpc/auth_gss/ |
| H A D | gss_rpc_upcall.c | 42 #define PROC(proc, name) \ argument 43 [GSSX_##proc] = { \ 44 .p_proc = GSSX_##proc, \ 49 .p_statidx = GSSX_##proc, \ 50 .p_name = #proc, \ 54 PROC(INDICATE_MECHS, indicate_mechs), 55 PROC(GET_CALL_CONTEXT, get_call_context), 56 PROC(IMPORT_AND_CANON_NAME, import_and_canon_name), 57 PROC(EXPORT_CRED, export_cred), 58 PROC(IMPORT_CRED, import_cred), [all …]
|
| /linux/tools/testing/selftests/memfd/ |
| H A D | run_hugetlbfs_test.sh | 14 # Get count of free huge pages from /proc/meminfo 20 done < /proc/meminfo 26 nr_hugepgs=`cat /proc/sys/vm/nr_hugepages` 34 echo 3 > /proc/sys/vm/drop_caches 35 echo $(( $hpages_needed + $nr_hugepgs )) > /proc/sys/vm/nr_hugepages 40 done < /proc/meminfo 50 echo $nr_hugepgs > /proc/sys/vm/nr_hugepages 67 echo $nr_hugepgs > /proc/sys/vm/nr_hugepages
|
| /linux/tools/perf/tests/shell/ |
| H A D | kallsyms.sh | 10 # Check if /proc/kallsyms is readable 11 if [ ! -r /proc/kallsyms ]; then 12 echo "Basic perf kallsyms test [Skipped: /proc/kallsyms not readable]" 27 # Check if we can grep the symbol from /proc/kallsyms directly 28 if grep -q "$symbol" /proc/kallsyms 2>/dev/null; then 29 # If it's in /proc/kallsyms but perf kallsyms returned empty/error, 31 …echo "Basic perf kallsyms test [Skipped: $symbol found in /proc/kallsyms but perf kallsyms failed … 35 echo "Basic perf kallsyms test [Skipped: $symbol not found in /proc/kallsyms]"
|
| /linux/rust/proc-macro2/ |
| H A D | README.md | 1 # `proc-macro2` 3 These source files come from the Rust `proc-macro2` crate, version 5 <https://github.com/dtolnay/proc-macro2> repository, licensed under 11 https://github.com/dtolnay/proc-macro2/blob/1.0.101/README.md#license 12 https://github.com/dtolnay/proc-macro2/blob/1.0.101/LICENSE-APACHE 13 https://github.com/dtolnay/proc-macro2/blob/1.0.101/LICENSE-MIT
|
| /linux/tools/testing/selftests/namespaces/ |
| H A D | init_ino_test.c | 23 { "ipc", "/proc/1/ns/ipc", IPC_NS_INIT_INO }, 24 { "uts", "/proc/1/ns/uts", UTS_NS_INIT_INO }, 25 { "user", "/proc/1/ns/user", USER_NS_INIT_INO }, 26 { "pid", "/proc/1/ns/pid", PID_NS_INIT_INO }, 27 { "cgroup", "/proc/1/ns/cgroup", CGROUP_NS_INIT_INO }, 28 { "time", "/proc/1/ns/time", TIME_NS_INIT_INO }, 29 { "net", "/proc/1/ns/net", NET_NS_INIT_INO }, 30 { "mnt", "/proc/1/ns/mnt", MNT_NS_INIT_INO },
|