Searched defs:proc (Results 1 - 11 of 11) sorted by relevance

/system/core/adb/
H A Dget_my_path_freebsd.c28 char proc[64]; local
30 snprintf(proc, sizeof(proc), "/proc/%d/file", getpid());
32 int err = readlink(proc, exe, maxLen - 1);
H A Dget_my_path_linux.c24 char proc[64]; local
25 snprintf(proc, sizeof proc, "/proc/%d/exe", getpid());
26 int err = readlink(proc, exe, maxLen - 1);
H A Djdwp_service.c126 JdwpProcess* proc = _jdwp_list.next; local
128 for ( ; proc != &_jdwp_list; proc = proc->next ) {
132 if (proc->pid < 0)
135 len = snprintf(p, end-p, "%d\n", proc->pid);
159 jdwp_process_free( JdwpProcess* proc )
161 if (proc) {
164 proc->prev->next = proc
197 JdwpProcess* proc = calloc(1,sizeof(*proc)); local
237 JdwpProcess* proc = _proc; local
392 JdwpProcess* proc = _jdwp_list.next; local
518 JdwpProcess* proc; local
[all...]
/system/core/fastboot/
H A Dutil_linux.c39 char proc[64]; local
42 sprintf(proc, "/proc/%d/exe", getpid());
43 int err = readlink(proc, path, PATH_MAX - 1);
/system/extras/libpagemap/
H A Dpm_kernel.c39 ker->kpagecount_fd = open("/proc/kpagecount", O_RDONLY);
46 ker->kpageflags_fd = open("/proc/kpageflags", O_RDONLY);
63 DIR *proc; local
69 proc = opendir("/proc");
70 if (!proc)
75 closedir(proc);
80 while ((dir = readdir(proc))) {
89 closedir(proc);
101 closedir(proc);
[all...]
H A Dpm_process.c28 static int read_maps(pm_process_t *proc);
33 pm_process_t *proc; local
40 proc = calloc(1, sizeof(*proc));
41 if (!proc)
44 proc->ker = ker;
45 proc->pid = pid;
47 error = snprintf(filename, MAX_FILENAME, "/proc/%d/pagemap", pid);
50 free(proc);
54 proc
72 pm_process_usage(pm_process_t *proc, pm_memusage_t *usage_out) argument
94 pm_process_pagemap_range(pm_process_t *proc, unsigned long low, unsigned long high, uint64_t **range_out, size_t *len) argument
137 pm_process_maps(pm_process_t *proc, pm_map_t ***maps_out, size_t *len) argument
159 pm_process_workingset(pm_process_t *proc, pm_memusage_t *ws_out, int reset) argument
201 pm_process_destroy(pm_process_t *proc) argument
223 read_maps(pm_process_t *proc) argument
[all...]
/system/extras/libpagemap/include/pagemap/
H A Dpagemap.h68 pm_process_t *proc; member in struct:pm_map
88 /* Get the map count (from /proc/kpagecount) of a physical frame.
92 /* Get the page flags (from /proc/kpageflags) of a physical frame.
112 #define pm_process_pid(proc) ((proc)->pid)
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);
[all...]
/system/extras/librank/
H A Dlibrank.c35 struct process_info *proc; member in struct:mapping_info
118 struct mapping_info *get_mapping(struct library_info *library, struct process_info *proc) { argument
123 if (library->mappings[i]->proc == proc)
142 mapping->proc = proc;
172 pm_process_t *proc; local
232 error = pm_process_create(ker, pids[i], &proc);
240 error = pm_process_maps(proc, &maps, &num_maps);
242 fprintf(stderr, "Error listing maps for process %d.\n", proc
[all...]
/system/extras/procmem/
H A Dprocmem.c47 pm_process_t *proc; local
111 error = pm_process_create(ker, pid, &proc);
119 error = pm_process_workingset(proc, NULL, 1);
128 error = pm_process_maps(proc, &maps, &num_maps);
308 " -m Sort by mapping order (as read from /proc).\n"
/system/extras/procrank/
H A Dprocrank.c52 int fd = open("/proc/meminfo", O_RDONLY);
55 printf("Unable to open /proc/meminfo: %s\n", strerror(errno));
63 printf("Empty /proc/meminfo");
119 pm_process_t *proc; local
182 error = pm_process_create(ker, pids[i], &proc);
190 error = pm_process_usage(proc, &procs[i]->usage);
193 error = pm_process_workingset(proc, &procs[i]->usage, 0);
196 error = pm_process_workingset(proc, NULL, 1);
204 pm_process_destroy(proc);
309 * 1 on failure to create string to examine proc cmdlin
[all...]
/system/core/toolbox/
H A 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; local
200 proc = free_procs;
204 proc = malloc(sizeof(*proc));
213 free_proc(struct proc_info *proc) argument
229 struct proc_info *proc; local
324 read_stat(char *filename, struct proc_info *proc) argument
352 add_proc(int proc_num, struct proc_info *proc) argument
365 read_cmdline(char *filename, struct proc_info *proc) argument
382 read_policy(int pid, struct proc_info *proc) argument
392 read_status(char *filename, struct proc_info *proc) argument
410 struct proc_info *old_proc, *proc; local
[all...]

Completed in 121 milliseconds