Skip to content

Commit

Permalink
tools/runqlat: fix data structure initialization with padding
Browse files Browse the repository at this point in the history
  • Loading branch information
pleeplop authored and yonghong-song committed Jul 30, 2023
1 parent 612399d commit ecf70a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/runqlat.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@
bpf_text = bpf_text.replace('STORAGE',
'BPF_HISTOGRAM(dist, pid_key_t);')
bpf_text = bpf_text.replace('STORE',
'pid_key_t key = {.id = ' + pid + ', .slot = bpf_log2l(delta)}; ' +
'pid_key_t key = {}; key.id = ' + pid + '; key.slot = bpf_log2l(delta); ' +
'dist.increment(key);')
elif args.pidnss:
section = "pidns"
Expand Down

0 comments on commit ecf70a7

Please sign in to comment.