aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorCraig Gallek <[email protected]>2017-10-05 10:41:57 -0400
committerDavid S. Miller <[email protected]>2017-10-05 21:42:28 -0700
commitb13c5c14dbfd5923d773de9661404ed9600c53ef (patch)
treecfb266d6bb37d00da439d028930d34691ae8e1c0 /tools/perf/scripts/python
parentd009313c99ba575b65a944fe2c683c6346ea1721 (diff)
libbpf: parse maps sections of varying size
This library previously assumed a fixed-size map options structure. Any new options were ignored. In order to allow the options structure to grow and to support parsing older programs, this patch updates the maps section parsing to handle varying sizes. Object files with maps sections smaller than expected will have the new fields initialized to zero. Object files which have larger than expected maps sections will be rejected unless all of the unrecognized data is zero. This change still assumes that each map definition in the maps section is the same size. Signed-off-by: Craig Gallek <[email protected]> Acked-by: Jesper Dangaard Brouer <[email protected]> Acked-by: Daniel Borkmann <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions