Home
last modified time | relevance | path

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

12345678910>>...19

/Linux-v4.19/tools/perf/util/
Dcomm.c107 struct comm *comm__new(const char *str, u64 timestamp, bool exec) in comm__new()
109 struct comm *comm = zalloc(sizeof(*comm)); in comm__new() local
111 if (!comm) in comm__new()
114 comm->start = timestamp; in comm__new()
115 comm->exec = exec; in comm__new()
117 comm->comm_str = comm_str__findnew(str, &comm_str_root); in comm__new()
118 if (!comm->comm_str) { in comm__new()
119 free(comm); in comm__new()
123 return comm; in comm__new()
126 int comm__override(struct comm *comm, const char *str, u64 timestamp, bool exec) in comm__override() argument
[all …]
Dthread.c39 struct comm *comm; in thread__new() local
57 comm = comm__new(comm_str, 0, false); in thread__new()
59 if (!comm) in thread__new()
62 list_add(&comm->list, &thread->comm_list); in thread__new()
79 struct comm *comm, *tmp_comm; in thread__delete() local
98 list_for_each_entry_safe(comm, tmp_comm, &thread->comm_list, list) { in thread__delete()
99 list_del(&comm->list); in thread__delete()
100 comm__free(comm); in thread__delete()
174 struct comm *thread__comm(const struct thread *thread) in thread__comm()
179 return list_first_entry(&thread->comm_list, struct comm, list); in thread__comm()
[all …]
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,
Ddb-export.c32 struct comm *comm; member
43 err = dbe->export_comm(dbe, de->comm); in db_export__deferred()
65 static int db_export__defer_comm(struct db_export *dbe, struct comm *comm) in db_export__defer_comm() argument
73 de->comm = comm; in db_export__defer_comm()
125 struct machine *machine, struct comm *comm) in db_export__thread() argument
146 comm); in db_export__thread()
149 if (comm) { in db_export__thread()
150 err = db_export__comm_thread(dbe, comm, thread); in db_export__thread()
171 int db_export__comm(struct db_export *dbe, struct comm *comm, in db_export__comm() argument
176 if (comm->db_id) in db_export__comm()
[all …]
Ddb-export.h25 struct comm;
55 int (*export_comm)(struct db_export *dbe, struct comm *comm);
57 struct comm *comm, struct thread *thread);
89 struct machine *machine, struct comm *comm);
90 int db_export__comm(struct db_export *dbe, struct comm *comm,
92 int db_export__comm_thread(struct db_export *dbe, struct comm *comm,
Dthread-stack.h24 struct comm;
28 struct comm;
59 struct comm *comm; member
96 int thread_stack__process(struct thread *thread, struct comm *comm,
Dthread.h49 struct comm;
75 int __thread__set_comm(struct thread *thread, const char *comm, u64 timestamp,
77 static inline int thread__set_comm(struct thread *thread, const char *comm, in thread__set_comm() argument
80 return __thread__set_comm(thread, comm, timestamp, false); in thread__set_comm()
86 struct comm *thread__comm(const struct thread *thread);
87 struct comm *thread__exec_comm(const struct thread *thread);
Dthread_map.c378 static int get_comm(char **comm, pid_t pid) in get_comm() argument
387 err = filename__read_str(path, comm, &size); in get_comm()
394 (*comm)[size] = 0; in get_comm()
395 rtrim(*comm); in get_comm()
405 char *comm = NULL; in comm_init() local
409 map->map[i].comm = strdup("dummy"); in comm_init()
417 if (get_comm(&comm, pid)) in comm_init()
420 map->map[i].comm = comm; in comm_init()
440 threads->map[i].comm = strndup(event->entries[i].comm, 16); in thread_map__copy_event()
482 free(threads->map[idx].comm); in thread_map__remove()
/Linux-v4.19/tools/perf/tests/
Dkeep-tracking.c27 static int find_comm(struct perf_evlist *evlist, const char *comm) in find_comm() argument
40 (pid_t)event->comm.pid == getpid() && in find_comm()
41 (pid_t)event->comm.tid == getpid() && in find_comm()
42 strcmp(event->comm.comm, comm) == 0) in find_comm()
73 const char *comm; in test__keep_tracking() local
93 evsel->attr.comm = 1; in test__keep_tracking()
112 comm = "Test COMM 1"; in test__keep_tracking()
113 CHECK__(prctl(PR_SET_NAME, (unsigned long)comm, 0, 0, 0)); in test__keep_tracking()
117 found = find_comm(evlist, comm); in test__keep_tracking()
134 comm = "Test COMM 2"; in test__keep_tracking()
[all …]
Dswitch-tracking.c65 union perf_event *event, const char *comm, int nr) in check_comm() argument
68 (pid_t)event->comm.pid == getpid() && in check_comm()
69 (pid_t)event->comm.tid == getpid() && in check_comm()
70 strcmp(event->comm.comm, comm) == 0) { in check_comm()
76 pr_debug3("comm event: %s nr: %d\n", event->comm.comm, nr); in check_comm()
334 const char *comm; in test__switch_tracking() local
437 if (!tracking_evsel->attr.mmap || !tracking_evsel->attr.comm) { in test__switch_tracking()
445 if (evsel->attr.mmap || evsel->attr.comm) { in test__switch_tracking()
478 comm = "Test COMM 1"; in test__switch_tracking()
479 err = prctl(PR_SET_NAME, (unsigned long)comm, 0, 0, 0); in test__switch_tracking()
[all …]
/Linux-v4.19/include/trace/events/
Dsched.h22 __array( char, comm, TASK_COMM_LEN )
27 memcpy(__entry->comm, t->comm, TASK_COMM_LEN);
31 TP_printk("comm=%s pid=%d", __entry->comm, __entry->pid)
64 __array( char, comm, TASK_COMM_LEN )
72 memcpy(__entry->comm, p->comm, TASK_COMM_LEN);
80 __entry->comm, __entry->pid, __entry->prio,
147 memcpy(__entry->next_comm, next->comm, TASK_COMM_LEN);
151 memcpy(__entry->prev_comm, prev->comm, TASK_COMM_LEN);
181 __array( char, comm, TASK_COMM_LEN )
189 memcpy(__entry->comm, p->comm, TASK_COMM_LEN);
[all …]
Dblock.h160 __array( char, comm, TASK_COMM_LEN )
172 memcpy(__entry->comm, current->comm, TASK_COMM_LEN);
179 __entry->nr_sector, __entry->comm)
236 __array( char, comm, TASK_COMM_LEN )
244 memcpy(__entry->comm, current->comm, TASK_COMM_LEN);
250 __entry->nr_sector, __entry->comm)
301 __array( char, comm, TASK_COMM_LEN )
309 memcpy(__entry->comm, current->comm, TASK_COMM_LEN);
315 __entry->nr_sector, __entry->comm)
368 __array( char, comm, TASK_COMM_LEN )
[all …]
Dtask.h17 __array( char, comm, TASK_COMM_LEN)
24 memcpy(__entry->comm, task->comm, TASK_COMM_LEN);
30 __entry->pid, __entry->comm,
36 TP_PROTO(struct task_struct *task, const char *comm),
38 TP_ARGS(task, comm),
49 memcpy(entry->oldcomm, task->comm, TASK_COMM_LEN);
50 strlcpy(entry->newcomm, comm, TASK_COMM_LEN);
/Linux-v4.19/tools/perf/scripts/python/
Dnetdev-times.py228 def irq__softirq_entry(name, context, cpu, sec, nsec, pid, comm, callchain, vec): argument
231 event_info = (name, context, cpu, nsecs(sec, nsec), pid, comm, vec)
234 def irq__softirq_exit(name, context, cpu, sec, nsec, pid, comm, callchain, vec): argument
237 event_info = (name, context, cpu, nsecs(sec, nsec), pid, comm, vec)
240 def irq__softirq_raise(name, context, cpu, sec, nsec, pid, comm, callchain, vec): argument
243 event_info = (name, context, cpu, nsecs(sec, nsec), pid, comm, vec)
246 def irq__irq_handler_entry(name, context, cpu, sec, nsec, pid, comm, argument
248 event_info = (name, context, cpu, nsecs(sec, nsec), pid, comm,
252 def irq__irq_handler_exit(name, context, cpu, sec, nsec, pid, comm, callchain, irq, ret): argument
253 event_info = (name, context, cpu, nsecs(sec, nsec), pid, comm, irq, ret)
[all …]
Dintel-pt-events.py76 def print_common_start(comm, sample, name): argument
81 …print "%16s %5u/%-5u [%03u] %9u.%09u %7s:" % (comm, pid, tid, cpu, ts / 1000000000, ts %1000000000…
91 comm = param_dict["comm"]
106 print_common_start(comm, sample, name)
110 print_common_start(comm, sample, name)
114 print_common_start(comm, sample, name)
118 print_common_start(comm, sample, name)
122 print_common_start(comm, sample, name)
126 print_common_start(comm, sample, name)
Dfailed-syscalls-by-pid.py69 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 =…
Dsyscall-counts-by-pid.py67 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(), \
Dstackcollapse.py110 comm = param_dict["comm"].replace(' ', '_')
113 comm = comm + sep + str(param_dict['sample']['pid'])
116 comm = comm + sep + str(param_dict['sample']['tid'])
117 stack.append(comm)
/Linux-v4.19/tools/perf/scripts/perl/
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];
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,
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});
/Linux-v4.19/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/
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 …]
/Linux-v4.19/drivers/scsi/aacraid/
Dcomminit.c390 struct aac_queue_block * comm = dev->queues; in aac_comm_init() local
412 comm->queue[HostNormCmdQueue].base = queues; in aac_comm_init()
413 aac_queue_init(dev, &comm->queue[HostNormCmdQueue], headers, HOST_NORM_CMD_ENTRIES); in aac_comm_init()
418 comm->queue[HostHighCmdQueue].base = queues; in aac_comm_init()
419 aac_queue_init(dev, &comm->queue[HostHighCmdQueue], headers, HOST_HIGH_CMD_ENTRIES); in aac_comm_init()
425 comm->queue[AdapNormCmdQueue].base = queues; in aac_comm_init()
426 aac_queue_init(dev, &comm->queue[AdapNormCmdQueue], headers, ADAP_NORM_CMD_ENTRIES); in aac_comm_init()
432 comm->queue[AdapHighCmdQueue].base = queues; in aac_comm_init()
433 aac_queue_init(dev, &comm->queue[AdapHighCmdQueue], headers, ADAP_HIGH_CMD_ENTRIES); in aac_comm_init()
439 comm->queue[HostNormRespQueue].base = queues; in aac_comm_init()
[all …]
/Linux-v4.19/kernel/locking/
Drtmutex-debug.c38 printk("%16s:%5d [%p, %3d]", p->comm, task_pid_nr(p), p, p->prio); in printk_task()
112 task->comm, task_pid_nr(task), in debug_rt_mutex_print_deadlock()
113 current->comm, task_pid_nr(current)); in debug_rt_mutex_print_deadlock()
116 current->comm, task_pid_nr(current)); in debug_rt_mutex_print_deadlock()
120 task->comm, task_pid_nr(task)); in debug_rt_mutex_print_deadlock()
127 task->comm, task_pid_nr(task)); in debug_rt_mutex_print_deadlock()
130 current->comm, task_pid_nr(current)); in debug_rt_mutex_print_deadlock()
/Linux-v4.19/tools/perf/arch/x86/tests/
Dperf-time-to-tsc.c82 evsel->attr.comm = 1; in test__perf_time_to_tsc()
121 (pid_t)event->comm.pid != getpid() || in test__perf_time_to_tsc()
122 (pid_t)event->comm.tid != getpid()) in test__perf_time_to_tsc()
125 if (strcmp(event->comm.comm, comm1) == 0) { in test__perf_time_to_tsc()
130 if (strcmp(event->comm.comm, comm2) == 0) { in test__perf_time_to_tsc()

12345678910>>...19