| /linux/tools/perf/util/ |
| A D | comm.c | 110 struct comm *comm = zalloc(sizeof(*comm)); in comm__new() local 112 if (!comm) in comm__new() 116 comm->exec = exec; in comm__new() 119 if (!comm->comm_str) { in comm__new() 120 free(comm); in comm__new() 124 return comm; in comm__new() 136 comm->comm_str = new; in comm__override() 139 comm->exec = true; in comm__override() 144 void comm__free(struct comm *comm) in comm__free() argument 147 free(comm); in comm__free() [all …]
|
| A D | thread.c | 42 struct comm *comm; in thread__new() local 63 if (!comm) in thread__new() 84 struct comm *comm, *tmp_comm; in thread__delete() local 218 struct comm *comm, *last = NULL, *second_last = NULL; in thread__exec_comm() local 221 if (comm->exec) in thread__exec_comm() 222 return comm; in thread__exec_comm() 224 last = comm; in thread__exec_comm() 294 const struct comm *comm = thread__comm(thread); in __thread__comm_str() local 296 if (!comm) in __thread__comm_str() 318 if (!comm) in thread__comm_len() [all …]
|
| A D | db-export.c | 82 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 294 struct comm *comm = NULL; in db_export__threads() local 311 if (comm) { in db_export__threads() 315 *comm_ptr = comm; in db_export__threads() 356 struct comm *comm = NULL; in db_export__sample() local [all …]
|
| A D | comm.h | 11 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 D | db-export.h | 16 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 D | thread_map.c | 318 static int get_comm(char **comm, pid_t pid) in get_comm() argument 327 err = filename__read_str(path, comm, &size); in get_comm() 334 (*comm)[size] = 0; in get_comm() 335 strim(*comm); in get_comm() 345 char *comm = NULL; in comm_init() local 349 map->map[i].comm = strdup("dummy"); in comm_init() 357 if (get_comm(&comm, pid)) in comm_init() 360 map->map[i].comm = comm; in comm_init() 380 threads->map[i].comm = strndup(event->entries[i].comm, 16); in thread_map__copy_event() 422 zfree(&threads->map[idx].comm); in thread_map__remove()
|
| /linux/drivers/staging/media/meson/vdec/ |
| A D | codec_hevc_common.c | 161 if (comm->fbc_buffer_vaddr[i]) { in codec_hevc_free_fbc_buffers() 163 comm->fbc_buffer_vaddr[i], in codec_hevc_free_fbc_buffers() 164 comm->fbc_buffer_paddr[i]); in codec_hevc_free_fbc_buffers() 202 if (comm->mmu_header_vaddr[i]) { in codec_hevc_free_mmu_headers() 204 comm->mmu_header_vaddr[i], in codec_hevc_free_mmu_headers() 210 if (comm->mmu_map_vaddr) { in codec_hevc_free_mmu_headers() 212 comm->mmu_map_vaddr, in codec_hevc_free_mmu_headers() 213 comm->mmu_map_paddr); in codec_hevc_free_mmu_headers() 214 comm->mmu_map_vaddr = NULL; in codec_hevc_free_mmu_headers() 226 &comm->mmu_map_paddr, in codec_hevc_alloc_mmu_headers() [all …]
|
| /linux/tools/perf/scripts/python/ |
| A D | netdev-times.py | 327 (name, context, cpu, time, pid, comm, vec) = event_info 341 (name, context, cpu, time, pid, comm, vec) = event_info 345 (name, context, cpu, time, pid, comm, vec) = event_info 363 (name, context, cpu, time, pid, comm, napi, dev_name, 373 (name, context, cpu, time, pid, comm, 391 (name, context, cpu, time, pid, comm, 406 (name, context, cpu, time, pid, comm, 417 (name, context, cpu, time, pid, comm, 432 (name, context, cpu, time, pid, comm, 450 'comm':comm, 'pid':pid, 'comm_t':time}) [all …]
|
| A D | intel-pt-events.py | 152 def common_start_str(comm, sample): argument 262 comm = param_dict["comm"] 282 print_instructions_start(comm, sample) 291 print_common_start(comm, sample, name) 295 print_common_start(comm, sample, name) 299 print_common_start(comm, sample, name) 303 print_common_start(comm, sample, name) 307 print_common_start(comm, sample, name) 311 print_common_start(comm, sample, name) 315 print_common_start(comm, sample, name) [all …]
|
| A D | failed-syscalls-by-pid.py | 70 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 D | stackcollapse.py | 112 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 D | syscall-counts-by-pid.py | 68 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(),
|
| /linux/include/trace/events/ |
| A D | sched.h | 23 __array( char, comm, TASK_COMM_LEN ) 28 memcpy(__entry->comm, t->comm, TASK_COMM_LEN); 155 memcpy(__entry->comm, p->comm, TASK_COMM_LEN); 286 memcpy(__entry->comm, p->comm, TASK_COMM_LEN); 311 memcpy(__entry->comm, p->comm, TASK_COMM_LEN); 357 memcpy(__entry->comm, current->comm, TASK_COMM_LEN); 446 memcpy(__entry->comm, tsk->comm, TASK_COMM_LEN); 452 __entry->comm, __entry->pid, 505 memcpy(__entry->comm, tsk->comm, TASK_COMM_LEN); 539 memcpy(__entry->comm, tsk->comm, TASK_COMM_LEN); [all …]
|
| A D | task.h | 17 __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);
|
| A D | block.h | 171 memcpy(__entry->comm, current->comm, TASK_COMM_LEN); 178 __entry->nr_sector, __entry->comm) 272 __array( char, comm, TASK_COMM_LEN ) 280 memcpy(__entry->comm, current->comm, TASK_COMM_LEN); 286 __entry->nr_sector, __entry->comm) 363 __array( char, comm, TASK_COMM_LEN ) 367 memcpy(__entry->comm, current->comm, TASK_COMM_LEN); 370 TP_printk("[%s]", __entry->comm) 386 memcpy(__entry->comm, current->comm, TASK_COMM_LEN); 437 memcpy(__entry->comm, current->comm, TASK_COMM_LEN); [all …]
|
| /linux/tools/perf/tests/ |
| A D | keep-tracking.c | 33 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 D | switch-tracking.c | 73 union perf_event *event, const char *comm, int nr) in check_comm() argument 76 (pid_t)event->comm.pid == getpid() && in check_comm() 77 (pid_t)event->comm.tid == getpid() && in check_comm() 78 strcmp(event->comm.comm, comm) == 0) { in check_comm() 84 pr_debug3("comm event: %s nr: %d\n", event->comm.comm, nr); in check_comm() 342 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 D | perf-time-to-tsc.c | 104 evsel->core.attr.comm = 1; in test__perf_time_to_tsc() 114 evsel->core.attr.comm = 1; in test__perf_time_to_tsc() 154 (pid_t)event->comm.pid != getpid() || in test__perf_time_to_tsc() 155 (pid_t)event->comm.tid != getpid()) in test__perf_time_to_tsc() 158 if (strcmp(event->comm.comm, comm1) == 0) { in test__perf_time_to_tsc() 162 if (strcmp(event->comm.comm, comm2) == 0) { in test__perf_time_to_tsc()
|
| /linux/tools/perf/scripts/perl/ |
| A 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];
|
| A 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,
|
| /linux/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/ |
| A D | EventClass.py | 26 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/drivers/scsi/aacraid/ |
| A D | comminit.c | 375 struct aac_queue_block * comm = dev->queues; in aac_comm_init() local 397 comm->queue[HostNormCmdQueue].base = queues; in aac_comm_init() 403 comm->queue[HostHighCmdQueue].base = queues; in aac_comm_init() 410 comm->queue[AdapNormCmdQueue].base = queues; in aac_comm_init() 417 comm->queue[AdapHighCmdQueue].base = queues; in aac_comm_init() 424 comm->queue[HostNormRespQueue].base = queues; in aac_comm_init() 430 comm->queue[HostHighRespQueue].base = queues; in aac_comm_init() 447 comm->queue[AdapNormCmdQueue].lock = comm->queue[HostNormRespQueue].lock; in aac_comm_init() 448 comm->queue[AdapHighCmdQueue].lock = comm->queue[HostHighRespQueue].lock; in aac_comm_init() 449 comm->queue[AdapNormRespQueue].lock = comm->queue[HostNormCmdQueue].lock; in aac_comm_init() [all …]
|
| /linux/tools/bpf/bpftool/ |
| A D | pids.c | 49 e->id, e->pid, e->comm); in add_ref() 55 memcpy(ref->comm, e->comm, sizeof(ref->comm)); in add_ref() 65 e->id, e->pid, e->comm); in add_ref() 73 e->id, e->pid, e->comm); in add_ref() 78 memcpy(ref->comm, e->comm, sizeof(ref->comm)); in add_ref() 214 jsonw_string_field(json_writer, "comm", ref->comm); in emit_obj_refs_json() 240 printf("%s%s(%d)", i == 0 ? "" : ", ", ref->comm, ref->pid); in emit_obj_refs_plain()
|
| /linux/tools/testing/selftests/bpf/progs/ |
| A D | test_sk_storage_tracing.c | 12 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 D | test_skb_helpers.c | 21 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()
|