Skip to content

Commit

Permalink
fix variable name collision
Browse files Browse the repository at this point in the history
  • Loading branch information
pagict committed Sep 7, 2024
1 parent 6a27a00 commit 7314da8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tools/cpudist.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,11 +194,11 @@
pid_store = """ns_pid.update(&pid, &ns.pid);
ns_pid.update(&tgid, &ns.tgid);"""
pid_translate = """
u32 *ns_pid = ns_pid.lookup(&prev_pid);
u32 *ns_tgid = ns_pid.lookup(&prev_tgid);
if (ns_pid && ns_tgid) {
prev_pid = *ns_pid;
prev_tgid = *ns_tgid;
u32 *ns_pid_val = ns_pid.lookup(&prev_pid);
u32 *ns_tgid_val = ns_pid.lookup(&prev_tgid);
if (ns_pid_val && ns_tgid_val) {
prev_pid = *ns_pid_val;
prev_tgid = *ns_tgid_val;
}
"""
except:
Expand Down

0 comments on commit 7314da8

Please sign in to comment.