Skip to content

Commit 1766cd7

Browse files
author
Fox Snowpatch
committed
1 parent 960c1fd commit 1766cd7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tools/testing/selftests/bpf/bpf_experimental.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -630,6 +630,8 @@ static inline int get_preempt_count(void)
630630
return *(int *) bpf_this_cpu_ptr(&__preempt_count);
631631
#elif defined(bpf_target_arm64)
632632
return bpf_get_current_task_btf()->thread_info.preempt.count;
633+
#elif defined(bpf_target_powerpc)
634+
return bpf_get_current_task_btf()->thread_info.preempt_count;
633635
#endif
634636
return 0;
635637
}

0 commit comments

Comments
 (0)