Home
last modified time | relevance | path

Searched refs:proc (Results 1 – 25 of 748) sorted by relevance

12345678910>>...30

/Linux-v5.15/fs/proc/
DMakefile6 obj-y += proc.o
9 proc-y := nommu.o task_nommu.o
10 proc-$(CONFIG_MMU) := task_mmu.o
12 proc-y += inode.o root.o base.o generic.o array.o \
14 proc-$(CONFIG_TTY) += proc_tty.o
15 proc-y += cmdline.o
16 proc-y += consoles.o
17 proc-y += cpuinfo.o
18 proc-y += devices.o
19 proc-y += interrupts.o
[all …]
DKconfig3 bool "/proc file system support" if EXPERT
12 It's totally cool; for example, "cat /proc/interrupts" gives
18 information about your system gathered from the /proc file system.
20 Before you can use the /proc file system, it has to be mounted,
22 That location should be /proc. A command such as "mount -t proc proc
23 /proc" or the equivalent line in /etc/fstab does the job.
25 The /proc file system is explained in the file
26 <file:Documentation/filesystems/proc.rst> and on the proc(5) manpage
27 ("man 5 proc").
33 bool "/proc/kcore support" if !ARM
[all …]
/Linux-v5.15/drivers/android/
Dbinder.c92 DEFINE_SHOW_ATTRIBUTE(proc);
217 #define binder_proc_lock(proc) _binder_proc_lock(proc, __LINE__) argument
219 _binder_proc_lock(struct binder_proc *proc, int line) in _binder_proc_lock() argument
220 __acquires(&proc->outer_lock) in _binder_proc_lock()
224 spin_lock(&proc->outer_lock); in _binder_proc_lock()
235 _binder_proc_unlock(struct binder_proc *proc, int line) in _binder_proc_unlock() argument
236 __releases(&proc->outer_lock) in _binder_proc_unlock()
240 spin_unlock(&proc->outer_lock); in _binder_proc_unlock()
249 #define binder_inner_proc_lock(proc) _binder_inner_proc_lock(proc, __LINE__) argument
251 _binder_inner_proc_lock(struct binder_proc *proc, int line) in _binder_inner_proc_lock() argument
[all …]
/Linux-v5.15/fs/dlm/
Duser.c180 struct dlm_user_proc *proc; in dlm_user_add_ast() local
200 proc = ua->proc; in dlm_user_add_ast()
208 spin_lock(&proc->asts_spin); in dlm_user_add_ast()
212 spin_unlock(&proc->asts_spin); in dlm_user_add_ast()
218 list_add_tail(&lkb->lkb_cb_list, &proc->asts); in dlm_user_add_ast()
219 wake_up_interruptible(&proc->wait); in dlm_user_add_ast()
221 spin_unlock(&proc->asts_spin); in dlm_user_add_ast()
225 spin_lock(&proc->locks_spin); in dlm_user_add_ast()
230 spin_unlock(&proc->locks_spin); in dlm_user_add_ast()
236 static int device_user_lock(struct dlm_user_proc *proc, in device_user_lock() argument
[all …]
/Linux-v5.15/tools/testing/selftests/proc/
D.gitignore5 /proc-fsconfig-hidepid
6 /proc-loadavg-001
7 /proc-multiple-procfs
8 /proc-pid-vm
9 /proc-self-map-files-001
10 /proc-self-map-files-002
11 /proc-self-syscall
12 /proc-self-wchan
13 /proc-subset-pid
14 /proc-uptime-001
[all …]
DMakefile9 TEST_GEN_PROGS += proc-loadavg-001
10 TEST_GEN_PROGS += proc-pid-vm
11 TEST_GEN_PROGS += proc-self-map-files-001
12 TEST_GEN_PROGS += proc-self-map-files-002
13 TEST_GEN_PROGS += proc-self-syscall
14 TEST_GEN_PROGS += proc-self-wchan
15 TEST_GEN_PROGS += proc-subset-pid
16 TEST_GEN_PROGS += proc-uptime-001
17 TEST_GEN_PROGS += proc-uptime-002
23 TEST_GEN_PROGS += proc-multiple-procfs
[all …]
/Linux-v5.15/tools/testing/selftests/livepatch/
Dtest-livepatch.sh58 grep 'live patched' /proc/cmdline > /dev/kmsg
59 grep 'live patched' /proc/meminfo > /dev/kmsg
63 grep 'live patched' /proc/cmdline > /dev/kmsg
64 grep 'live patched' /proc/meminfo > /dev/kmsg
69 grep 'live patched' /proc/cmdline > /dev/kmsg
70 grep 'live patched' /proc/meminfo > /dev/kmsg
75 grep 'live patched' /proc/cmdline > /dev/kmsg
76 grep 'live patched' /proc/meminfo > /dev/kmsg
119 grep 'live patched' /proc/cmdline > /dev/kmsg
120 grep 'live patched' /proc/meminfo > /dev/kmsg
[all …]
/Linux-v5.15/arch/arm/mm/
DMakefile19 obj-$(CONFIG_MODULES) += proc-syms.o
78 obj-$(CONFIG_CPU_ARM7TDMI) += proc-arm7tdmi.o
79 obj-$(CONFIG_CPU_ARM720T) += proc-arm720.o
80 obj-$(CONFIG_CPU_ARM740T) += proc-arm740.o
81 obj-$(CONFIG_CPU_ARM9TDMI) += proc-arm9tdmi.o
82 obj-$(CONFIG_CPU_ARM920T) += proc-arm920.o
83 obj-$(CONFIG_CPU_ARM922T) += proc-arm922.o
84 obj-$(CONFIG_CPU_ARM925T) += proc-arm925.o
85 obj-$(CONFIG_CPU_ARM926T) += proc-arm926.o
86 obj-$(CONFIG_CPU_ARM940T) += proc-arm940.o
[all …]
/Linux-v5.15/tools/testing/selftests/timens/
Dprocfs.c73 FILE *proc; in read_proc_uptime() local
75 proc = fopen("/proc/uptime", "r"); in read_proc_uptime()
76 if (proc == NULL) { in read_proc_uptime()
81 if (fscanf(proc, "%lu.%02lu", &up_sec, &up_nsec) != 2) { in read_proc_uptime()
89 fclose(proc); in read_proc_uptime()
98 FILE *proc; in read_proc_stat_btime() local
101 proc = fopen("/proc/stat", "r"); in read_proc_stat_btime()
102 if (proc == NULL) { in read_proc_stat_btime()
107 while (fgets(line_buf, 2048, proc)) { in read_proc_stat_btime()
110 fclose(proc); in read_proc_stat_btime()
[all …]
/Linux-v5.15/drivers/firmware/efi/
Dcper-arm.c239 const struct cper_sec_proc_arm *proc) in cper_print_proc_arm() argument
246 printk("%sMIDR: 0x%016llx\n", pfx, proc->midr); in cper_print_proc_arm()
248 len = proc->section_length - (sizeof(*proc) + in cper_print_proc_arm()
249 proc->err_info_num * (sizeof(*err_info))); in cper_print_proc_arm()
251 printk("%ssection length: %d\n", pfx, proc->section_length); in cper_print_proc_arm()
254 printk("%sERR_INFO_NUM is %d\n", pfx, proc->err_info_num); in cper_print_proc_arm()
258 if (proc->validation_bits & CPER_ARM_VALID_MPIDR) in cper_print_proc_arm()
260 pfx, proc->mpidr); in cper_print_proc_arm()
262 if (proc->validation_bits & CPER_ARM_VALID_AFFINITY_LEVEL) in cper_print_proc_arm()
264 proc->affinity_level); in cper_print_proc_arm()
[all …]
Dcper.c144 const struct cper_sec_proc_generic *proc) in cper_print_proc_generic() argument
146 if (proc->validation_bits & CPER_PROC_VALID_TYPE) in cper_print_proc_generic()
147 printk("%s""processor_type: %d, %s\n", pfx, proc->proc_type, in cper_print_proc_generic()
148 proc->proc_type < ARRAY_SIZE(proc_type_strs) ? in cper_print_proc_generic()
149 proc_type_strs[proc->proc_type] : "unknown"); in cper_print_proc_generic()
150 if (proc->validation_bits & CPER_PROC_VALID_ISA) in cper_print_proc_generic()
151 printk("%s""processor_isa: %d, %s\n", pfx, proc->proc_isa, in cper_print_proc_generic()
152 proc->proc_isa < ARRAY_SIZE(proc_isa_strs) ? in cper_print_proc_generic()
153 proc_isa_strs[proc->proc_isa] : "unknown"); in cper_print_proc_generic()
154 if (proc->validation_bits & CPER_PROC_VALID_ERROR_TYPE) { in cper_print_proc_generic()
[all …]
/Linux-v5.15/tools/testing/selftests/sched/
Dcs_prctl_test.c159 void create_processes(int num_processes, int num_threads, struct child_args proc[]) in create_processes() argument
165 proc[i].num_threads = num_threads; in create_processes()
167 if (pipe(proc[i].pfd) == -1) in create_processes()
171 SIGCHLD, &proc[i]); in create_processes()
172 proc[i].cpid = cpid; in create_processes()
173 close(proc[i].pfd[1]); in create_processes()
177 read(proc[i].pfd[0], &proc[i].thr_tids, sizeof(int) * proc[i].num_threads); in create_processes()
178 close(proc[i].pfd[0]); in create_processes()
182 void disp_processes(int num_processes, struct child_args proc[]) in disp_processes() argument
190 printf(" tid=%d, / tgid=%d / pgid=%d: %lx\n", proc[i].cpid, proc[i].cpid, in disp_processes()
[all …]
/Linux-v5.15/fs/ksmbd/
Dsmb2ops.c169 [SMB2_NEGOTIATE_HE] = { .proc = smb2_negotiate_request, },
170 [SMB2_SESSION_SETUP_HE] = { .proc = smb2_sess_setup, },
171 [SMB2_TREE_CONNECT_HE] = { .proc = smb2_tree_connect,},
172 [SMB2_TREE_DISCONNECT_HE] = { .proc = smb2_tree_disconnect,},
173 [SMB2_LOGOFF_HE] = { .proc = smb2_session_logoff,},
174 [SMB2_CREATE_HE] = { .proc = smb2_open},
175 [SMB2_QUERY_INFO_HE] = { .proc = smb2_query_info},
176 [SMB2_QUERY_DIRECTORY_HE] = { .proc = smb2_query_dir},
177 [SMB2_CLOSE_HE] = { .proc = smb2_close},
178 [SMB2_ECHO_HE] = { .proc = smb2_echo},
[all …]
/Linux-v5.15/tools/testing/selftests/vm/
Drun_vmtests.sh19 done < /proc/meminfo
33 nr_hugepgs=`cat /proc/sys/vm/nr_hugepages`
38 echo 3 > /proc/sys/vm/drop_caches
39 echo $(( $lackpgs + $nr_hugepgs )) > /proc/sys/vm/nr_hugepages
48 done < /proc/meminfo
83 shmmax=`cat /proc/sys/kernel/shmmax`
84 shmall=`cat /proc/sys/kernel/shmall`
85 echo 268435456 > /proc/sys/kernel/shmmax
86 echo 4194304 > /proc/sys/kernel/shmall
97 echo $shmmax > /proc/sys/kernel/shmmax
[all …]
/Linux-v5.15/tools/testing/selftests/memfd/
Drun_hugetlbfs_test.sh20 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-v5.15/Documentation/filesystems/
Dproc.rst4 The /proc Filesystem
8 /proc/sys Terrehon Bowden <terrehon@pacbell.net>, October 7 1999
11 move /proc/sys Shen Feng <shen@cn.fujitsu.com> April 1 2009
26 1.3 IDE devices in /proc/ide
27 1.4 Networking info in /proc/net
29 1.6 Parallel port info in /proc/parport
30 1.7 TTY info in /proc/tty
31 1.8 Miscellaneous kernel statistics in /proc/stat
37 3.1 /proc/<pid>/oom_adj & /proc/<pid>/oom_score_adj - Adjust the oom-killer
39 3.2 /proc/<pid>/oom_score - Display current oom-killer score
[all …]
/Linux-v5.15/tools/testing/selftests/tc-testing/plugin-lib/
DbuildebpfPlugin.py53 proc = subprocess.Popen(command,
58 (rawout, serr) = proc.communicate()
60 if proc.returncode != 0 and len(serr) > 0:
65 proc.stdout.close()
66 proc.stderr.close()
67 return proc, foutput
/Linux-v5.15/Documentation/s390/
Dcommon_io.rst24 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-v5.15/Documentation/translations/zh_CN/admin-guide/
Dcpu-load.rst5 Linux通过``/proc/stat``和``/proc/uptime``导出各种信息,用户空间工具
20 大多数情况下``/proc/stat``的信息几乎真实反映了系统信息,然而,由于内
40 在上面的情况下,根据``/proc/stat``的信息(由于当系统处于空闲状态时,
43 大家能够想象内核的这种行为会发生在许多情况下,这将导致``/proc/stat``
99 - Documentation/filesystems/proc.rst (1.8)
/Linux-v5.15/Documentation/translations/zh_CN/accounting/
Dpsi.rst37 压力信息可通过/proc/pressure/ --cpu、memory、io文件分别获取。
74 示例:向/proc/pressure/memory写入"some 150000 1000000"将新增触发器,将在
75 1秒内至少一个任务阻塞于内存的总时间超过150ms时触发。向/proc/pressure/io写入
112 fds.fd = open("/proc/pressure/memory", O_RDWR | O_NONBLOCK);
114 printf("/proc/pressure/memory open error: %s\n",
121 printf("/proc/pressure/memory write error: %s\n",
153 内容格式与/proc/pressure/下的文件相同。
/Linux-v5.15/Documentation/translations/zh_TW/admin-guide/
Dcpu-load.rst11 Linux通過``/proc/stat``和``/proc/uptime``導出各種信息,用戶空間工具
26 大多數情況下``/proc/stat``的信息幾乎真實反映了系統信息,然而,由於內
46 在上面的情況下,根據``/proc/stat``的信息(由於當系統處於空閒狀態時,
49 大家能夠想像內核的這種行爲會發生在許多情況下,這將導致``/proc/stat``
105 - Documentation/filesystems/proc.rst (1.8)
/Linux-v5.15/tools/testing/selftests/splice/
Dshort_splice_read.sh118 expect_failure "proc_single_open(), seq_read() splice" test_splice /proc/$$/limits
119 expect_failure "special open(), seq_read() splice" test_splice /proc/$$/comm
122 expect_success "proc_handler: proc_dointvec_minmax() splice" test_splice /proc/sys/fs/nr_open
123 expect_success "proc_handler: proc_dostring() splice" test_splice /proc/sys/kernel/modprobe
124 expect_success "proc_handler: special read splice" test_splice /proc/sys/kernel/version
/Linux-v5.15/tools/testing/selftests/ftrace/test.d/ftrace/
Dfunc_stack_tracer.tc9 echo 1 > /proc/sys/kernel/stack_tracer_enabled
19 echo 0 > /proc/sys/kernel/stack_tracer_enabled
25 echo 1 > /proc/sys/kernel/stack_tracer_enabled
35 echo 0 > /proc/sys/kernel/stack_tracer_enabled
Dfgraph-filter-stack.tc10 if [ -e /proc/sys/kernel/stack_tracer_enabled ]; then
11 echo 0 > /proc/sys/kernel/stack_tracer_enabled
36 echo 1 > /proc/sys/kernel/stack_tracer_enabled
55 echo 0 > /proc/sys/kernel/stack_tracer_enabled
/Linux-v5.15/Documentation/translations/zh_CN/core-api/irq/
Dirq-affinity.rst20 /proc/irq/IRQ#/smp_affinity和/proc/irq/IRQ#/smp_affinity_list指定了哪些CPU能
25 /proc/irq/default_smp_affinity指明了适用于所有非激活IRQ的默认亲和性掩码。一旦IRQ被
32 [root@moon 44]# cd /proc/irq/44
45 [root@moon 44]# cat /proc/interrupts | grep 'CPU\|44:'
63 [root@moon 44]# cat /proc/interrupts | 'CPU\|44:'

12345678910>>...30