Skip to content

Commit

Permalink
Merge pull request #71 from oracle-samples/sem-helpers-improvement
Browse files Browse the repository at this point in the history
lock: sem: add other __down variants in scan.
  • Loading branch information
imran-kn authored Feb 10, 2024
2 parents f96dbad + 32e982a commit 4830729
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions drgn_tools/lock.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,18 @@ def scan_sem_lock(prog: Program, stack: bool) -> None:
if frame_list:
show_sem_lock(prog, frame_list, seen_sems, stack)

frame_list = bt_has(prog, "__down_interruptible")
if frame_list:
show_sem_lock(prog, frame_list, seen_sems, stack)

frame_list = bt_has(prog, "__down_killable")
if frame_list:
show_sem_lock(prog, frame_list, seen_sems, stack)

frame_list = bt_has(prog, "__down_timeout")
if frame_list:
show_sem_lock(prog, frame_list, seen_sems, stack)


def scan_lock(prog: Program, stack: bool) -> None:
"""Scan tasks for Mutex and Semaphore"""
Expand Down

0 comments on commit 4830729

Please sign in to comment.