diff options
Diffstat (limited to 'tools/perf/util/header.c')
-rw-r--r-- | tools/perf/util/header.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tools/perf/util/header.c b/tools/perf/util/header.c index fa914ba8cd56..f97df418d661 100644 --- a/tools/perf/util/header.c +++ b/tools/perf/util/header.c | |||
@@ -3861,10 +3861,10 @@ perf_event__synthesize_event_update_cpus(struct perf_tool *tool, | |||
3861 | int max, err; | 3861 | int max, err; |
3862 | u16 type; | 3862 | u16 type; |
3863 | 3863 | ||
3864 | if (!evsel->own_cpus) | 3864 | if (!evsel->core.own_cpus) |
3865 | return 0; | 3865 | return 0; |
3866 | 3866 | ||
3867 | ev = cpu_map_data__alloc(evsel->own_cpus, &size, &type, &max); | 3867 | ev = cpu_map_data__alloc(evsel->core.own_cpus, &size, &type, &max); |
3868 | if (!ev) | 3868 | if (!ev) |
3869 | return -ENOMEM; | 3869 | return -ENOMEM; |
3870 | 3870 | ||
@@ -3874,7 +3874,7 @@ perf_event__synthesize_event_update_cpus(struct perf_tool *tool, | |||
3874 | ev->id = evsel->id[0]; | 3874 | ev->id = evsel->id[0]; |
3875 | 3875 | ||
3876 | cpu_map_data__synthesize((struct cpu_map_data *) ev->data, | 3876 | cpu_map_data__synthesize((struct cpu_map_data *) ev->data, |
3877 | evsel->own_cpus, | 3877 | evsel->core.own_cpus, |
3878 | type, max); | 3878 | type, max); |
3879 | 3879 | ||
3880 | err = process(tool, (union perf_event*) ev, NULL, NULL); | 3880 | err = process(tool, (union perf_event*) ev, NULL, NULL); |
@@ -3985,7 +3985,7 @@ int perf_event__synthesize_extra_attr(struct perf_tool *tool, | |||
3985 | } | 3985 | } |
3986 | } | 3986 | } |
3987 | 3987 | ||
3988 | if (counter->own_cpus) { | 3988 | if (counter->core.own_cpus) { |
3989 | err = perf_event__synthesize_event_update_cpus(tool, counter, process); | 3989 | err = perf_event__synthesize_event_update_cpus(tool, counter, process); |
3990 | if (err < 0) { | 3990 | if (err < 0) { |
3991 | pr_err("Couldn't synthesize evsel cpus.\n"); | 3991 | pr_err("Couldn't synthesize evsel cpus.\n"); |
@@ -4082,7 +4082,7 @@ int perf_event__process_event_update(struct perf_tool *tool __maybe_unused, | |||
4082 | 4082 | ||
4083 | map = cpu_map__new_data(&ev_cpus->cpus); | 4083 | map = cpu_map__new_data(&ev_cpus->cpus); |
4084 | if (map) | 4084 | if (map) |
4085 | evsel->own_cpus = map; | 4085 | evsel->core.own_cpus = map; |
4086 | else | 4086 | else |
4087 | pr_err("failed to get event_update cpus\n"); | 4087 | pr_err("failed to get event_update cpus\n"); |
4088 | default: | 4088 | default: |