This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]