Searched refs:pid (Results 201 - 225 of 1514) sorted by last modified time

1234567891011>>

/linux-master/tools/perf/util/
H A Dthreads.c109 struct thread *threads__findnew(struct threads *threads, pid_t pid, pid_t tid, bool *created) argument
116 res = thread__new(pid, tid);
H A Dthreads.h28 struct thread *threads__findnew(struct threads *threads, pid_t pid, pid_t tid, bool *created);
H A Dthread.c24 pid_t pid = thread__pid(thread); local
26 if (pid == thread__tid(thread) || pid == -1) {
29 struct thread *leader = machine__findnew_thread(machine, pid, pid);
40 struct thread *thread__new(pid_t pid, pid_t tid) argument
48 thread__set_pid(thread, pid);
72 RC_CHK_ACCESS(thread)->nsinfo = nsinfo__new(pid);
H A Dthread.h72 struct thread *thread__new(pid_t pid, pid_t tid);
H A Dthread_map.c34 struct perf_thread_map *thread_map__new_by_pid(pid_t pid) argument
42 sprintf(name, "/proc/%d/task", pid);
96 pid_t pid = strtol(dirent->d_name, &end, 10); local
110 snprintf(path, sizeof(path), "/proc/%d/task", pid);
113 pr_debug("scandir for %d returned empty, skipping\n", pid);
170 struct perf_thread_map *thread_map__new(pid_t pid, pid_t tid, uid_t uid) argument
172 if (pid != -1)
173 return thread_map__new_by_pid(pid);
188 pid_t pid, prev_pid = INT_MAX; local
198 pid
292 thread_map__new_str(const char *pid, const char *tid, uid_t uid, bool all_threads) argument
318 get_comm(char **comm, pid_t pid) argument
344 pid_t pid = perf_thread_map__pid(map, i); local
397 thread_map__has(struct perf_thread_map *threads, pid_t pid) argument
[all...]
H A Dstat-display.c55 [AGGR_THREAD] = "comm-pid,",
66 [AGGR_THREAD] = "comm-pid",
1284 COMM_LEN, "comm", PID_LEN, "pid");
1322 } else if (_target->pid)
1323 fprintf(output, "process id \'%s", _target->pid);
H A Dsrcline.c398 if (a2l->pid != -1) {
399 kill(a2l->pid, SIGKILL);
401 a2l->pid = -1;
425 a2l->pid = -1;
H A Dsession.c585 event->comm.pid = bswap_32(event->comm.pid);
599 event->mmap.pid = bswap_32(event->mmap.pid);
616 event->mmap2.pid = bswap_32(event->mmap2.pid);
638 event->fork.pid = bswap_32(event->fork.pid);
650 event->read.pid = bswap_32(event->read.pid);
1449 u32 pid; local
1901 perf_session__findnew(struct perf_session *session, pid_t pid) argument
2823 perf_session__set_guest_cpu(struct perf_session *session, pid_t pid, pid_t tid, int guest_cpu) argument
[all...]
H A Dsession.h112 struct machine *perf_session__find_machine(struct perf_session *session, pid_t pid) argument
114 return machines__find(&session->machines, pid);
118 struct machine *perf_session__findnew_machine(struct perf_session *session, pid_t pid) argument
120 return machines__findnew(&session->machines, pid);
123 struct thread *perf_session__findnew(struct perf_session *session, pid_t pid);
H A Dpython.c233 sample_member_def(sample_pid, pid, T_INT, "event pid"), \
248 member_def(perf_record_mmap, pid, T_UINT, "event pid"),
262 if (asprintf(&s, "{ type: mmap, pid: %u, tid: %u, start: %#" PRI_lx64 ", "
265 pevent->event.mmap.pid, pevent->event.mmap.tid,
291 member_def(perf_record_fork, pid, T_UINT, "event pid"),
301 return _PyUnicode_FromFormat("{ type: %s, pid: %u, ppid: %u, tid: %u, "
304 pevent->event.fork.pid,
751 int pid = -1, tid = -1, uid = UINT_MAX; local
1507 test_attr__open(struct perf_event_attr *attr, pid_t pid, struct perf_cpu cpu, int fd, int group_fd, unsigned long flags) argument
[all...]
H A Dmachine.h24 /* Native host kernel uses -1 as pid index in machine */
34 pid_t pid; member in struct:machine
99 struct thread *machine__find_thread(struct machine *machine, pid_t pid,
155 struct machine *machines__add(struct machines *machines, pid_t pid,
157 struct machine *machines__find(struct machines *machines, pid_t pid);
158 struct machine *machines__findnew(struct machines *machines, pid_t pid);
159 struct machine *machines__find_guest(struct machines *machines, pid_t pid);
160 struct thread *machines__findnew_guest_code(struct machines *machines, pid_t pid);
161 struct thread *machine__findnew_guest_code(struct machine *machine, pid_t pid);
168 int machine__init(struct machine *machine, const char *root_dir, pid_t pid);
[all...]
H A Dmachine.c65 machine->pid) < 0)
71 static void thread__set_guest_comm(struct thread *thread, pid_t pid) argument
75 snprintf(comm, sizeof(comm), "[guest/%d]", pid);
79 int machine__init(struct machine *machine, const char *root_dir, pid_t pid) argument
96 machine->pid = pid;
111 if (pid != HOST_KERNEL_ID) {
113 pid);
118 thread__set_guest_comm(thread, pid);
232 struct machine *machines__add(struct machines *machines, pid_t pid, argument
280 machines__find(struct machines *machines, pid_t pid) argument
306 machines__findnew(struct machines *machines, pid_t pid) argument
340 machines__find_guest(struct machines *machines, pid_t pid) argument
374 findnew_guest_code(struct machine *machine, struct machine *host_machine, pid_t pid) argument
415 machines__findnew_guest_code(struct machines *machines, pid_t pid) argument
423 machine__findnew_guest_code(struct machine *machine, pid_t pid) argument
463 machine__update_thread_pid(struct machine *machine, struct thread *th, pid_t pid) argument
514 __machine__findnew_thread(struct machine *machine, pid_t pid, pid_t tid, bool create) argument
551 machine__findnew_thread(struct machine *machine, pid_t pid, pid_t tid) argument
556 machine__find_thread(struct machine *machine, pid_t pid, pid_t tid) argument
1241 pid_t pid; local
1299 machines__create_kernel_maps(struct machines *machines, pid_t pid) argument
3103 machine__set_current_tid(struct machine *machine, int cpu, pid_t pid, pid_t tid) argument
[all...]
H A Devsel.c1120 * 3) For traced programs attached by perf (pid/tid):
1727 /* The -ESRCH is perf event syscall errno for pid's not found. */
1745 pr_warning("WARNING: Ignored open failure for pid %d\n",
2005 int pid = -1, err, old_errno; local
2021 pid = evsel->cgrp->fd;
2038 pid = perf_thread_map__pid(threads, thread);
2051 pr_debug2_peo("sys_perf_event_open: pid %d cpu %d group_fd %d flags %#lx",
2052 pid, perf_cpu_map__cpu(cpus, idx).cpu, group_fd, evsel->open_flags);
2054 fd = sys_perf_event_open(&evsel->core.attr, pid,
2071 test_attr__open(&evsel->core.attr, pid,
[all...]
H A Devent.c183 return fprintf(fp, "%s: %s:%d/%d\n", s, event->comm.comm, event->comm.pid, event->comm.tid);
196 event->namespaces.pid,
318 event->mmap.pid, event->mmap.tid, event->mmap.start,
336 event->mmap2.pid, event->mmap2.tid, event->mmap2.start,
346 event->mmap2.pid, event->mmap2.tid, event->mmap2.start,
409 event->fork.pid, event->fork.tid,
441 return fprintf(fp, " pid: %u tid: %u\n",
442 event->itrace_start.pid, event->itrace_start.tid);
461 return fprintf(fp, " %s %s pid/tid: %5d/%-5d\n",
718 thread = machine__findnew_guest_code(machine, sample->pid);
[all...]
H A Dbpf_lock_contention.c112 u32 pid; local
119 pid = perf_thread_map__pid(evlist->core.threads, i);
120 bpf_map_update_elem(fd, &pid, &val, BPF_ANY);
124 if (target__none(target) && evlist->workload.pid > 0) {
125 u32 pid = evlist->workload.pid; local
130 bpf_map_update_elem(fd, &pid, &val, BPF_ANY);
196 static void update_lock_stat(int map_fd, int pid, u64 end_ts, argument
214 stat_key.pid = pid;
260 int pid = key; local
326 int pid = key->pid; local
[all...]
/linux-master/tools/perf/util/scripting-engines/
H A Dtrace-event-python.c865 pydict_set_item_string_decref(dict_sample, "pid",
866 _PyLong_FromLong(sample->pid));
952 int pid; local
968 pid = raw_field_value(event, "common_pid", data);
1007 PyTuple_SetItem(t, n++, _PyLong_FromLong(pid));
1014 pydict_set_item_string_decref(dict, "common_pid", _PyLong_FromLong(pid));
1171 tuple_set_s32(t, 1, machine->pid);
1549 tuple_set_s32(t, 4, sample->pid);
1582 tuple_set_s32(t, 2, sample->pid);
1586 tuple_set_s32(t, 6, machine->pid);
[all...]
/linux-master/tools/perf/util/bpf_skel/vmlinux/
H A Dvmlinux.h102 pid_t pid; member in struct:task_struct
113 int pid; member in struct:trace_entry
164 u32 pid; member in struct:perf_sample_data::__anon1592
/linux-master/tools/perf/util/bpf_skel/
H A Dlock_data.h15 u32 pid; member in struct:contention_key
H A Daugmented_raw_syscalls.bpf.c349 static bool pid_filter__has(struct pids_filtered *pids, pid_t pid) argument
351 return bpf_map_lookup_elem(pids, &pid) != NULL;
/linux-master/tools/perf/tests/
H A Dbuiltin-test.c234 pr_debug("test child forked, pid %d\n", getpid());
391 (*child)->process.pid = -1;
/linux-master/tools/perf/
H A Dbuiltin-trace.c909 #include "trace/beauty/pid.c"
1470 size_t pid__scnprintf_fd(struct trace *trace, pid_t pid, int fd, char *bf, size_t size) argument
1473 struct thread *thread = machine__find_thread(trace->host, pid, pid);
2289 sample->pid, sample->tid, sample->cpu);
2346 thread = machine__findnew_thread(trace->host, sample->pid, sample->tid);
2422 thread = machine__findnew_thread(trace->host, sample->pid, sample->tid);
2494 thread = machine__findnew_thread(trace->host, sample->pid, sample->tid);
2618 struct thread *thread = machine__findnew_thread(trace->host, sample->pid, sample->tid);
2682 sample->pid,
3050 pid_t pid = getpid(); local
[all...]
H A Dbuiltin-top.c758 if (!intlist__has_entry(seen, sample->pid)) {
760 sample->pid);
761 intlist__add(seen, sample->pid);
1184 sample.pid);
1466 OPT_STRING('p', "pid", &target->pid, "pid",
1511 "sort by key(s): pid, comm, dso, symbol, parent, cpu, srcline, ..."
H A Dbuiltin-stat.c538 threads->map[i].pid);
711 child_pid = evsel_list->workload.pid;
1173 OPT_STRING('p', "pid", &target.pid, "pid",
2868 evlist__first(evsel_list)->ignore_missing_thread = target.pid;
H A Dbuiltin-script.c172 {.str = "pid", .field = PERF_OUTPUT_PID},
807 printed += fprintf(fp, "%7d/%-7d ", sample->pid, sample->tid);
809 printed += fprintf(fp, "%7d ", sample->pid);
2521 pid_t pid, pid_t tid, u64 timestamp)
2531 sample->pid = pid;
2539 thread = machine__findnew_thread(machine, pid, tid);
2555 pid_t pid, pid_t tid)
2557 return print_event_with_time(tool, event, sample, machine, pid, tid, 0);
2568 return print_event(tool, event, sample, machine, event->comm.pid,
2517 print_event_with_time(struct perf_tool *tool, union perf_event *event, struct perf_sample *sample, struct machine *machine, pid_t pid, pid_t tid, u64 timestamp) argument
2553 print_event(struct perf_tool *tool, union perf_event *event, struct perf_sample *sample, struct machine *machine, pid_t pid, pid_t tid) argument
4109 pid_t pid; local
[all...]
H A Dbuiltin-sched.c62 unsigned long pid; member in struct:task_desc
431 unsigned long pid, const char *comm)
441 if (pid >= (unsigned long)pid_max) {
442 BUG_ON((sched->pid_to_task = realloc(sched->pid_to_task, (pid + 1) *
444 while (pid >= (unsigned long)pid_max)
448 task = sched->pid_to_task[pid];
454 task->pid = pid;
463 sched->pid_to_task[pid] = task;
470 printf("registered task #%ld, PID %ld (%s)\n", sched->nr_tasks, pid, com
430 register_pid(struct perf_sched *sched, unsigned long pid, const char *comm) argument
820 const u32 pid = evsel__intval(evsel, sample, "pid"); local
1178 const u32 pid = evsel__intval(evsel, sample, "pid"); local
1213 const u32 pid = evsel__intval(evsel, sample, "pid"); local
1274 const u32 pid = evsel__intval(evsel, sample, "pid"); local
1524 map__findnew_thread(struct perf_sched *sched, struct machine *machine, pid_t pid, pid_t tid) argument
1934 pid_t pid = thread__pid(thread); local
2441 const u32 pid = evsel__intval(evsel, sample, "pid"); local
2525 const u32 pid = evsel__intval(evsel, sample, "pid"); local
[all...]

Completed in 309 milliseconds

1234567891011>>