aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorTobias Klauser <[email protected]>2017-09-18 15:03:46 +0200
committerDavid S. Miller <[email protected]>2017-09-18 16:53:30 -0700
commit582db7e0c4c2fc5bb4f932f268035883385e3692 (patch)
tree16459f27ec0876983c3b8f6a14c0cde6332403bf /tools/perf/scripts/python/export-to-postgresql.py
parent1e3c5ec66119783440ed211ae527674651affa9b (diff)
bpf: devmap: pass on return value of bpf_map_precharge_memlock
If bpf_map_precharge_memlock in dev_map_alloc, -ENOMEM is returned regardless of the actual error produced by bpf_map_precharge_memlock. Fix it by passing on the error returned by bpf_map_precharge_memlock. Also return -EINVAL instead of -ENOMEM if the page count overflow check fails. This makes dev_map_alloc match the behavior of other bpf maps' alloc functions wrt. return values. Signed-off-by: Tobias Klauser <[email protected]> Acked-by: Daniel Borkmann <[email protected]> Acked-by: Alexei Starovoitov <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions