Searched refs:proc (Results 1 - 25 of 673) sorted by relevance

1234567891011>>

/external/chromium_org/third_party/yasm/source/patched-yasm/modules/parsers/tasm/tests/exe/
H A Dexe.asm2 start proc
/external/ltrace/sysdeps/linux-gnu/alpha/
H A Dregs.c28 #include "proc.h"
40 get_instruction_pointer(struct process *proc) argument
42 return (void *)ptrace(PTRACE_PEEKUSER, proc->pid, 64 /* REG_PC */ , 0);
46 set_instruction_pointer(struct process *proc, void *addr) argument
48 ptrace(PTRACE_POKEUSER, proc->pid, 64 /* REG_PC */ , addr);
52 get_stack_pointer(struct process *proc) argument
54 return (void *)ptrace(PTRACE_PEEKUSER, proc->pid, 30 /* REG_FP */ , 0);
58 get_return_addr(struct process *proc, void *stack_pointer) argument
60 return (void *)ptrace(PTRACE_PEEKUSER, proc->pid, 26 /* RA */ , 0);
H A Dtrace.c30 #include "proc.h"
43 get_arch_dep(struct process *proc) argument
50 syscall_p(struct process *proc, int status, int *sysnum) argument
53 && WSTOPSIG(status) == (SIGTRAP | proc->tracesysgood)) {
54 char *ip = get_instruction_pointer(proc) - 4;
55 long x = ptrace(PTRACE_PEEKTEXT, proc->pid, ip, 0);
60 ptrace(PTRACE_PEEKUSER, proc->pid, 0 /* REG_R0 */ , 0);
61 if (proc->callstack_depth > 0 &&
62 proc->callstack[proc
74 gimme_arg(enum tof type, struct process *proc, int arg_num, struct arg_type_info *info) argument
[all...]
/external/ltrace/sysdeps/linux-gnu/cris/
H A Dregs.c29 #include "proc.h"
40 void *get_instruction_pointer(struct process *proc) argument
42 return (void *)ptrace(PTRACE_PEEKUSER, proc->pid, 4 * PT_PPC, 0);
45 void set_instruction_pointer(struct process *proc, void *addr) argument
47 ptrace(PTRACE_POKEUSER, proc->pid, 4 * PT_PPC, addr);
50 void *get_stack_pointer(struct process *proc) argument
52 return (void *)ptrace(PTRACE_PEEKUSER, proc->pid, 4 * PT_USP, 0);
55 void *get_return_addr(struct process *proc, void *stack_pointer) argument
57 return (void *)ptrace(PTRACE_PEEKUSER, proc->pid, 4 * PT_SRP, 0);
H A Dtrace.c32 #include "proc.h"
43 void get_arch_dep(struct process *proc) argument
50 int syscall_p(struct process *proc, int status, int *sysnum) argument
53 && WSTOPSIG(status) == (SIGTRAP | proc->tracesysgood)) {
54 long pc = (long)get_instruction_pointer(proc);
56 (int)ptrace(PTRACE_PEEKTEXT, proc->pid, pc - sizeof(long),
61 (int)ptrace(PTRACE_PEEKUSER, proc->pid,
63 if (proc->callstack_depth > 0
64 && proc->callstack[proc
74 gimme_arg(enum tof type, struct process *proc, int arg_num, struct arg_type_info *info) argument
[all...]
/external/ltrace/sysdeps/linux-gnu/m68k/
H A Dregs.c28 #include "proc.h"
40 get_instruction_pointer(struct process *proc) argument
42 return (void *)ptrace(PTRACE_PEEKUSER, proc->pid, 4 * PT_PC, 0);
46 set_instruction_pointer(struct process *proc, void *addr) argument
48 ptrace(PTRACE_POKEUSER, proc->pid, 4 * PT_PC, addr);
52 get_stack_pointer(struct process *proc) argument
54 return (void *)ptrace(PTRACE_PEEKUSER, proc->pid, 4 * PT_USP, 0);
58 get_return_addr(struct process *proc, void *stack_pointer) argument
60 return (void *)ptrace(PTRACE_PEEKTEXT, proc->pid, stack_pointer, 0);
H A Dtrace.c31 #include "proc.h"
43 get_arch_dep(struct process *proc) argument
50 syscall_p(struct process *proc, int status, int *sysnum) argument
55 && WSTOPSIG(status) == (SIGTRAP | proc->tracesysgood)) {
56 *sysnum = ptrace(PTRACE_PEEKUSER, proc->pid, 4 * PT_ORIG_D0, 0);
60 depth = proc->callstack_depth;
62 proc->callstack[depth - 1].is_syscall &&
63 proc->callstack[depth - 1].c_un.syscall == *sysnum) {
/external/ltrace/sysdeps/linux-gnu/mips/
H A Dregs.c30 #include "proc.h"
49 \param proc The process to work on.
53 get_instruction_pointer(struct process *proc) argument
55 return (void *)ptrace(PTRACE_PEEKUSER, proc->pid, off_pc, 0);
59 \param proc The process to work on.
68 set_instruction_pointer(struct process *proc, void *addr) argument
70 ptrace(PTRACE_POKEUSER, proc->pid, off_pc, addr);
74 \param proc The process to work on.
78 get_stack_pointer(struct process *proc) argument
80 return (void *)ptrace(PTRACE_PEEKUSER, proc
94 get_return_addr(struct process *proc, void *stack_pointer) argument
[all...]
/external/ltrace/
H A Dbreakpoint.h47 void (*on_hit)(struct breakpoint *bp, struct process *proc);
48 void (*on_continue)(struct breakpoint *bp, struct process *proc);
49 void (*on_install)(struct breakpoint *bp, struct process *proc);
50 void (*on_retract)(struct breakpoint *bp, struct process *proc);
59 struct breakpoint *bp, struct process *proc);
73 void breakpoint_on_hit(struct breakpoint *bp, struct process *proc);
77 void breakpoint_on_continue(struct breakpoint *bp, struct process *proc);
86 void breakpoint_on_retract(struct breakpoint *bp, struct process *proc);
92 void breakpoint_on_install(struct breakpoint *bp, struct process *proc);
97 struct breakpoint *bp, struct process *proc);
[all...]
H A Dproc.c37 #include "proc.h"
42 os_process_init(struct process *proc) argument
48 os_process_destroy(struct process *proc) argument
53 os_process_clone(struct process *retp, struct process *proc) argument
59 os_process_exec(struct process *proc) argument
67 arch_process_init(struct process *proc) argument
73 arch_process_destroy(struct process *proc) argument
78 arch_process_clone(struct process *retp, struct process *proc) argument
84 arch_process_exec(struct process *proc) argument
92 arch_dynlink_done(struct process *proc) argument
101 destroy_unwind(struct process *proc) argument
117 process_bare_init(struct process *proc, const char *filename, pid_t pid, int was_exec) argument
183 process_bare_destroy(struct process *proc, int was_exec) argument
195 process_init_main(struct process *proc) argument
207 process_init(struct process *proc, const char *filename, pid_t pid) argument
239 destroy_breakpoint_cb(struct process *proc, struct breakpoint *bp, void *data) argument
250 private_process_destroy(struct process *proc, int was_exec) argument
293 process_destroy(struct process *proc) argument
301 process_exec(struct process *proc) argument
324 struct process *proc = malloc(sizeof(*proc)); local
358 process_clone(struct process *retp, struct process *proc, pid_t pid) argument
501 struct process *proc = open_program(filename, pid); local
511 start_one_pid(struct process *proc, void *data) argument
518 is_main(struct process *proc, struct library *lib, void *data) argument
524 process_hit_start(struct process *proc) argument
599 find_proc(struct process *proc, void *data) argument
613 unlist_process(struct process *proc) argument
634 each_process(struct process *start_after, enum callback_status(*cb)(struct process *proc, void *data), void *data) argument
658 each_task(struct process *proc, struct process *start_after, enum callback_status(*cb)(struct process *proc, void *data), void *data) argument
686 add_process(struct process *proc, int was_exec) argument
713 change_process_leader(struct process *proc, struct process *leader) argument
730 clear_leader(struct process *proc, void *data) argument
739 remove_process(struct process *proc) argument
753 install_event_handler(struct process *proc, struct event_handler *handler) argument
761 destroy_event_handler(struct process *proc) argument
773 breakpoint_for_symbol(struct library_symbol *libsym, struct process *proc) argument
849 proc_activate_latent_symbol(struct process *proc, struct library_symbol *libsym) argument
859 proc_activate_delayed_symbol(struct process *proc, struct library_symbol *libsym) argument
869 activate_latent_in(struct process *proc, struct library *lib, void *data) argument
886 proc_add_library(struct process *proc, struct library *lib) argument
968 proc_remove_library(struct process *proc, struct library *lib) argument
980 proc_each_library(struct process *proc, struct library *it, enum callback_status (*cb)(struct process *proc, struct library *lib, void *data), void *data) argument
1009 check_leader(struct process *proc) argument
1019 proc_add_breakpoint(struct process *proc, struct breakpoint *bp) argument
1041 proc_remove_breakpoint(struct process *proc, struct breakpoint *bp) argument
1053 struct process *proc; member in struct:each_breakpoint_data
1068 proc_each_breakpoint(struct process *proc, arch_addr_t *start, enum callback_status (*cb)(struct process *proc, struct breakpoint *bp, void *data), void *data) argument
1084 proc_find_symbol(struct process *proc, struct library_symbol *sym, struct library **retlib, struct library_symbol **retsym) argument
1110 proc_each_symbol(struct process *proc, struct library_symbol *start_after, enum callback_status (*cb)(struct library_symbol *, void *), void *data) argument
[all...]
H A Dhandle_event.c42 #include "proc.h"
59 static void callstack_push_syscall(struct process *proc, int sysnum);
60 static void callstack_push_symfunc(struct process *proc, struct breakpoint *bp);
62 * proc.c, and push/pop should be visible outside this module. For
63 * now, because we need this in proc.c, this is non-static. */
64 void callstack_pop(struct process *proc);
66 static char *shortsignal(struct process *proc, int signum);
67 static char *sysname(struct process *proc, int sysnum);
68 static char *arch_sysname(struct process *proc, int sysnum);
71 call_handler(struct process *proc, Even argument
273 struct process *proc = malloc(sizeof(*proc)); local
322 struct process *proc = pid2proc(event->e_un.newpid); local
337 shortsignal(struct process *proc, int signum) argument
361 sysname(struct process *proc, int sysnum) argument
388 arch_sysname(struct process *proc, int sysnum) argument
466 account_current_callstack(struct process *proc) argument
525 output_syscall(struct process *proc, const char *name, enum tof tof, bool left, struct timedelta *spent) argument
547 output_syscall_left(struct process *proc, const char *name) argument
553 output_syscall_right(struct process *proc, const char *name, struct timedelta *spent) argument
576 struct process *proc = event->proc; local
653 output_right_tos(struct process *proc) argument
671 arch_symbol_ret(struct process *proc, struct library_symbol *libsym) argument
770 callstack_push_syscall(struct process *proc, int sysnum) argument
796 callstack_push_symfunc(struct process *proc, struct breakpoint *bp) argument
834 callstack_pop(struct process *proc) argument
[all...]
H A Dbreakpoints.c41 #include "proc.h"
45 arch_translate_address_dyn(struct process *proc, argument
63 breakpoint_on_hit(struct breakpoint *bp, struct process *proc) argument
67 (bp->cbs->on_hit)(bp, proc);
71 breakpoint_on_continue(struct breakpoint *bp, struct process *proc) argument
75 (bp->cbs->on_continue)(bp, proc);
77 continue_after_breakpoint(proc, bp);
81 breakpoint_on_retract(struct breakpoint *bp, struct process *proc) argument
85 (bp->cbs->on_retract)(bp, proc);
89 breakpoint_on_install(struct breakpoint *bp, struct process *proc) argument
97 breakpoint_get_return_bp(struct breakpoint **ret, struct breakpoint *bp, struct process *proc) argument
113 address2bpstruct(struct process *proc, arch_addr_t addr) argument
128 os_breakpoint_init(struct process *proc, struct breakpoint *sbp) argument
147 arch_breakpoint_init(struct process *proc, struct breakpoint *sbp) argument
180 breakpoint_init(struct breakpoint *bp, struct process *proc, arch_addr_t addr, struct library_symbol *libsym) argument
234 breakpoint_turn_on(struct breakpoint *bp, struct process *proc) argument
246 breakpoint_turn_off(struct breakpoint *bp, struct process *proc) argument
256 create_default_return_bp(struct process *proc) argument
269 insert_breakpoint_at(struct process *proc, arch_addr_t addr, struct library_symbol *libsym) argument
301 insert_breakpoint(struct process *proc, struct breakpoint *bp) argument
333 delete_breakpoint_at(struct process *proc, arch_addr_t addr) argument
352 delete_breakpoint(struct process *proc, struct breakpoint *bp) argument
386 struct process *proc = data; local
394 disable_all_breakpoints(struct process *proc) argument
403 entry_breakpoint_on_hit(struct breakpoint *bp, struct process *proc) argument
412 entry_breakpoint_init(struct process *proc, struct breakpoint *bp, arch_addr_t addr, struct library *lib) argument
429 breakpoints_init(struct process *proc) argument
[all...]
H A Dfetch.c30 struct fetch_context *arch_fetch_arg_init(enum tof type, struct process *proc,
33 struct fetch_context *arch_fetch_arg_clone(struct process *proc,
37 struct process *proc, struct arg_type_info *info,
41 struct process *proc, struct arg_type_info *info,
56 long gimme_arg(enum tof type, struct process *proc, int arg_num,
64 arch_fetch_arg_init(enum tof type, struct process *proc, argument
71 arch_fetch_arg_clone(struct process *proc, struct fetch_context *context) argument
81 struct process *proc,
84 long l = gimme_arg(type, proc, context->argnum++, info);
91 struct process *proc,
80 arch_fetch_arg_next(struct fetch_context *context, enum tof type, struct process *proc, struct arg_type_info *info, struct value *valuep) argument
90 arch_fetch_retval(struct fetch_context *context, enum tof type, struct process *proc, struct arg_type_info *info, struct value *valuep) argument
121 fetch_arg_init(enum tof type, struct process *proc, struct arg_type_info *ret_info) argument
128 fetch_arg_clone(struct process *proc, struct fetch_context *context) argument
134 fetch_arg_next(struct fetch_context *context, enum tof type, struct process *proc, struct arg_type_info *info, struct value *valuep) argument
142 fetch_retval(struct fetch_context *context, enum tof type, struct process *proc, struct arg_type_info *info, struct value *valuep) argument
[all...]
/external/compiler-rt/test/builtins/Unit/
H A Dtrampoline_setup_test.c31 nested_func_t proc; variable
43 proc = bar;
47 if ( (*proc)(3) != 43 )
50 if ( (*proc)(4) != 40 )
/external/ltrace/sysdeps/linux-gnu/aarch64/
H A Dregs.c29 #include "proc.h"
34 aarch64_read_gregs(struct process *proc, struct user_pt_regs *regs) argument
40 return ptrace(PTRACE_GETREGSET, proc->pid, NT_PRSTATUS, &iovec) < 0
45 aarch64_write_gregs(struct process *proc, struct user_pt_regs *regs) argument
50 return ptrace(PTRACE_SETREGSET, proc->pid, NT_PRSTATUS, &iovec) < 0
55 aarch64_read_fregs(struct process *proc, struct user_fpsimd_state *regs) argument
61 return ptrace(PTRACE_GETREGSET, proc->pid, NT_FPREGSET, &iovec) < 0
66 get_instruction_pointer(struct process *proc) argument
69 if (aarch64_read_gregs(proc, &regs) < 0) {
71 "Couldn't read registers of %d.\n", proc
86 set_instruction_pointer(struct process *proc, arch_addr_t addr) argument
106 get_stack_pointer(struct process *proc) argument
120 get_return_addr(struct process *proc, arch_addr_t stack_pointer) argument
[all...]
H A Dtrace.c30 #include "proc.h"
33 get_arch_dep(struct process *proc) argument
37 int aarch64_read_gregs(struct process *proc, struct user_pt_regs *regs);
46 syscall_p(struct process *proc, int status, int *sysnum) argument
49 && WSTOPSIG(status) == (SIGTRAP | proc->tracesysgood)) {
52 if (aarch64_read_gregs(proc, &regs) < 0) {
54 "Couldn't read registers of %d.\n", proc->pid);
60 proc->pid,
64 "Couldn't peek into %d: %s\n", proc->pid,
73 size_t d1 = proc
[all...]
/external/ltrace/sysdeps/linux-gnu/sparc/
H A Dtrace.c30 #include "proc.h"
34 get_arch_dep(struct process *proc) argument
37 if (!proc->arch_ptr)
38 proc->arch_ptr = (void *)malloc(sizeof(proc_archdep));
39 a = (proc_archdep *) (proc->arch_ptr);
40 a->valid = (ptrace(PTRACE_GETREGS, proc->pid, &a->regs, 0) >= 0);
47 syscall_p(struct process *proc, int status, int *sysnum) argument
50 && WSTOPSIG(status) == (SIGTRAP | proc->tracesysgood)) {
51 void *ip = get_instruction_pointer(proc);
55 insn = ptrace(PTRACE_PEEKTEXT, proc
71 gimme_arg(enum tof type, struct process *proc, int arg_num, struct arg_type_info *info) argument
[all...]
H A Dregs.c27 #include "proc.h"
31 get_instruction_pointer(struct process *proc) argument
33 proc_archdep *a = (proc_archdep *) (proc->arch_ptr);
40 set_instruction_pointer(struct process *proc, void *addr) argument
42 proc_archdep *a = (proc_archdep *) (proc->arch_ptr);
48 get_stack_pointer(struct process *proc) argument
50 proc_archdep *a = (proc_archdep *) (proc->arch_ptr);
57 get_return_addr(struct process *proc, void *stack_pointer) argument
59 proc_archdep *a = (proc_archdep *) (proc->arch_ptr);
64 t = ptrace(PTRACE_PEEKTEXT, proc
[all...]
/external/ltrace/sysdeps/linux-gnu/ppc/
H A Dregs.c32 #include "proc.h"
44 get_instruction_pointer(struct process *proc) argument
46 return (void *)ptrace(PTRACE_PEEKUSER, proc->pid, sizeof(long)*PT_NIP, 0);
50 set_instruction_pointer(struct process *proc, void *addr) argument
52 if (ptrace(PTRACE_POKEUSER, proc->pid, sizeof(long)*PT_NIP, addr) != 0)
57 get_stack_pointer(struct process *proc) argument
59 return (void *)ptrace(PTRACE_PEEKUSER, proc->pid, sizeof(long)*PT_R1, 0);
63 get_return_addr(struct process *proc, void *stack_pointer) argument
65 return (void *)ptrace(PTRACE_PEEKUSER, proc->pid, sizeof(long)*PT_LNK, 0);
H A Dtrace.c39 #include "proc.h"
52 get_arch_dep(struct process *proc) argument
55 proc->mask_32bit = (proc->e_machine == EM_PPC);
63 syscall_p(struct process *proc, int status, int *sysnum) argument
66 && WSTOPSIG(status) == (SIGTRAP | proc->tracesysgood)) {
67 long pc = (long)get_instruction_pointer(proc);
69 (int)ptrace(PTRACE_PEEKTEXT, proc->pid, pc - sizeof(long),
74 (int)ptrace(PTRACE_PEEKUSER, proc->pid,
76 if (proc
90 arch_sw_singlestep(struct process *proc, struct breakpoint *sbp, int (*add_cb)(arch_addr_t, struct sw_singlestep_data *), struct sw_singlestep_data *add_cb_data) argument
174 arch_type_sizeof(struct process *proc, struct arg_type_info *info) argument
217 arch_type_alignof(struct process *proc, struct arg_type_info *info) argument
[all...]
/external/ltrace/sysdeps/linux-gnu/x86/
H A Dtrace.c33 #include "proc.h"
58 get_arch_dep(struct process *proc) argument
63 if (proc->e_machine == EM_X86_64) {
64 proc->mask_32bit = 0;
65 proc->personality = 1;
67 proc->mask_32bit = 1;
68 proc->personality = 0;
70 proc->mask_32bit = 0;
71 proc->personality = 0;
78 syscall_p(struct process *proc, in argument
112 arch_type_sizeof(struct process *proc, struct arg_type_info *info) argument
154 arch_type_alignof(struct process *proc, struct arg_type_info *info) argument
[all...]
/external/ltrace/sysdeps/linux-gnu/s390/
H A Dtrace.c34 #include "proc.h"
46 get_arch_dep(struct process *proc) argument
51 if (proc->arch_ptr)
54 psw = ptrace(PTRACE_PEEKUSER, proc->pid, PT_PSWMASK, 0);
57 proc->mask_32bit = 1;
58 proc->personality = 1;
61 proc->arch_ptr = (void *)1;
68 syscall_p(struct process *proc, int status, int *sysnum) argument
79 && WSTOPSIG(status) == (SIGTRAP | proc->tracesysgood)) {
87 *sysnum = ptrace(PTRACE_PEEKUSER, proc
180 arch_type_sizeof(struct process *proc, struct arg_type_info *info) argument
222 arch_type_alignof(struct process *proc, struct arg_type_info *info) argument
[all...]
H A Dregs.c31 #include "proc.h"
50 get_instruction_pointer(struct process *proc) argument
52 long ret = ptrace(PTRACE_PEEKUSER, proc->pid, PT_PSWADDR, 0) & PSW_MASK;
54 if (proc->mask_32bit)
62 set_instruction_pointer(struct process *proc, arch_addr_t addr) argument
65 if (proc->mask_32bit)
72 ptrace(PTRACE_POKEUSER, proc->pid, PT_PSWADDR, addr);
76 get_stack_pointer(struct process *proc) argument
78 long ret = ptrace(PTRACE_PEEKUSER, proc->pid, PT_GPR15, 0) & PSW_MASK;
80 if (proc
88 get_return_addr(struct process *proc, arch_addr_t stack_pointer) argument
[all...]
/external/ltrace/sysdeps/linux-gnu/ia64/
H A Dregs.c33 #include "proc.h"
37 get_instruction_pointer(struct process *proc) argument
39 unsigned long ip = ptrace(PTRACE_PEEKUSER, proc->pid, PT_CR_IIP, 0);
41 (ptrace(PTRACE_PEEKUSER, proc->pid, PT_CR_IPSR, 0) >> 41) & 3;
47 set_instruction_pointer(struct process *proc, void *addr) argument
52 unsigned long psr = ptrace(PTRACE_PEEKUSER, proc->pid, PT_CR_IPSR, 0);
59 ptrace(PTRACE_POKEUSER, proc->pid, PT_CR_IIP, (long)newip);
60 ptrace(PTRACE_POKEUSER, proc->pid, PT_CR_IPSR, psr);
64 get_stack_pointer(struct process *proc) argument
66 long l = ptrace(PTRACE_PEEKUSER, proc
73 get_return_addr(struct process *proc, void *stack_pointer) argument
[all...]
/external/oprofile/daemon/liblegacy/
H A Dopd_proc.c70 struct opd_proc * proc; local
73 proc = xmalloc(sizeof(struct opd_proc));
74 list_init(&proc->maps);
75 proc->name = NULL;
76 proc->tid = tid;
77 proc->tgid = tgid;
78 proc->dead = 0;
79 proc->accessed = 0;
80 list_add(&proc->next, &opd_procs[proc_hash(tid)]);
81 return proc;
87 struct opd_proc * proc; local
164 opd_lookup_maps(struct opd_proc * proc, struct op_sample const * sample) argument
192 struct opd_proc * proc; local
241 struct opd_proc * proc; local
288 struct opd_proc * proc; local
319 struct opd_proc * proc; local
349 struct opd_proc * proc = local
364 opd_delete_proc(struct opd_proc * proc) argument
388 opd_age_proc(struct opd_proc * proc) argument
414 opd_remove_kernel_mapping(struct opd_proc * proc) argument
[all...]

Completed in 289 milliseconds

1234567891011>>