summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorMagnus Karlsson <magnus.karlsson@intel.com>2023-05-16 13:31:02 +0300
committerAlexei Starovoitov <ast@kernel.org>2023-05-17 08:31:51 +0300
commitfeb973a9094ff92fb8c141be5d2e762f9ab36a7a (patch)
tree2ecbe691d22035df340c352c9b6587497b9cb186 /tools/perf/scripts/python/stackcollapse.py
parentdf82d2e89c41d1dc6f02a881f0cddac8252bb441 (diff)
downloadlinux-feb973a9094ff92fb8c141be5d2e762f9ab36a7a.tar.xz
selftests/xsk: add varying payload pattern within packet
Add a varying payload pattern within the packet. Instead of having just a packet number that is the same for all words in a packet, make each word different in the packet. The upper 16-bits are set to the packet number and the lower 16-bits are the sequence number of the words in this packet. So the 3rd packet's 5th 32-bit word of data will contain the number (2<<32) | 4 as they are numbered from 0. This will make it easier to detect fragments that are out of order when starting to test multi-buffer support. The member payload in the packet is renamed pkt_nb to reflect that it is now only a pkt_nb, not the real payload as seen above. Signed-off-by: Magnus Karlsson <magnus.karlsson@intel.com> Link: https://lore.kernel.org/r/20230516103109.3066-4-magnus.karlsson@gmail.com Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions