Include reason parameter that was added in commit c504e5c2f9648a1e ("net: skb: introduce kfree_skb_reason()")
Showing the changes to tools/perf/scripts/python (2 of 2 files). Show all
Unified · Split
| @@ -68,9 +68,9 @@ def trace_end(): · 67 unmodified lines | ||
| 68 | 68 | get_kallsyms_table() |
| 69 | 69 | print_drop_table() |
| 70 | 70 | |
| 71 | −# called from perf, when it finds a correspoinding event | |
| 71 | +# called from perf, when it finds a corresponding event | |
| 72 | 72 | def skb__kfree_skb(name, context, cpu, sec, nsec, pid, comm, callchain, |
| 73 | − skbaddr, location, protocol): | |
| 73 | + skbaddr, location, protocol, reason): | |
| 74 | 74 | slocation = str(location) |
| 75 | 75 | try: |
| 76 | 76 | drop_log[slocation] = drop_log[slocation] + 1 |
| @@ -288,9 +288,9 @@ def net__net_dev_xmit(name, context, cpu, sec, nsec, pid, comm, callchain, · 287 unmodified lines | ||
| 288 | 288 | all_event_list.append(event_info) |
| 289 | 289 | |
| 290 | 290 | def skb__kfree_skb(name, context, cpu, sec, nsec, pid, comm, callchain, |
| 291 | − skbaddr, protocol, location): | |
| 291 | + skbaddr, location, protocol, reason): | |
| 292 | 292 | event_info = (name, context, cpu, nsecs(sec, nsec), pid, comm, |
| 293 | − skbaddr, protocol, location) | |
| 293 | + skbaddr, location, protocol, reason) | |
| 294 | 294 | all_event_list.append(event_info) |
| 295 | 295 | |
| 296 | 296 | def skb__consume_skb(name, context, cpu, sec, nsec, pid, comm, callchain, skbaddr): |
| @@ -430,7 +430,7 @@ def handle_net_dev_xmit(event_info): · 133 unmodified lines | ||
| 430 | 430 | |
| 431 | 431 | def handle_kfree_skb(event_info): |
| 432 | 432 | (name, context, cpu, time, pid, comm, |
| 433 | − skbaddr, protocol, location) = event_info | |
| 433 | + skbaddr, location, protocol, reason) = event_info | |
| 434 | 434 | for i in range(len(tx_queue_list)): |
| 435 | 435 | skb = tx_queue_list[i] |
| 436 | 436 | if skb['skbaddr'] == skbaddr: |