]> sourceware.org Git - systemtap.git/commit
PR24953: fix foreach (v = v1 in arr) loop behaviour
authorSagar Patel <sapatel@redhat.com>
Wed, 25 Sep 2019 22:29:19 +0000 (18:29 -0400)
committerSagar Patel <sapatel@redhat.com>
Thu, 26 Sep 2019 19:26:22 +0000 (15:26 -0400)
commit724b7014a3499ca3783a479c881c8ffba587db2c
tree908e1959312a73fba51a43103a0d59d44e0f40ac
parent4f3991c14166f7bda2baedff85dd3859b668fb84
PR24953: fix foreach (v = v1 in arr) loop behaviour

Previously, keys were correctly propagated to foreach loops, however,
values were defaulted to 0. The new implementation allows values to
be propagated along with the keys.

1) Added instructions to load corresponding values.
2) Added block to check for invalid key/value pairs.
3) Added test which checks for correct key/value pairs.
bpf-translate.cxx
testsuite/systemtap.bpf/bpf_tests/foreach_pr24953.stp [new file with mode: 0644]
This page took 0.027561 seconds and 5 git commands to generate.