projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge tag 'drm/panel/for-4.4-rc1' of git://anongit.freedesktop.org/tegra/linux into...
[firefly-linux-kernel-4.4.55.git]
/
tools
/
perf
/
tests
/
openat-syscall-all-cpus.c
diff --git
a/tools/perf/tests/openat-syscall-all-cpus.c
b/tools/perf/tests/openat-syscall-all-cpus.c
index 9a7a116e09b8087ef5f19e63113f6f65c1e0b5bf..a572f87e9c8d8e25665bf75e1c45b1f86ff8a6e9 100644
(file)
--- a/
tools/perf/tests/openat-syscall-all-cpus.c
+++ b/
tools/perf/tests/openat-syscall-all-cpus.c
@@
-78,7
+78,7
@@
int test__openat_syscall_event_on_all_cpus(void)
* we use the auto allocation it will allocate just for 1 cpu,
* as we start by cpu 0.
*/
* we use the auto allocation it will allocate just for 1 cpu,
* as we start by cpu 0.
*/
- if (perf_evsel__alloc_counts(evsel, cpus->nr) < 0) {
+ if (perf_evsel__alloc_counts(evsel, cpus->nr
, 1
) < 0) {
pr_debug("perf_evsel__alloc_counts(ncpus=%d)\n", cpus->nr);
goto out_close_fd;
}
pr_debug("perf_evsel__alloc_counts(ncpus=%d)\n", cpus->nr);
goto out_close_fd;
}
@@
-98,9
+98,9
@@
int test__openat_syscall_event_on_all_cpus(void)
}
expected = nr_openat_calls + cpu;
}
expected = nr_openat_calls + cpu;
- if (
evsel->counts->cpu[cpu].
val != expected) {
+ if (
perf_counts(evsel->counts, cpu, 0)->
val != expected) {
pr_debug("perf_evsel__read_on_cpu: expected to intercept %d calls on cpu %d, got %" PRIu64 "\n",
pr_debug("perf_evsel__read_on_cpu: expected to intercept %d calls on cpu %d, got %" PRIu64 "\n",
- expected, cpus->map[cpu],
evsel->counts->cpu[cpu].
val);
+ expected, cpus->map[cpu],
perf_counts(evsel->counts, cpu, 0)->
val);
err = -1;
}
}
err = -1;
}
}
@@
-111,6
+111,6
@@
out_close_fd:
out_evsel_delete:
perf_evsel__delete(evsel);
out_thread_map_delete:
out_evsel_delete:
perf_evsel__delete(evsel);
out_thread_map_delete:
- thread_map__
delete
(threads);
+ thread_map__
put
(threads);
return err;
}
return err;
}