DEV Community

Discussion on: Absolute Beginner's Guide to BCC, XDP, and eBPF

Collapse
 
canelasevero profile image
Lucas Severo Alves • Edited

I think we can have problems sorting the items since they are c_ulong, right? Not sure if something changed here since you wrote :)

TypeError: '<' not supported between instances of 'c_ulong' and 'c_ulong'
Enter fullscreen mode Exit fullscreen mode

It is fine if we do not sort, though!

Collapse
 
satrobit profile image
Amir Keshavarz

Sorry, I somehow missed your comment. Yes, It seems that Python doesn't support sorting c values. We can implement our sort functions or convert all of our values to normal python integers before sorting them.