• Home
  • Raw
  • Download

Lines Matching refs:ev

1605 	union perf_event *ev;  in perf_event__synthesize_id_index()  local
1620 ev = zalloc(sz); in perf_event__synthesize_id_index()
1621 if (!ev) in perf_event__synthesize_id_index()
1624 ev->id_index.header.type = PERF_RECORD_ID_INDEX; in perf_event__synthesize_id_index()
1625 ev->id_index.header.size = sz; in perf_event__synthesize_id_index()
1626 ev->id_index.nr = n; in perf_event__synthesize_id_index()
1636 err = process(tool, ev, NULL, machine); in perf_event__synthesize_id_index()
1643 e = &ev->id_index.entries[i++]; in perf_event__synthesize_id_index()
1649 free(ev); in perf_event__synthesize_id_index()
1660 ev->id_index.header.size = sz; in perf_event__synthesize_id_index()
1661 ev->id_index.nr = nr; in perf_event__synthesize_id_index()
1663 err = process(tool, ev, NULL, machine); in perf_event__synthesize_id_index()
1665 free(ev); in perf_event__synthesize_id_index()
1696 struct perf_record_event_update *ev; in event_update_event__new() local
1698 size += sizeof(*ev); in event_update_event__new()
1701 ev = zalloc(size); in event_update_event__new()
1702 if (ev) { in event_update_event__new()
1703 ev->header.type = PERF_RECORD_EVENT_UPDATE; in event_update_event__new()
1704 ev->header.size = (u16)size; in event_update_event__new()
1705 ev->type = type; in event_update_event__new()
1706 ev->id = id; in event_update_event__new()
1708 return ev; in event_update_event__new()
1715 struct perf_record_event_update *ev; in perf_event__synthesize_event_update_unit() local
1718 ev = event_update_event__new(size + 1, PERF_EVENT_UPDATE__UNIT, evsel->core.id[0]); in perf_event__synthesize_event_update_unit()
1719 if (ev == NULL) in perf_event__synthesize_event_update_unit()
1722 strlcpy(ev->data, evsel->unit, size + 1); in perf_event__synthesize_event_update_unit()
1723 err = process(tool, (union perf_event *)ev, NULL, NULL); in perf_event__synthesize_event_update_unit()
1724 free(ev); in perf_event__synthesize_event_update_unit()
1731 struct perf_record_event_update *ev; in perf_event__synthesize_event_update_scale() local
1735 ev = event_update_event__new(sizeof(*ev_data), PERF_EVENT_UPDATE__SCALE, evsel->core.id[0]); in perf_event__synthesize_event_update_scale()
1736 if (ev == NULL) in perf_event__synthesize_event_update_scale()
1739 ev_data = (struct perf_record_event_update_scale *)ev->data; in perf_event__synthesize_event_update_scale()
1741 err = process(tool, (union perf_event *)ev, NULL, NULL); in perf_event__synthesize_event_update_scale()
1742 free(ev); in perf_event__synthesize_event_update_scale()
1749 struct perf_record_event_update *ev; in perf_event__synthesize_event_update_name() local
1753 ev = event_update_event__new(len + 1, PERF_EVENT_UPDATE__NAME, evsel->core.id[0]); in perf_event__synthesize_event_update_name()
1754 if (ev == NULL) in perf_event__synthesize_event_update_name()
1757 strlcpy(ev->data, evsel->name, len + 1); in perf_event__synthesize_event_update_name()
1758 err = process(tool, (union perf_event *)ev, NULL, NULL); in perf_event__synthesize_event_update_name()
1759 free(ev); in perf_event__synthesize_event_update_name()
1767 struct perf_record_event_update *ev; in perf_event__synthesize_event_update_cpus() local
1774 ev = cpu_map_data__alloc(evsel->core.own_cpus, &size, &type, &max); in perf_event__synthesize_event_update_cpus()
1775 if (!ev) in perf_event__synthesize_event_update_cpus()
1778 ev->header.type = PERF_RECORD_EVENT_UPDATE; in perf_event__synthesize_event_update_cpus()
1779 ev->header.size = (u16)size; in perf_event__synthesize_event_update_cpus()
1780 ev->type = PERF_EVENT_UPDATE__CPUS; in perf_event__synthesize_event_update_cpus()
1781 ev->id = evsel->core.id[0]; in perf_event__synthesize_event_update_cpus()
1783 cpu_map_data__synthesize((struct perf_record_cpu_map_data *)ev->data, in perf_event__synthesize_event_update_cpus()
1786 err = process(tool, (union perf_event *)ev, NULL, NULL); in perf_event__synthesize_event_update_cpus()
1787 free(ev); in perf_event__synthesize_event_update_cpus()
1878 union perf_event *ev; in perf_event__synthesize_attr() local
1887 ev = zalloc(size); in perf_event__synthesize_attr()
1889 if (ev == NULL) in perf_event__synthesize_attr()
1892 ev->attr.attr = *attr; in perf_event__synthesize_attr()
1893 memcpy(ev->attr.id, id, ids * sizeof(u64)); in perf_event__synthesize_attr()
1895 ev->attr.header.type = PERF_RECORD_HEADER_ATTR; in perf_event__synthesize_attr()
1896 ev->attr.header.size = (u16)size; in perf_event__synthesize_attr()
1898 if (ev->attr.header.size == size) in perf_event__synthesize_attr()
1899 err = process(tool, ev, NULL, NULL); in perf_event__synthesize_attr()
1903 free(ev); in perf_event__synthesize_attr()
1911 union perf_event ev; in perf_event__synthesize_tracing_data() local
1931 memset(&ev, 0, sizeof(ev)); in perf_event__synthesize_tracing_data()
1933 ev.tracing_data.header.type = PERF_RECORD_HEADER_TRACING_DATA; in perf_event__synthesize_tracing_data()
1937 ev.tracing_data.header.size = sizeof(ev.tracing_data); in perf_event__synthesize_tracing_data()
1938 ev.tracing_data.size = aligned_size; in perf_event__synthesize_tracing_data()
1940 process(tool, &ev, NULL, NULL); in perf_event__synthesize_tracing_data()
1958 union perf_event ev; in perf_event__synthesize_build_id() local
1964 memset(&ev, 0, sizeof(ev)); in perf_event__synthesize_build_id()
1968 memcpy(&ev.build_id.build_id, pos->bid.data, sizeof(pos->bid.data)); in perf_event__synthesize_build_id()
1969 ev.build_id.header.type = PERF_RECORD_HEADER_BUILD_ID; in perf_event__synthesize_build_id()
1970 ev.build_id.header.misc = misc; in perf_event__synthesize_build_id()
1971 ev.build_id.pid = machine->pid; in perf_event__synthesize_build_id()
1972 ev.build_id.header.size = sizeof(ev.build_id) + len; in perf_event__synthesize_build_id()
1973 memcpy(&ev.build_id.filename, pos->long_name, pos->long_name_len); in perf_event__synthesize_build_id()
1975 return process(tool, &ev, NULL, machine); in perf_event__synthesize_build_id()