Searched defs:tgid (Results 1 - 25 of 27) sorted by relevance

12

/external/oprofile/daemon/liblegacy/
H A Dopd_proc.h33 /** thread id for this process, always equal to tgid for 2.2 kernel */
36 pid_t tgid; member in struct:opd_proc
87 * @param tgid tgid for this process
91 void opd_handle_exec(pid_t tid, pid_t tgid);
108 * @param tgid tgid for this process
114 struct opd_proc * opd_get_proc(pid_t tid, pid_t tgid);
119 * @param tgid tgid fo
[all...]
H A Dopd_image.h39 /** thread id, on 2.2 kernel always == to tgid */
42 pid_t tgid; member in struct:opd_image
81 * @param tgid thread group id
88 char const * app_name, pid_t tid, pid_t tgid);
96 * @param tgid thread group id
104 int kernel, pid_t tid, pid_t tgid);
H A Dopd_image.c52 "tid %d, tgid %d ref count %u\n",
54 image->tid, image->tgid, (int)image->ref_count);
58 "kernel %d, tid %d, tgid %d ref count %u\n",
60 image->tid, image->tgid, image->ref_count);
99 * @param tgid thread group id
103 static size_t opd_hash_image(char const * name, pid_t tid, pid_t tgid) argument
107 hash += tid + tgid;
118 * @param tgid thread group id
130 pid_t tid, pid_t tgid)
136 "tgid
129 opd_new_image(char const * name, char const * app_name, int kernel, pid_t tid, pid_t tgid) argument
177 is_same_image(struct opd_image const * image, char const * app_name, pid_t tid, pid_t tgid) argument
221 opd_find_image(char const * name, char const * app_name, pid_t tid, pid_t tgid) argument
249 opd_get_image(char const * name, char const * app_name, int kernel, pid_t tid, pid_t tgid) argument
260 opd_get_kernel_image(char const * name, char const * app_name, pid_t tid, pid_t tgid) argument
[all...]
H A Dopd_parse_proc.c75 image = opd_get_image(cp, image_name, 0, proc->tid, proc->tgid);
117 verbprintf(vmisc, "image name %s for pid %u %u\n", image_name, proc->tid, proc->tgid);
153 image_name, 0, proc->tid, proc->tgid);
170 u32 tgid; local
185 if (sscanf(line, "Tgid: %u", &tgid) == 1) {
188 return tgid;
213 u32 tgid = read_tgid(pid); local
214 verbprintf(vmisc, "ASCII added %u %u\n", pid, tgid);
215 proc = opd_get_proc(pid, tgid);
217 proc = opd_new_proc(pid, tgid);
[all...]
H A Dopd_proc.c63 /* FIXME: hash tgid too! */
68 struct opd_proc * opd_new_proc(pid_t tid, pid_t tgid) argument
77 proc->tgid = tgid;
85 struct opd_proc * opd_get_proc(pid_t tid, pid_t tgid) argument
95 if (tid == proc->tid && tgid == proc->tgid) {
197 verbprintf(vsamples, "DO_PUT_SAMPLE: c%d, EIP 0x%.8lx, tgid %.6d pid %.6d\n",
198 sample->counter, sample->eip, sample->tgid, sample->pid);
205 if (!(proc = opd_get_proc(sample->pid, sample->tgid))) {
286 opd_handle_exec(pid_t tid, pid_t tgid) argument
[all...]
/external/oprofile/daemon/
H A Dopd_anon.h36 /** tgid of the app */
37 pid_t tgid; member in struct:anon_mapping
48 * Try to find an anonymous mapping for the given pc/tgid pair.
H A Dopd_sfile.h47 pid_t tgid; member in struct:sfile
H A Dopd_spu.c24 pid_t tgid; member in struct:spu_context_info
69 trans->tgid = pop_buffer_value(trans);
74 printf("SPU_CTX_SWITCH to tid %lu, tgid %lu, cookie %llx(%s)\n",
75 (unsigned long)trans->tid, (unsigned long)trans->tgid,
95 spu_context_cache[i].tgid = trans->tgid;
105 trans->tgid = spu_context_cache[i].tgid;
H A Dopd_anon.c5 * Our caching of maps has some problems: if we get tgid reuse,
36 * anon cache, we'll tear down all the mappings for that tgid. Thus, LRU
71 static unsigned long hash_anon(pid_t tgid, cookie_t app) argument
73 return ((app >> DCOOKIE_SHIFT) ^ (tgid >> 2)) & (HASH_SIZE - 1);
79 unsigned long hash = hash_anon(trans->tgid, trans->app_cookie);
80 pid_t tgid = trans->tgid; local
90 if (entry->tgid == tgid && entry->app_cookie == app) {
103 printf("Cleared anon maps for tgid
[all...]
H A Dopd_trans.h55 pid_t tgid; member in struct:transient
H A Dopd_sfile.c48 val ^= trans->tgid << 2;
70 val ^= trans->tgid << 2;
84 pid_t tgid, pid_t tid, unsigned int cpu)
94 if (sf->tid != tid || sf->tgid != tgid)
126 trans->anon, trans->tgid, trans->tid, trans->cpu);
134 sf2->anon, sf2->tgid, sf2->tid, sf2->cpu);
179 sf->tgid = (pid_t)-1;
198 sf->tgid = trans->tgid;
82 do_match(struct sfile const * sf, cookie_t cookie, cookie_t app_cookie, struct kernel_image const * ki, struct anon_mapping const * anon, pid_t tgid, pid_t tid, unsigned int cpu) argument
[all...]
/external/oprofile/libpp/
H A Dfilename_spec.h78 generic_spec<pid_t> tgid; member in class:filename_spec
H A Dparse_filename.h31 std::string tgid; member in struct:parsed_filename
H A Dprofile_spec.h133 comma_list<pid_t> tgid; member in class:profile_spec
H A Darrange_profiles.h30 bool tgid; member in struct:merge_option
43 std::string tgid; member in struct:profile_template
139 * It's only used when classifying by CPU, tgid etc. so the
204 * tgid:404, tgid:301, etc.
H A Dxml_utils.cpp971 string cur_tgid = classes.v[start].ptemplate.tgid;
974 i < nr_classes && classes.v[i].ptemplate.tgid == cur_tgid;
997 size_t tgid = 0; local
1004 size_t next_tgid = get_next_tgid_pclass(tgid);
1005 string const tgid_str = classes.v[tgid].ptemplate.tgid;
1007 process_info * p = processes_root.add_process(tgid_str, tgid, next_tgid-1);
1016 tgid = next_tgid;
1017 } while (tgid != nr_classes);
/external/oprofile/libop/
H A Dop_mangle.h46 pid_t tgid; member in struct:mangle_values
H A Dop_interface.h37 u32 tgid; /**< always equal to pid for kernel < 2.4.0 */ member in struct:op_sample
69 unsigned int tgid; member in struct:op_note
/external/qemu/hw/
H A Dgoldfish_trace.c57 static unsigned tgid; // thread group id (really process id) variable
86 case TRACE_DEV_REG_TGID: // save the tgid for the following fork/clone
87 DPID("QEMU.trace: tgid=%u\n", value);
88 tgid = value;
90 D("QEMU.trace: kernel, tgid %u\n", value);
94 DPID("QEMU.trace: fork (pid=%d tgid=%d value=%d)\n", pid, tgid, value);
96 trace_fork(tgid, value);
101 memcheck_fork(tgid, value);
106 DPID("QEMU.trace: clone (pid=%d tgid
[all...]
/external/oprofile/module/x86/
H A Dop_syscalls.c57 note.tgid = op_get_tgid();
214 note.tgid = old_tgid;
223 u32 tgid = op_get_tgid(); local
230 oprof_report_fork(pid, ret, tgid, ret);
238 u32 tgid = op_get_tgid(); local
244 oprof_report_fork(pid, ret, tgid, ret);
252 u32 tgid = op_get_tgid(); local
263 oprof_report_fork(pid, ret, tgid, tgid);
266 oprof_report_fork(pid, ret, tgid, re
[all...]
/external/linux-tools-perf/util/
H A Devent.c65 pid_t tgid = 0; local
97 tgid = event->comm.pid = atoi(tgids);
141 return tgid;
145 pid_t pid, pid_t tgid,
213 event->mmap.pid = tgid;
287 pid_t tgid = perf_event__synthesize_comm(comm_event, pid, 1, process, local
289 if (tgid == -1)
291 return perf_event__synthesize_mmap_events(mmap_event, pid, tgid,
144 perf_event__synthesize_mmap_events(union perf_event *event, pid_t pid, pid_t tgid, perf_event__handler_t process, struct perf_session *session) argument
/external/oprofile/module/ia64/
H A Dop_syscalls.c97 note.tgid = op_get_tgid();
242 note.tgid = old_tgid;
252 u32 tgid = op_get_tgid(); local
261 oprof_report_fork(pid, ret, pid, tgid);
268 u32 tgid = op_get_tgid(); local
276 oprof_report_fork(pid, ret, tgid, tgid);
278 oprof_report_fork(pid, ret, tgid, ret);
311 note.tgid = op_get_tgid();
/external/qemu/memcheck/
H A Dmemcheck_proc_management.c466 memcheck_fork(uint32_t tgid, uint32_t new_pid) argument
471 /* tgid may match new_pid, in which case current process is the
472 * one that's being forked, otherwise tgid identifies process
474 if (new_pid == tgid) {
477 parent_proc = get_process_from_tid(tgid);
482 tgid, new_pid, current_tid);
488 tgid, new_pid, parent_proc->image_path, parent_proc->pid,
501 T(PROC_FORK, "memcheck: FORK(tgid=%u, new_pid=%u) by %s[pid=%u] (tid=%u)\n",
502 tgid, new_pid, parent_proc->image_path, parent_proc->pid, current_tid);
506 memcheck_clone(uint32_t tgid, uint32_ argument
[all...]
/external/oprofile/module/
H A Doprofile.c109 fill_op_entry(struct op_sample * ops, long eip, pid_t pid, pid_t tgid, int ctr) argument
113 ops->tgid = tgid;
121 pid_t const tgid = op_get_tgid(); local
126 fill_op_entry(samples, eip, pid, tgid, ctr);
/external/qemu/
H A Dtrace.c1535 void trace_pid_2arg(int tgid, int pid, int rec_type) argument
1550 comp_ptr = varint_encode(tgid, comp_ptr);
1565 void trace_fork(int tgid, int pid) argument
1571 trace_pid_2arg(tgid, pid, kPidFork);
1574 void trace_clone(int tgid, int pid) argument
1580 trace_pid_2arg(tgid, pid, kPidClone);
1786 void trace_init_name(int tgid, int pid, const char *name) argument
1807 comp_ptr = varint_encode(tgid, comp_ptr);

Completed in 828 milliseconds

12