Merge remote-tracking branch 'torvalds/master' into perf/core
To pick up fixes. Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
@@ -27,5 +27,5 @@ int main(int argc, char **argv)
|
||||
perf_cpu_map__put(cpus);
|
||||
|
||||
__T_END;
|
||||
return 0;
|
||||
return tests_failed == 0 ? 0 : -1;
|
||||
}
|
||||
|
||||
@@ -208,13 +208,13 @@ static int test_mmap_thread(void)
|
||||
char path[PATH_MAX];
|
||||
int id, err, pid, go_pipe[2];
|
||||
union perf_event *event;
|
||||
char bf;
|
||||
int count = 0;
|
||||
|
||||
snprintf(path, PATH_MAX, "%s/kernel/debug/tracing/events/syscalls/sys_enter_prctl/id",
|
||||
sysfs__mountpoint());
|
||||
|
||||
if (filename__read_int(path, &id)) {
|
||||
tests_failed++;
|
||||
fprintf(stderr, "error: failed to get tracepoint id: %s\n", path);
|
||||
return -1;
|
||||
}
|
||||
@@ -229,6 +229,7 @@ static int test_mmap_thread(void)
|
||||
pid = fork();
|
||||
if (!pid) {
|
||||
int i;
|
||||
char bf;
|
||||
|
||||
read(go_pipe[0], &bf, 1);
|
||||
|
||||
@@ -266,7 +267,7 @@ static int test_mmap_thread(void)
|
||||
perf_evlist__enable(evlist);
|
||||
|
||||
/* kick the child and wait for it to finish */
|
||||
write(go_pipe[1], &bf, 1);
|
||||
write(go_pipe[1], "A", 1);
|
||||
waitpid(pid, NULL, 0);
|
||||
|
||||
/*
|
||||
@@ -409,5 +410,5 @@ int main(int argc, char **argv)
|
||||
test_mmap_cpus();
|
||||
|
||||
__T_END;
|
||||
return 0;
|
||||
return tests_failed == 0 ? 0 : -1;
|
||||
}
|
||||
|
||||
@@ -131,5 +131,5 @@ int main(int argc, char **argv)
|
||||
test_stat_thread_enable();
|
||||
|
||||
__T_END;
|
||||
return 0;
|
||||
return tests_failed == 0 ? 0 : -1;
|
||||
}
|
||||
|
||||
@@ -27,5 +27,5 @@ int main(int argc, char **argv)
|
||||
perf_thread_map__put(threads);
|
||||
|
||||
__T_END;
|
||||
return 0;
|
||||
return tests_failed == 0 ? 0 : -1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user