mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-16 05:50:19 +00:00
Merge branch 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull perf fixes from Ingo Molnar: "Two oneliner 'perf bench' tooling fixes" * 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: perf bench: Fix NULL pointer dereference in "perf bench all" perf bench numa: Make no args mean 'run all tests'
This commit is contained in:
commit
774868c709
@ -1593,6 +1593,7 @@ static void init_params(struct params *p, const char *name, int argc, const char
|
||||
p->data_rand_walk = true;
|
||||
p->nr_loops = -1;
|
||||
p->init_random = true;
|
||||
p->run_all = argc == 1;
|
||||
}
|
||||
|
||||
static int run_bench_numa(const char *name, const char **argv)
|
||||
|
@ -76,7 +76,7 @@ static struct collection collections[] = {
|
||||
|
||||
/* Iterate over all benchmarks within a collection: */
|
||||
#define for_each_bench(coll, bench) \
|
||||
for (bench = coll->benchmarks; bench->name; bench++)
|
||||
for (bench = coll->benchmarks; bench && bench->name; bench++)
|
||||
|
||||
static void dump_benchmarks(struct collection *coll)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user