Skip to content

Commit cca989c

Browse files
committed
workqueue: do not rely on function object
With CTF debuginfo, for certain versions of UEK, there are no type signatures for functions. This means that Objects cannot be constructed for those functions, and thus using prog["function_name"] will not work. However, the symbols are still present, and thus prog.symbol("function_name") will be equivalent. Remove the usage here for delayed_work_timer_fn(). Orabug: 37695749 Signed-off-by: Stephen Brennan <[email protected]>
1 parent ad93ba5 commit cca989c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drgn_tools/workqueue.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -651,8 +651,8 @@ def show_unexpired_delayed_works(
651651
"entry",
652652
):
653653
if (
654-
prog["delayed_work_timer_fn"].address_of_()
655-
== timer.function
654+
prog.symbol("delayed_work_timer_fn").address
655+
== timer.function.value_()
656656
):
657657
dwork = container_of(
658658
timer,

0 commit comments

Comments
 (0)