/tools/perf/util/ |
D | comm.c | 82 struct comm *comm__new(const char *str, u64 timestamp, bool exec) in comm__new() 84 struct comm *comm = zalloc(sizeof(*comm)); in comm__new() local 86 if (!comm) in comm__new() 89 comm->start = timestamp; in comm__new() 90 comm->exec = exec; in comm__new() 92 comm->comm_str = comm_str__findnew(str, &comm_str_root); in comm__new() 93 if (!comm->comm_str) { in comm__new() 94 free(comm); in comm__new() 98 comm_str__get(comm->comm_str); in comm__new() 100 return comm; in comm__new() [all …]
|
D | thread.c | 32 struct comm *comm; in thread__new() local 50 comm = comm__new(comm_str, 0, false); in thread__new() 52 if (!comm) in thread__new() 55 list_add(&comm->list, &thread->comm_list); in thread__new() 69 struct comm *comm, *tmp; in thread__delete() local 79 list_for_each_entry_safe(comm, tmp, &thread->comm_list, list) { in thread__delete() 80 list_del(&comm->list); in thread__delete() 81 comm__free(comm); in thread__delete() 103 struct comm *thread__comm(const struct thread *thread) in thread__comm() 108 return list_first_entry(&thread->comm_list, struct comm, list); in thread__comm() [all …]
|
D | comm.h | 10 struct comm { struct 21 void comm__free(struct comm *comm); argument 22 struct comm *comm__new(const char *str, u64 timestamp, bool exec); 23 const char *comm__str(const struct comm *comm); 24 int comm__override(struct comm *comm, const char *str, u64 timestamp,
|
D | db-export.c | 30 struct comm *comm; member 41 err = dbe->export_comm(dbe, de->comm); in db_export__deferred() 63 static int db_export__defer_comm(struct db_export *dbe, struct comm *comm) in db_export__defer_comm() argument 71 de->comm = comm; in db_export__defer_comm() 123 struct machine *machine, struct comm *comm) in db_export__thread() argument 144 comm); in db_export__thread() 147 if (comm) { in db_export__thread() 148 err = db_export__comm_thread(dbe, comm, thread); in db_export__thread() 169 int db_export__comm(struct db_export *dbe, struct comm *comm, in db_export__comm() argument 174 if (comm->db_id) in db_export__comm() [all …]
|
D | db-export.h | 25 struct comm; 53 int (*export_comm)(struct db_export *dbe, struct comm *comm); 55 struct comm *comm, struct thread *thread); 86 struct machine *machine, struct comm *comm); 87 int db_export__comm(struct db_export *dbe, struct comm *comm, 89 int db_export__comm_thread(struct db_export *dbe, struct comm *comm,
|
D | thread-stack.h | 25 struct comm; 30 struct comm; 60 struct comm *comm; member 106 int thread_stack__process(struct thread *thread, struct comm *comm,
|
D | thread.h | 38 struct comm; 60 int __thread__set_comm(struct thread *thread, const char *comm, u64 timestamp, 62 static inline int thread__set_comm(struct thread *thread, const char *comm, in thread__set_comm() argument 65 return __thread__set_comm(thread, comm, timestamp, false); in thread__set_comm() 69 struct comm *thread__comm(const struct thread *thread); 70 struct comm *thread__exec_comm(const struct thread *thread);
|
/tools/perf/tests/ |
D | keep-tracking.c | 26 static int find_comm(struct perf_evlist *evlist, const char *comm) in find_comm() argument 35 (pid_t)event->comm.pid == getpid() && in find_comm() 36 (pid_t)event->comm.tid == getpid() && in find_comm() 37 strcmp(event->comm.comm, comm) == 0) in find_comm() 68 const char *comm; in test__keep_tracking() local 88 evsel->attr.comm = 1; in test__keep_tracking() 107 comm = "Test COMM 1"; in test__keep_tracking() 108 CHECK__(prctl(PR_SET_NAME, (unsigned long)comm, 0, 0, 0)); in test__keep_tracking() 112 found = find_comm(evlist, comm); in test__keep_tracking() 129 comm = "Test COMM 2"; in test__keep_tracking() [all …]
|
D | switch-tracking.c | 63 union perf_event *event, const char *comm, int nr) in check_comm() argument 66 (pid_t)event->comm.pid == getpid() && in check_comm() 67 (pid_t)event->comm.tid == getpid() && in check_comm() 68 strcmp(event->comm.comm, comm) == 0) { in check_comm() 74 pr_debug3("comm event: %s nr: %d\n", event->comm.comm, nr); in check_comm() 326 const char *comm; in test__switch_tracking() local 429 if (!tracking_evsel->attr.mmap || !tracking_evsel->attr.comm) { in test__switch_tracking() 437 if (evsel->attr.mmap || evsel->attr.comm) { in test__switch_tracking() 470 comm = "Test COMM 1"; in test__switch_tracking() 471 err = prctl(PR_SET_NAME, (unsigned long)comm, 0, 0, 0); in test__switch_tracking() [all …]
|
/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/ |
D | EventClass.py | 24 def create_event(name, comm, dso, symbol, raw_buf): argument 26 event = PebsEvent(name, comm, dso, symbol, raw_buf) 28 event = PebsNHM(name, comm, dso, symbol, raw_buf) 30 event = PerfEvent(name, comm, dso, symbol, raw_buf) 36 def __init__(self, name, comm, dso, symbol, raw_buf, ev_type=EVTYPE_GENERIC): argument 38 self.comm = comm 46 … event: name=%12s, symbol=%24s, comm=%8s, dso=%12s" % (self.name, self.symbol, self.comm, self.dso) 55 def __init__(self, name, comm, dso, symbol, raw_buf, ev_type=EVTYPE_PEBS): argument 69 PerfEvent.__init__(self, name, comm, dso, symbol, raw_buf, ev_type) 84 def __init__(self, name, comm, dso, symbol, raw_buf, ev_type=EVTYPE_PEBS_LL): argument [all …]
|
/tools/perf/scripts/perl/ |
D | rw-by-pid.pl | 48 $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];
|
D | failed-syscalls.pl | 41 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});
|
D | rwtop.pl | 63 $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/ |
D | netdev-times.py | 227 def irq__softirq_entry(name, context, cpu, sec, nsec, pid, comm, callchain, vec): argument 230 event_info = (name, context, cpu, nsecs(sec, nsec), pid, comm, vec) 233 def irq__softirq_exit(name, context, cpu, sec, nsec, pid, comm, callchain, vec): argument 236 event_info = (name, context, cpu, nsecs(sec, nsec), pid, comm, vec) 239 def irq__softirq_raise(name, context, cpu, sec, nsec, pid, comm, callchain, vec): argument 242 event_info = (name, context, cpu, nsecs(sec, nsec), pid, comm, vec) 245 def irq__irq_handler_entry(name, context, cpu, sec, nsec, pid, comm, argument 247 event_info = (name, context, cpu, nsecs(sec, nsec), pid, comm, 251 def irq__irq_handler_exit(name, context, cpu, sec, nsec, pid, comm, callchain, irq, ret): argument 252 event_info = (name, context, cpu, nsecs(sec, nsec), pid, comm, irq, ret) [all …]
|
D | failed-syscalls-by-pid.py | 69 for comm in comm_keys: 70 pid_keys = syscalls[comm].keys() 72 print "\n%s [%d]\n" % (comm, pid), 73 id_keys = syscalls[comm][pid].keys() 76 ret_keys = syscalls[comm][pid][id].keys() 77 …for ret, val in sorted(syscalls[comm][pid][id].iteritems(), key = lambda(k, v): (v, k), reverse =…
|
D | syscall-counts-by-pid.py | 67 for comm in comm_keys: 68 pid_keys = syscalls[comm].keys() 70 print "\n%s [%d]\n" % (comm, pid), 71 id_keys = syscalls[comm][pid].keys() 72 for id, val in sorted(syscalls[comm][pid].iteritems(), \
|
D | futex-contention.py | 24 def syscalls__sys_enter_futex(event, ctxt, cpu, s, ns, tid, comm, callchain, argument 30 process_names[tid] = comm 34 def syscalls__sys_exit_futex(event, ctxt, cpu, s, ns, tid, comm, callchain, argument
|
/tools/perf/arch/x86/tests/ |
D | perf-time-to-tsc.c | 79 evsel->attr.comm = 1; in test__perf_time_to_tsc() 114 (pid_t)event->comm.pid != getpid() || in test__perf_time_to_tsc() 115 (pid_t)event->comm.tid != getpid()) in test__perf_time_to_tsc() 118 if (strcmp(event->comm.comm, comm1) == 0) { in test__perf_time_to_tsc() 123 if (strcmp(event->comm.comm, comm2) == 0) { in test__perf_time_to_tsc()
|
/tools/perf/scripts/perl/bin/ |
D | rw-by-file-report | 8 comm=$1 10 perf script $@ -s "$PERF_EXEC_PATH"/scripts/perl/rw-by-file.pl $comm
|
D | failed-syscalls-report | 6 comm=$1 10 perf script $@ -s "$PERF_EXEC_PATH"/scripts/perl/failed-syscalls.pl $comm
|
/tools/perf/scripts/python/bin/ |
D | syscall-counts-report | 6 comm=$1 10 perf script $@ -s "$PERF_EXEC_PATH"/scripts/python/syscall-counts.py $comm
|
D | failed-syscalls-by-pid-report | 6 comm=$1 10 perf script $@ -s "$PERF_EXEC_PATH"/scripts/python/failed-syscalls-by-pid.py $comm
|
D | syscall-counts-by-pid-report | 6 comm=$1 10 perf script $@ -s "$PERF_EXEC_PATH"/scripts/python/syscall-counts-by-pid.py $comm
|
D | sctop-report | 17 comm=$1 24 perf script $@ -s "$PERF_EXEC_PATH"/scripts/python/sctop.py $comm $interval
|
/tools/lib/traceevent/ |
D | plugin_sched_switch.c | 51 const char *comm; in write_and_save_comm() local 54 comm = (char *)(record->data + field->offset); in write_and_save_comm() 57 field->size, comm); in write_and_save_comm() 61 comm = &s->buffer[len]; in write_and_save_comm() 64 pevent_register_comm(field->event->pevent, comm, pid); in write_and_save_comm()
|