Lines Matching refs:mmap_event
7469 struct perf_mmap_event *mmap_event = data; in perf_event_mmap_match() local
7470 struct vm_area_struct *vma = mmap_event->vma; in perf_event_mmap_match()
7480 struct perf_mmap_event *mmap_event = data; in perf_event_mmap_output() local
7483 int size = mmap_event->event_id.header.size; in perf_event_mmap_output()
7484 u32 type = mmap_event->event_id.header.type; in perf_event_mmap_output()
7491 mmap_event->event_id.header.type = PERF_RECORD_MMAP2; in perf_event_mmap_output()
7492 mmap_event->event_id.header.size += sizeof(mmap_event->maj); in perf_event_mmap_output()
7493 mmap_event->event_id.header.size += sizeof(mmap_event->min); in perf_event_mmap_output()
7494 mmap_event->event_id.header.size += sizeof(mmap_event->ino); in perf_event_mmap_output()
7495 mmap_event->event_id.header.size += sizeof(mmap_event->ino_generation); in perf_event_mmap_output()
7496 mmap_event->event_id.header.size += sizeof(mmap_event->prot); in perf_event_mmap_output()
7497 mmap_event->event_id.header.size += sizeof(mmap_event->flags); in perf_event_mmap_output()
7500 perf_event_header__init_id(&mmap_event->event_id.header, &sample, event); in perf_event_mmap_output()
7502 mmap_event->event_id.header.size); in perf_event_mmap_output()
7506 mmap_event->event_id.pid = perf_event_pid(event, current); in perf_event_mmap_output()
7507 mmap_event->event_id.tid = perf_event_tid(event, current); in perf_event_mmap_output()
7509 perf_output_put(&handle, mmap_event->event_id); in perf_event_mmap_output()
7512 perf_output_put(&handle, mmap_event->maj); in perf_event_mmap_output()
7513 perf_output_put(&handle, mmap_event->min); in perf_event_mmap_output()
7514 perf_output_put(&handle, mmap_event->ino); in perf_event_mmap_output()
7515 perf_output_put(&handle, mmap_event->ino_generation); in perf_event_mmap_output()
7516 perf_output_put(&handle, mmap_event->prot); in perf_event_mmap_output()
7517 perf_output_put(&handle, mmap_event->flags); in perf_event_mmap_output()
7520 __output_copy(&handle, mmap_event->file_name, in perf_event_mmap_output()
7521 mmap_event->file_size); in perf_event_mmap_output()
7527 mmap_event->event_id.header.size = size; in perf_event_mmap_output()
7528 mmap_event->event_id.header.type = type; in perf_event_mmap_output()
7531 static void perf_event_mmap_event(struct perf_mmap_event *mmap_event) in perf_event_mmap_event() argument
7533 struct vm_area_struct *vma = mmap_event->vma; in perf_event_mmap_event()
7630 mmap_event->file_name = name; in perf_event_mmap_event()
7631 mmap_event->file_size = size; in perf_event_mmap_event()
7632 mmap_event->maj = maj; in perf_event_mmap_event()
7633 mmap_event->min = min; in perf_event_mmap_event()
7634 mmap_event->ino = ino; in perf_event_mmap_event()
7635 mmap_event->ino_generation = gen; in perf_event_mmap_event()
7636 mmap_event->prot = prot; in perf_event_mmap_event()
7637 mmap_event->flags = flags; in perf_event_mmap_event()
7640 mmap_event->event_id.header.misc |= PERF_RECORD_MISC_MMAP_DATA; in perf_event_mmap_event()
7642 mmap_event->event_id.header.size = sizeof(mmap_event->event_id) + size; in perf_event_mmap_event()
7645 mmap_event, in perf_event_mmap_event()
7755 struct perf_mmap_event mmap_event; in perf_event_mmap() local
7760 mmap_event = (struct perf_mmap_event){ in perf_event_mmap()
7785 perf_event_mmap_event(&mmap_event); in perf_event_mmap()