• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/tools/perf/util/

Lines Matching refs:self

337 static void thread__comm_adjust(struct thread *self, struct hists *hists)
339 char *comm = self->comm;
351 static int thread__set_comm_adjust(struct thread *self, const char *comm,
354 int ret = thread__set_comm(self, comm);
359 thread__comm_adjust(self, hists);
364 int event__process_comm(event_t *self, struct perf_session *session)
366 struct thread *thread = perf_session__findnew(session, self->comm.tid);
368 dump_printf(": %s:%d\n", self->comm.comm, self->comm.tid);
370 if (thread == NULL || thread__set_comm_adjust(thread, self->comm.comm,
379 int event__process_lost(event_t *self, struct perf_session *session)
381 dump_printf(": id:%Ld: lost:%Ld\n", self->lost.id, self->lost.lost);
382 session->hists.stats.total_lost += self->lost.lost;
386 static void event_set_kernel_mmap_len(struct map **maps, event_t *self)
388 maps[MAP__FUNCTION]->start = self->mmap.start;
389 maps[MAP__FUNCTION]->end = self->mmap.start + self->mmap.len;
398 static int event__process_kernel_mmap(event_t *self,
407 machine = perf_session__findnew_machine(session, self->mmap.pid);
409 pr_err("Can't find id %d's machine\n", self->mmap.pid);
419 is_kernel_mmap = memcmp(self->mmap.filename,
422 if (self->mmap.filename[0] == '/' ||
423 (!is_kernel_mmap && self->mmap.filename[0] == '[')) {
428 if (self->mmap.filename[0] == '/') {
429 name = strrchr(self->mmap.filename, '/');
441 strcpy(short_module_name, self->mmap.filename);
443 map = machine__new_module(machine, self->mmap.start,
444 self->mmap.filename);
454 map->end = map->start + self->mmap.len;
456 const char *symbol_name = (self->mmap.filename +
471 event_set_kernel_mmap_len(machine->vmlinux_maps, self);
474 self->mmap.pgoff);
488 int event__process_mmap(event_t *self, struct perf_session *session)
493 u8 cpumode = self->header.misc & PERF_RECORD_MISC_CPUMODE_MASK;
497 self->mmap.pid, self->mmap.tid, self->mmap.start,
498 self->mmap.len, self->mmap.pgoff, self->mmap.filename);
502 ret = event__process_kernel_mmap(self, session);
511 thread = perf_session__findnew(session, self->mmap.pid);
514 map = map__new(&machine->user_dsos, self->mmap.start,
515 self->mmap.len, self->mmap.pgoff,
516 self->mmap.pid, self->mmap.filename,
529 int event__process_task(event_t *self, struct perf_session *session)
531 struct thread *thread = perf_session__findnew(session, self->fork.tid);
532 struct thread *parent = perf_session__findnew(session, self->fork.ptid);
534 dump_printf("(%d:%d):(%d:%d)\n", self->fork.pid, self->fork.tid,
535 self->fork.ppid, self->fork.ptid);
537 if (self->header.type == PERF_RECORD_EXIT) {
571 void thread__find_addr_map(struct thread *self,
576 struct map_groups *mg = &self->mg;
579 al->thread = self;
638 void thread__find_addr_location(struct thread *self,
644 thread__find_addr_map(self, session, cpumode, type, pid, addr, al);
651 static void dso__calc_col_width(struct dso *self, struct hists *hists)
655 strlist__has_entry(symbol_conf.dso_list, self->name))) {
656 u16 slen = dso__name_len(self);
660 self->slen_calculated = 1;
663 int event__preprocess_sample(const event_t *self, struct perf_session *session,
667 u8 cpumode = self->header.misc & PERF_RECORD_MISC_CPUMODE_MASK;
670 event__parse_sample(self, session->sample_type, data);
673 self->header.misc, data->pid, data->tid, data->ip,
681 if (!ip_callchain__valid(data->callchain, self)) {
693 thread = perf_session__findnew(session, self->ip.pid);
714 self->ip.pid, self->ip.ip, al);