Home
last modified time | relevance | path

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

/system/core/adb/
Djdwp_service.c126 JdwpProcess* proc = _jdwp_list.next; in jdwp_process_list() local
128 for ( ; proc != &_jdwp_list; proc = proc->next ) { in jdwp_process_list()
132 if (proc->pid < 0) in jdwp_process_list()
135 len = snprintf(p, end-p, "%d\n", proc->pid); in jdwp_process_list()
159 jdwp_process_free( JdwpProcess* proc ) in jdwp_process_free() argument
161 if (proc) { in jdwp_process_free()
164 proc->prev->next = proc->next; in jdwp_process_free()
165 proc->next->prev = proc->prev; in jdwp_process_free()
167 if (proc->socket >= 0) { in jdwp_process_free()
168 adb_shutdown(proc->socket); in jdwp_process_free()
[all …]
Dget_my_path_freebsd.c28 char proc[64]; in get_my_path() local
30 snprintf(proc, sizeof(proc), "/proc/%d/file", getpid()); in get_my_path()
32 int err = readlink(proc, exe, maxLen - 1); in get_my_path()
Dget_my_path_linux.c24 char proc[64]; in get_my_path() local
25 snprintf(proc, sizeof proc, "/proc/%d/exe", getpid()); in get_my_path()
26 int err = readlink(proc, exe, maxLen - 1); in get_my_path()
/system/extras/libpagemap/
Dpm_process.c28 static int read_maps(pm_process_t *proc);
33 pm_process_t *proc; in pm_process_create() local
40 proc = calloc(1, sizeof(*proc)); in pm_process_create()
41 if (!proc) in pm_process_create()
44 proc->ker = ker; in pm_process_create()
45 proc->pid = pid; in pm_process_create()
50 free(proc); in pm_process_create()
54 proc->pagemap_fd = open(filename, O_RDONLY); in pm_process_create()
55 if (proc->pagemap_fd < 0) { in pm_process_create()
57 free(proc); in pm_process_create()
[all …]
Dpm_map.c26 return pm_process_pagemap_range(map->proc, map->start, map->end, in pm_map_pagemap()
50 error = pm_kernel_count(map->proc->ker, PM_PAGEMAP_PFN(pagemap[i]), in pm_map_usage()
54 usage.vss += map->proc->ker->pagesize; in pm_map_usage()
55 usage.rss += (count >= 1) ? (map->proc->ker->pagesize) : (0); in pm_map_usage()
56 usage.pss += (count >= 1) ? (map->proc->ker->pagesize / count) : (0); in pm_map_usage()
57 usage.uss += (count == 1) ? (map->proc->ker->pagesize) : (0); in pm_map_usage()
86 error = pm_kernel_flags(map->proc->ker, PM_PAGEMAP_PFN(pagemap[i]), in pm_map_workingset()
93 error = pm_kernel_count(map->proc->ker, PM_PAGEMAP_PFN(pagemap[i]), in pm_map_workingset()
97 ws.vss += map->proc->ker->pagesize; in pm_map_workingset()
99 ws.rss += (count >= 1) ? (map->proc->ker->pagesize) : (0); in pm_map_workingset()
[all …]
Dpm_kernel.c63 DIR *proc; in pm_kernel_pids() local
69 proc = opendir("/proc"); in pm_kernel_pids()
70 if (!proc) in pm_kernel_pids()
75 closedir(proc); in pm_kernel_pids()
80 while ((dir = readdir(proc))) { in pm_kernel_pids()
89 closedir(proc); in pm_kernel_pids()
101 closedir(proc); in pm_kernel_pids()
/system/core/toolbox/
Dtop.c93 static void free_proc(struct proc_info *proc);
95 static int read_stat(char *filename, struct proc_info *proc);
96 static void read_policy(int pid, struct proc_info *proc);
97 static void add_proc(int proc_num, struct proc_info *proc);
98 static int read_cmdline(char *filename, struct proc_info *proc);
99 static int read_status(char *filename, struct proc_info *proc);
197 struct proc_info *proc; in alloc_proc() local
200 proc = free_procs; in alloc_proc()
204 proc = malloc(sizeof(*proc)); in alloc_proc()
205 if (!proc) die("Could not allocate struct process_info.\n"); in alloc_proc()
[all …]
/system/extras/libpagemap/include/pagemap/
Dpagemap.h68 pm_process_t *proc; member
112 #define pm_process_pid(proc) ((proc)->pid) argument
119 int pm_process_usage(pm_process_t *proc, pm_memusage_t *usage_out);
123 int pm_process_workingset(pm_process_t *proc, pm_memusage_t *ws_out, int reset);
128 int pm_process_pagemap_range(pm_process_t *proc,
145 int pm_process_maps(pm_process_t *proc, pm_map_t ***maps_out, size_t *len);
148 int pm_process_destroy(pm_process_t *proc);
/system/core/fastboot/
Dutil_linux.c39 char proc[64]; in get_my_path() local
42 sprintf(proc, "/proc/%d/exe", getpid()); in get_my_path()
43 int err = readlink(proc, path, PATH_MAX - 1); in get_my_path()
/system/extras/librank/
Dlibrank.c35 struct process_info *proc; member
118 struct mapping_info *get_mapping(struct library_info *library, struct process_info *proc) { in get_mapping() argument
123 if (library->mappings[i]->proc == proc) in get_mapping()
142 mapping->proc = proc; in get_mapping()
172 pm_process_t *proc; in main() local
232 error = pm_process_create(ker, pids[i], &proc); in main()
240 error = pm_process_maps(proc, &maps, &num_maps); in main()
242 fprintf(stderr, "Error listing maps for process %d.\n", proc->pid); in main()
260 pm_map_name(maps[j]), proc->pid); in main()
283 pi = mi->proc; in main()
/system/core/rootdir/
Dinit.rc13 write /proc/1/oom_adj -16
84 write /proc/sys/kernel/panic_on_oops 1
85 write /proc/sys/kernel/hung_task_timeout_secs 0
86 write /proc/cpu/alignment 4
87 write /proc/sys/kernel/sched_latency_ns 10000000
88 write /proc/sys/kernel/sched_wakeup_granularity_ns 2000000
89 write /proc/sys/kernel/sched_compat_yield 1
90 write /proc/sys/kernel/sched_child_runs_first 0
91 write /proc/sys/kernel/randomize_va_space 2
92 write /proc/sys/kernel/kptr_restrict 2
[all …]
DAndroid.mk44 proc \
/system/extras/procrank/
Dprocrank.c119 pm_process_t *proc; in main() local
182 error = pm_process_create(ker, pids[i], &proc); in main()
190 error = pm_process_usage(proc, &procs[i]->usage); in main()
193 error = pm_process_workingset(proc, &procs[i]->usage, 0); in main()
196 error = pm_process_workingset(proc, NULL, 1); in main()
204 pm_process_destroy(proc); in main()
/system/extras/procmem/
Dprocmem.c47 pm_process_t *proc; in main() local
111 error = pm_process_create(ker, pid, &proc); in main()
119 error = pm_process_workingset(proc, NULL, 1); in main()
128 error = pm_process_maps(proc, &maps, &num_maps); in main()
/system/extras/tests/sdcard/
Dprofile_sdcard.sh19 adb shell cat /proc/version
/system/extras/tests/binder/benchmarks/
DbinderAddInts.cpp227 sp<ProcessState> proc(ProcessState::self()); in server() local
236 proc->startThreadPool(); in server()
/system/core/init/
Dreadme.txt271 mkdir /proc
278 mount proc proc /proc
281 write /proc/cpu/alignment 4
/system/extras/tests/fstest/
Dperm_checker.conf110 /proc/ 555 555 root root root root
111 /proc/... 000 777 root 19999 root 19999
112 /proc/sys/kernel/sched_nr_migrate 000 1664 root root root root