/system/core/adb/ |
D | jdwp_service.cpp | 147 JdwpProcess* proc = _jdwp_list.next; in jdwp_process_list() local 149 for ( ; proc != &_jdwp_list; proc = proc->next ) { in jdwp_process_list() 153 if (proc->pid < 0) in jdwp_process_list() 156 len = snprintf(p, end-p, "%d\n", proc->pid); in jdwp_process_list() 180 jdwp_process_free( JdwpProcess* proc ) in jdwp_process_free() argument 182 if (proc) { in jdwp_process_free() 185 proc->prev->next = proc->next; in jdwp_process_free() 186 proc->next->prev = proc->prev; in jdwp_process_free() 188 if (proc->socket >= 0) { in jdwp_process_free() 189 adb_shutdown(proc->socket); in jdwp_process_free() [all …]
|
D | get_my_path_linux.cpp | 26 char proc[64]; in get_my_path() local 27 snprintf(proc, sizeof proc, "/proc/%d/exe", getpid()); in get_my_path() 28 int err = readlink(proc, exe, maxLen - 1); in get_my_path()
|
/system/extras/libpagemap/ |
D | pm_process.c | 29 static int read_maps(pm_process_t *proc); 34 pm_process_t *proc; in pm_process_create() local 41 proc = calloc(1, sizeof(*proc)); in pm_process_create() 42 if (!proc) in pm_process_create() 45 proc->ker = ker; in pm_process_create() 46 proc->pid = pid; in pm_process_create() 51 free(proc); in pm_process_create() 55 proc->pagemap_fd = open(filename, O_RDONLY); in pm_process_create() 56 if (proc->pagemap_fd < 0) { in pm_process_create() 58 free(proc); in pm_process_create() [all …]
|
D | pm_map.c | 26 return pm_process_pagemap_range(map->proc, map->start, map->end, in pm_map_pagemap() 48 usage.vss += map->proc->ker->pagesize; in pm_map_usage_flags() 57 error = pm_kernel_flags(map->proc->ker, PM_PAGEMAP_PFN(pagemap[i]), in pm_map_usage_flags() 65 error = pm_kernel_count(map->proc->ker, PM_PAGEMAP_PFN(pagemap[i]), in pm_map_usage_flags() 69 usage.rss += (count >= 1) ? map->proc->ker->pagesize : (0); in pm_map_usage_flags() 70 usage.pss += (count >= 1) ? (map->proc->ker->pagesize / count) : (0); in pm_map_usage_flags() 71 usage.uss += (count == 1) ? (map->proc->ker->pagesize) : (0); in pm_map_usage_flags() 73 usage.swap += map->proc->ker->pagesize; in pm_map_usage_flags() 108 error = pm_kernel_flags(map->proc->ker, PM_PAGEMAP_PFN(pagemap[i]), in pm_map_workingset() 115 error = pm_kernel_count(map->proc->ker, PM_PAGEMAP_PFN(pagemap[i]), in pm_map_workingset() [all …]
|
D | pm_kernel.c | 63 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/ |
D | top.c | 95 static void free_proc(struct proc_info *proc); 97 static int read_stat(char *filename, struct proc_info *proc); 98 static void read_policy(int pid, struct proc_info *proc); 99 static void add_proc(int proc_num, struct proc_info *proc); 100 static int read_cmdline(char *filename, struct proc_info *proc); 101 static int read_status(char *filename, struct proc_info *proc); 198 struct proc_info *proc; in alloc_proc() local 201 proc = free_procs; in alloc_proc() 205 proc = malloc(sizeof(*proc)); in alloc_proc() 206 if (!proc) die("Could not allocate struct process_info.\n"); in alloc_proc() [all …]
|
/system/sepolicy/ |
D | genfs_contexts | 3 # proc labeling can be further refined (longest matching prefix). 4 genfscon proc / u:object_r:proc:s0 5 genfscon proc /iomem u:object_r:proc_iomem:s0 6 genfscon proc /meminfo u:object_r:proc_meminfo:s0 7 genfscon proc /net u:object_r:proc_net:s0 8 genfscon proc /net/xt_qtaguid/ctrl u:object_r:qtaguid_proc:s0 9 genfscon proc /cpuinfo u:object_r:proc_cpuinfo:s0 10 genfscon proc /sysrq-trigger u:object_r:proc_sysrq:s0 11 genfscon proc /sys/fs/protected_hardlinks u:object_r:proc_security:s0 12 genfscon proc /sys/fs/protected_symlinks u:object_r:proc_security:s0 [all …]
|
D | bootstat.te | 11 # Read access to pseudo filesystems (for /proc/uptime). 12 r_dir_file(bootstat, proc)
|
D | shell.te | 95 # allow shell to look through /proc/ for ps, top, netstat 96 r_dir_file(shell, proc) 103 # statvfs() of /proc and other labeled filesystems 105 allow shell { proc labeledfs }:filesystem getattr; 110 # allow shell to read /proc/pid/attr/current for ps -Z
|
D | mdnsd.te | 8 # Read from /proc/net
|
D | perfprofd.te | 39 # simpleperf needs to examine /proc to collect task/thread info 42 # simpleperf needs to access /proc/<pid>/exec
|
D | mediaserver.te | 12 # stat /proc/self 13 allow mediaserver proc:lnk_file getattr; 63 # Read/[write] to /proc/net/xt_qtaguid/ctrl and /dev/xt_qtaguid
|
/system/update_engine/common/ |
D | subprocess.cc | 77 brillo::Process* proc) { in LaunchProcess() argument 79 proc->AddArg(arg); in LaunchProcess() 80 proc->SetSearchPath((flags & Subprocess::kSearchPath) != 0); in LaunchProcess() 91 proc->RedirectUsingPipe(fd, false); in LaunchProcess() 93 proc->SetCloseUnusedFileDescriptors(true); in LaunchProcess() 94 proc->RedirectUsingPipe(STDOUT_FILENO, false); in LaunchProcess() 95 proc->SetPreExecCallback(base::Bind(&SetupChild, env, flags)); in LaunchProcess() 97 return proc->Start(); in LaunchProcess() 165 record->proc.Release(); in ChildExitedCallback() 166 record->proc.Reset(0); in ChildExitedCallback() [all …]
|
/system/extras/libpagemap/include/pagemap/ |
D | pagemap.h | 102 pm_process_t *proc; member 164 #define pm_process_pid(proc) ((proc)->pid) argument 171 int pm_process_usage(pm_process_t *proc, pm_memusage_t *usage_out); 175 int pm_process_usage_flags(pm_process_t *proc, pm_memusage_t *usage_out, 180 int pm_process_workingset(pm_process_t *proc, pm_memusage_t *ws_out, int reset); 185 int pm_process_pagemap_range(pm_process_t *proc, 202 int pm_process_maps(pm_process_t *proc, pm_map_t ***maps_out, size_t *len); 205 int pm_process_destroy(pm_process_t *proc);
|
/system/core/fastboot/ |
D | util_linux.cpp | 41 char proc[64]; in get_my_path() local 44 sprintf(proc, "/proc/%d/exe", getpid()); in get_my_path() 45 int err = readlink(proc, path, PATH_MAX - 1); in get_my_path()
|
/system/extras/tests/net_test/ |
D | net_test.sh | 4 [ -f /proc/net/if_inet6 ] || insmod $DIR/kernel/net-next/net/ipv6/ipv6.ko 12 echo "0 65536" > /proc/sys/net/ipv4/ping_group_range 18 test=$(cat /proc/cmdline | sed -re 's/.*net_test=([^ ]*).*/\1/g')
|
/system/core/rootdir/ |
D | init.rc | 15 write /proc/1/oom_score_adj -1000 18 write /proc/sys/kernel/sysrq 0 35 copy /proc/cmdline /dev/urandom 99 write /proc/sys/kernel/panic_on_oops 1 100 write /proc/sys/kernel/hung_task_timeout_secs 0 101 write /proc/cpu/alignment 4 107 write /proc/sys/kernel/sched_tunable_scaling 0 108 write /proc/sys/kernel/sched_latency_ns 10000000 109 write /proc/sys/kernel/sched_wakeup_granularity_ns 2000000 110 write /proc/sys/kernel/sched_compat_yield 1 [all …]
|
/system/extras/librank/ |
D | librank.c | 37 struct process_info *proc; member 127 struct mapping_info *get_mapping(struct library_info *library, struct process_info *proc) { in get_mapping() argument 132 if (library->mappings[i]->proc == proc) in get_mapping() 151 mapping->proc = proc; in get_mapping() 205 pm_process_t *proc; in main() local 335 error = pm_process_create(ker, pids[i], &proc); in main() 343 error = pm_process_maps(proc, &maps, &num_maps); in main() 345 fprintf(stderr, "Error listing maps for process %d.\n", proc->pid); in main() 367 pm_map_name(maps[j]), proc->pid); in main() 405 pi = mi->proc; in main()
|
/system/core/lmkd/ |
D | lmkd.c | 100 struct proc { struct 105 struct proc *pidhash_next; argument 109 static struct proc *pidhash[PIDHASH_SZ]; 146 static struct proc *pid_lookup(int pid) { in pid_lookup() 147 struct proc *procp; in pid_lookup() 179 static void proc_slot(struct proc *procp) { in proc_slot() 185 static void proc_unslot(struct proc *procp) { in proc_unslot() 189 static void proc_insert(struct proc *procp) { in proc_insert() 199 struct proc *procp; in pid_remove() 200 struct proc *prevp; in pid_remove() [all …]
|
/system/core/crash_reporter/ |
D | crash_reporter.rc | 2 write /proc/sys/kernel/core_pattern \ 6 write /proc/sys/kernel/core_pattern "core" 11 write /proc/sys/kernel/core_pipe_limit 4
|
/system/extras/ksmutils/ |
D | ksminfo.c | 71 pm_process_t *proc; in main() local 153 error = pm_process_create(ker, pids[i], &proc); in main() 160 error = pm_process_maps(proc, &maps, &num_maps); in main() 162 pm_process_destroy(proc); in main() 170 pm_process_destroy(proc); in main() 176 pm_process_destroy(proc); in main() 210 pid = pm_process_pid(maps[0]->proc); in read_pages() 211 ker = maps[0]->proc->ker; in read_pages() 234 pm_process_pid(maps[i]->proc)); in read_pages()
|
/system/extras/procrank/ |
D | procrank.c | 178 pm_process_t *proc; in main() local 260 error = pm_process_create(ker, pids[i], &proc); in main() 268 error = pm_process_usage_flags(proc, &procs[i]->usage, flags_mask, in main() 272 error = pm_process_workingset(proc, &procs[i]->usage, 0); in main() 275 error = pm_process_workingset(proc, NULL, 1); in main() 287 pm_process_destroy(proc); in main()
|
/system/extras/procmem/ |
D | procmem.c | 48 pm_process_t *proc; in main() local 112 error = pm_process_create(ker, pid, &proc); in main() 120 error = pm_process_workingset(proc, NULL, 1); in main() 129 error = pm_process_maps(proc, &maps, &num_maps); in main()
|
/system/core/init/ |
D | perfboot.py | 155 def readlines_unbuffered(proc): argument 159 c = proc.stdout.read(1) 160 if c == '' and proc.poll() is not None: 163 if c == '' and proc.poll() is not None: 166 c = proc.stdout.read(1)
|
/system/extras/tests/sdcard/ |
D | profile_sdcard.sh | 19 adb shell cat /proc/version
|