summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorAlex Elder <elder@linaro.org>2021-06-10 01:34:56 +0300
committerDavid S. Miller <davem@davemloft.net>2021-06-10 01:59:33 +0300
commit98334d2a3ba4c79947650710ac06434e25824a35 (patch)
tree72e366010bdeb8ca17ff75a7b5732dd7513a8040 /tools/perf/scripts/python/stackcollapse.py
parent0300df2d9d249c3dd8e0ad1b7dd5b7da1b8d0e37 (diff)
downloadlinux-98334d2a3ba4c79947650710ac06434e25824a35.tar.xz
net: ipa: separate memory validation from initialization
Currently, memory regions are validated in the loop that initializes them. Instead, validate them separately. Rename ipa_mem_valid() to be ipa_mem_valid_one(). Define a *new* function named ipa_mem_valid() that performs validation of the array of memory regions provided. This function calls ipa_mem_valid_one() for each region in turn. Skip validation for any "empty" region descriptors, which have zero size and are not preceded by any canary values. Issue a warning for such descriptors if the offset is non-zero. Signed-off-by: Alex Elder <elder@linaro.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions