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
perf record: Rename --no-delay to --no-buffering
[firefly-linux-kernel-4.4.55.git]
/
tools
/
perf
/
tests
/
open-syscall-tp-fields.c
diff --git
a/tools/perf/tests/open-syscall-tp-fields.c
b/tools/perf/tests/open-syscall-tp-fields.c
index 41cc0badb74b9475377b00264287168a30c0d016..c505ef2af245901639a04e453432b78c5adb5f8b 100644
(file)
--- a/
tools/perf/tests/open-syscall-tp-fields.c
+++ b/
tools/perf/tests/open-syscall-tp-fields.c
@@
-6,15
+6,15
@@
int test__syscall_open_tp_fields(void)
{
int test__syscall_open_tp_fields(void)
{
- struct
perf_
record_opts opts = {
+ struct record_opts opts = {
.target = {
.uid = UINT_MAX,
.uses_mmap = true,
},
.target = {
.uid = UINT_MAX,
.uses_mmap = true,
},
- .no_
delay
= true,
- .freq = 1,
- .mmap_pages = 256,
- .raw_samples = true,
+ .no_
buffering
= true,
+ .freq
= 1,
+ .mmap_pages
= 256,
+ .raw_samples
= true,
};
const char *filename = "/etc/passwd";
int flags = O_RDONLY | O_DIRECTORY;
};
const char *filename = "/etc/passwd";
int flags = O_RDONLY | O_DIRECTORY;
@@
-48,13
+48,13
@@
int test__syscall_open_tp_fields(void)
err = perf_evlist__open(evlist);
if (err < 0) {
pr_debug("perf_evlist__open: %s\n", strerror(errno));
err = perf_evlist__open(evlist);
if (err < 0) {
pr_debug("perf_evlist__open: %s\n", strerror(errno));
- goto out_delete_
maps
;
+ goto out_delete_
evlist
;
}
err = perf_evlist__mmap(evlist, UINT_MAX, false);
if (err < 0) {
pr_debug("perf_evlist__mmap: %s\n", strerror(errno));
}
err = perf_evlist__mmap(evlist, UINT_MAX, false);
if (err < 0) {
pr_debug("perf_evlist__mmap: %s\n", strerror(errno));
- goto out_
clos
e_evlist;
+ goto out_
delet
e_evlist;
}
perf_evlist__enable(evlist);
}
perf_evlist__enable(evlist);
@@
-85,7
+85,7
@@
int test__syscall_open_tp_fields(void)
err = perf_evsel__parse_sample(evsel, event, &sample);
if (err) {
pr_err("Can't parse sample, err = %d\n", err);
err = perf_evsel__parse_sample(evsel, event, &sample);
if (err) {
pr_err("Can't parse sample, err = %d\n", err);
- goto out_
munmap
;
+ goto out_
delete_evlist
;
}
tp_flags = perf_evsel__intval(evsel, &sample, "flags");
}
tp_flags = perf_evsel__intval(evsel, &sample, "flags");
@@
-93,7
+93,7
@@
int test__syscall_open_tp_fields(void)
if (flags != tp_flags) {
pr_debug("%s: Expected flags=%#x, got %#x\n",
__func__, flags, tp_flags);
if (flags != tp_flags) {
pr_debug("%s: Expected flags=%#x, got %#x\n",
__func__, flags, tp_flags);
- goto out_
munmap
;
+ goto out_
delete_evlist
;
}
goto out_ok;
}
goto out_ok;
@@
-105,17
+105,11
@@
int test__syscall_open_tp_fields(void)
if (++nr_polls > 5) {
pr_debug("%s: no events!\n", __func__);
if (++nr_polls > 5) {
pr_debug("%s: no events!\n", __func__);
- goto out_
munmap
;
+ goto out_
delete_evlist
;
}
}
out_ok:
err = 0;
}
}
out_ok:
err = 0;
-out_munmap:
- perf_evlist__munmap(evlist);
-out_close_evlist:
- perf_evlist__close(evlist);
-out_delete_maps:
- perf_evlist__delete_maps(evlist);
out_delete_evlist:
perf_evlist__delete(evlist);
out:
out_delete_evlist:
perf_evlist__delete(evlist);
out: