[Bug bpf/23858] New: sorted iteration on bpf arrays can't sort values

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[Bug bpf/23858] New: sorted iteration on bpf arrays can't sort values

agentzh at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=23858

            Bug ID: 23858
           Summary: sorted iteration on bpf arrays can't sort values
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: bpf
          Assignee: systemtap at sourceware dot org
          Reporter: fche at redhat dot com
  Target Milestone: ---

% stap -e 'global a probe oneshot { a[0]=5; a[3]=3; a[5]=0;
  foreach (b in a+) printf("%d %d\n", b, a[b]) }'
5 0
3 3
0 5

% stap --bpf -e 'global a probe oneshot { a[0]=5; a[3]=3; a[5]=0;
  foreach (b in a+) printf("%d %d\n", b, a[b]) }'
0 5
3 3
5 0

--
You are receiving this mail because:
You are the assignee for the bug.