Home
last modified time | relevance | path

Searched refs:comm (Results 1 – 25 of 193) sorted by relevance

12345678

/tools/perf/util/
A Dcomm.h11 struct comm { struct
22 void comm__free(struct comm *comm); argument
23 struct comm *comm__new(const char *str, u64 timestamp, bool exec);
24 const char *comm__str(const struct comm *comm);
25 int comm__override(struct comm *comm, const char *str, u64 timestamp,
A Dcomm.c194 struct comm *comm = zalloc(sizeof(*comm)); in comm__new() local
196 if (!comm) in comm__new()
200 comm->exec = exec; in comm__new()
203 if (!comm->comm_str) { in comm__new()
204 free(comm); in comm__new()
208 return comm; in comm__new()
220 comm->comm_str = new; in comm__override()
223 comm->exec = true; in comm__override()
228 void comm__free(struct comm *comm) in comm__free() argument
231 free(comm); in comm__free()
[all …]
A Dthread.c50 struct comm *comm; in thread__new() local
67 if (!comm) in thread__new()
96 struct comm *comm, *tmp_comm; in thread__delete() local
115 comm__free(comm); in thread__delete()
225 struct comm *comm, *last = NULL, *second_last = NULL; in thread__exec_comm() local
231 return comm; in thread__exec_comm()
234 last = comm; in thread__exec_comm()
307 const struct comm *comm = __thread__comm(thread); in __thread__comm_str() local
309 if (!comm) in __thread__comm_str()
328 if (!comm) in __thread__comm_len()
[all …]
A Ddb-export.c82 static int __db_export__comm(struct db_export *dbe, struct comm *comm, in __db_export__comm() argument
93 int db_export__comm(struct db_export *dbe, struct comm *comm, in db_export__comm() argument
96 if (comm->db_id) in db_export__comm()
108 int db_export__exec_comm(struct db_export *dbe, struct comm *comm, in db_export__exec_comm() argument
113 if (comm->db_id) in db_export__exec_comm()
133 int db_export__comm_thread(struct db_export *dbe, struct comm *comm, in db_export__comm_thread() argument
299 struct comm *comm = NULL; in db_export__threads() local
316 if (comm) { in db_export__threads()
320 *comm_ptr = comm; in db_export__threads()
361 struct comm *comm = NULL; in db_export__sample() local
[all …]
A Ddb-export.h16 struct comm;
46 int (*export_comm)(struct db_export *dbe, struct comm *comm,
49 struct comm *comm, struct thread *thread);
86 int db_export__comm(struct db_export *dbe, struct comm *comm,
88 int db_export__exec_comm(struct db_export *dbe, struct comm *comm,
90 int db_export__comm_thread(struct db_export *dbe, struct comm *comm,
A Dthread-stack.h15 struct comm;
55 struct comm *comm; member
104 int thread_stack__process(struct thread *thread, struct comm *comm,
/tools/perf/tests/
A Dkeep-tracking.c33 static int find_comm(struct evlist *evlist, const char *comm) in find_comm() argument
46 (pid_t)event->comm.pid == getpid() && in find_comm()
47 (pid_t)event->comm.tid == getpid() && in find_comm()
48 strcmp(event->comm.comm, comm) == 0) in find_comm()
79 const char *comm; in test__keep_tracking() local
99 evsel->core.attr.comm = 1; in test__keep_tracking()
118 comm = "Test COMM 1"; in test__keep_tracking()
119 CHECK__(prctl(PR_SET_NAME, (unsigned long)comm, 0, 0, 0)); in test__keep_tracking()
123 found = find_comm(evlist, comm); in test__keep_tracking()
140 comm = "Test COMM 2"; in test__keep_tracking()
[all …]
A Dswitch-tracking.c75 union perf_event *event, const char *comm, int nr) in check_comm() argument
78 (pid_t)event->comm.pid == getpid() && in check_comm()
79 (pid_t)event->comm.tid == getpid() && in check_comm()
80 strcmp(event->comm.comm, comm) == 0) { in check_comm()
86 pr_debug3("comm event: %s nr: %d\n", event->comm.comm, nr); in check_comm()
351 const char *comm; in test__switch_tracking() local
456 if (evsel->core.attr.mmap || evsel->core.attr.comm) { in test__switch_tracking()
489 comm = "Test COMM 1"; in test__switch_tracking()
502 comm = "Test COMM 2"; in test__switch_tracking()
515 comm = "Test COMM 3"; in test__switch_tracking()
[all …]
A Dperf-time-to-tsc.c110 evsel->core.attr.comm = 1; in test__perf_time_to_tsc()
158 (pid_t)event->comm.pid != getpid() || in test__perf_time_to_tsc()
159 (pid_t)event->comm.tid != getpid()) in test__perf_time_to_tsc()
162 if (strcmp(event->comm.comm, comm1) == 0) { in test__perf_time_to_tsc()
167 if (strcmp(event->comm.comm, comm2) == 0) { in test__perf_time_to_tsc()
/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/
A DEventClass.py26 def create_event(name, comm, dso, symbol, raw_buf): argument
28 event = PebsEvent(name, comm, dso, symbol, raw_buf)
30 event = PebsNHM(name, comm, dso, symbol, raw_buf)
32 event = PerfEvent(name, comm, dso, symbol, raw_buf)
38 def __init__(self, name, comm, dso, symbol, raw_buf, ev_type=EVTYPE_GENERIC): argument
40 self.comm = comm
49 (self.name, self.symbol, self.comm, self.dso))
58 def __init__(self, name, comm, dso, symbol, raw_buf, ev_type=EVTYPE_PEBS): argument
72 PerfEvent.__init__(self, name, comm, dso, symbol, raw_buf, ev_type)
87 def __init__(self, name, comm, dso, symbol, raw_buf, ev_type=EVTYPE_PEBS_LL): argument
[all …]
/tools/perf/scripts/perl/
A Drw-by-pid.pl48 $reads{$common_pid}{comm} = $common_comm;
70 $writes{$common_pid}{comm} = $common_comm;
84 my $comm = $reads{$pid}{comm} || "";
89 printf("%6s %-20s %10s %10s %10s\n", $pid, $comm,
103 my $comm = $reads{$pid}{comm} || "";
105 push @errcounts, [$pid, $comm, $error, $errcount];
125 my $comm = $writes{$pid}{comm} || "";
129 printf("%6s %-20s %10s %10s\n", $pid, $comm,
143 my $comm = $writes{$pid}{comm} || "";
145 push @errcounts, [$pid, $comm, $error, $errcount];
A Dfailed-syscalls.pl41 foreach my $comm (sort {$failed_syscalls{$b} <=> $failed_syscalls{$a}}
43 next if ($for_comm && $comm ne $for_comm);
45 printf("%-20s %10s\n", $comm, $failed_syscalls{$comm});
A Drwtop.pl63 $reads{$common_pid}{comm} = $common_comm;
89 $writes{$common_pid}{comm} = $common_comm;
138 my $comm = $reads{$pid}{comm} || "";
143 printf("%6s %-20s %10s %10s %10s\n", $pid, $comm,
162 my $comm = $writes{$pid}{comm} || "";
166 printf("%6s %-20s %10s %13s\n", $pid, $comm,
/tools/perf/scripts/python/
A Dnetdev-times.py328 (name, context, cpu, time, pid, comm, vec) = event_info
342 (name, context, cpu, time, pid, comm, vec) = event_info
346 (name, context, cpu, time, pid, comm, vec) = event_info
364 (name, context, cpu, time, pid, comm, napi, dev_name,
374 (name, context, cpu, time, pid, comm,
392 (name, context, cpu, time, pid, comm,
407 (name, context, cpu, time, pid, comm,
418 (name, context, cpu, time, pid, comm,
433 (name, context, cpu, time, pid, comm,
451 'comm':comm, 'pid':pid, 'comm_t':time})
[all …]
A Dfailed-syscalls-by-pid.py70 for comm in comm_keys:
71 pid_keys = syscalls[comm].keys()
73 print("\n%s [%d]" % (comm, pid))
74 id_keys = syscalls[comm][pid].keys()
77 ret_keys = syscalls[comm][pid][id].keys()
78 …for ret, val in sorted(syscalls[comm][pid][id].items(), key = lambda kv: (kv[1], kv[0]), reverse =…
A Dintel-pt-events.py231 def common_start_str(comm, sample): argument
345 comm = param_dict["comm"]
375 print_common_start(comm, sample, name)
379 print_common_start(comm, sample, name)
383 print_common_start(comm, sample, name)
387 print_common_start(comm, sample, name)
391 print_common_start(comm, sample, name)
395 print_common_start(comm, sample, name)
399 print_common_start(comm, sample, name)
403 print_common_start(comm, sample, name)
[all …]
A Dsyscall-counts-by-pid.py68 for comm in comm_keys:
69 pid_keys = syscalls[comm].keys()
71 print("\n%s [%d]" % (comm, pid))
72 id_keys = syscalls[comm][pid].keys()
73 for id, val in sorted(syscalls[comm][pid].items(),
A Dstackcollapse.py112 comm = param_dict["comm"].replace(' ', '_')
115 comm = comm + sep + str(param_dict['sample']['pid'])
118 comm = comm + sep + str(param_dict['sample']['tid'])
119 stack.append(comm)
A Dgecko.py117 comm: str
177 def _add_sample(self, comm: str, stack: List[str], time_ms: Milliseconds) -> None:
186 if self.comm != comm:
187 self.comm = comm
206 "name": self.comm,
268 comm = param_dict['comm']
295 thread = Thread(comm=comm, pid=pid, tid=tid)
297 thread._add_sample(comm=comm, stack=stack, time_ms=time_stamp)
/tools/bpf/bpftool/
A Dpids.c50 e->id, e->pid, e->comm); in add_ref()
56 memcpy(ref->comm, e->comm, sizeof(ref->comm)); in add_ref()
57 ref->comm[sizeof(ref->comm) - 1] = '\0'; in add_ref()
67 e->id, e->pid, e->comm); in add_ref()
75 e->id, e->pid, e->comm); in add_ref()
80 memcpy(ref->comm, e->comm, sizeof(ref->comm)); in add_ref()
81 ref->comm[sizeof(ref->comm) - 1] = '\0'; in add_ref()
227 jsonw_string_field(json_writer, "comm", ref->comm); in emit_obj_refs_json()
256 printf("%s%s(%d)", i == 0 ? "" : ", ", ref->comm, ref->pid); in emit_obj_refs_plain()
/tools/testing/selftests/bpf/progs/
A Dtest_skb_helpers.c21 char comm[TEST_COMM_LEN]; in test_skb_helpers() local
26 bpf_probe_read_kernel_str(&comm, sizeof(comm), &task->comm); in test_skb_helpers()
A Dtest_raw_tp_test_run.c12 int BPF_PROG(rename, struct task_struct *task, char *comm) in BPF_PROG() argument
16 if ((__u64) task == 0x1234ULL && (__u64) comm == 0x5678ULL) { in BPF_PROG()
18 return (long)task + (long)comm; in BPF_PROG()
A Dtest_sk_storage_tracing.c12 char comm[16]; member
66 bpf_core_read_str(&stg->comm, sizeof(stg->comm), &task->comm); in set_task_info()
67 bpf_core_read_str(&task_comm, sizeof(task_comm), &task->comm); in set_task_info()
A Dtest_ringbuf_n.c17 char comm[16]; member
42 bpf_get_current_comm(sample->comm, sizeof(sample->comm)); in test_ringbuf_n()
A Dtest_core_reloc_module.c34 char comm[sizeof("test_progs")]; member
64 out->comm_len = BPF_CORE_READ_STR_INTO(&out->comm, task, comm); in BPF_PROG()
98 out->comm_len = BPF_CORE_READ_STR_INTO(&out->comm, task, comm); in BPF_PROG()

Completed in 808 milliseconds

12345678