aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorRoman Gushchin <[email protected]>2018-12-01 10:39:44 -0800
committerAlexei Starovoitov <[email protected]>2018-12-01 12:33:58 -0800
commitdcb40590e69e306030e944a39d0e4bf54247fb68 (patch)
tree0029074dcb0e8738360e4713f26158140419d34e /tools/perf/scripts/python/export-to-postgresql.py
parentd74286d2c25ad29dbf9e342955dd8dc31f21653b (diff)
bpf: refactor bpf_test_run() to separate own failures and test program result
After commit f42ee093be29 ("bpf/test_run: support cgroup local storage") the bpf_test_run() function may fail with -ENOMEM, if it's not possible to allocate memory for a cgroup local storage. This error shouldn't be mixed with the return value of the testing program. Let's add an additional argument with a pointer where to store the testing program's result; and make bpf_test_run() return either 0 or -ENOMEM. Fixes: f42ee093be29 ("bpf/test_run: support cgroup local storage") Reported-by: Dan Carpenter <[email protected]> Suggested-by: Alexei Starovoitov <[email protected]> Signed-off-by: Roman Gushchin <[email protected]> Cc: Daniel Borkmann <[email protected]> Cc: Alexei Starovoitov <[email protected]> Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions