Commit 1e07fd4
XDP: skip run-lifecycle hooks for XDP_KERNEL* internal runs
XDP plugins that submit their own ELF (e.g. aie_halt/ve2, aie_nop_util,
and future plugin configurations) create an xrt::run with the kernel
name "XDP_KERNEL:{IPUV1CNN}". The run-lifecycle XDP hooks
(run_constructor / run_start / run_wait) would then attempt to
instrument these internal runs through whatever plugin currently
registers the callbacks (today aie_dtrace), which is incorrect and
order-dependent on plugin load.
Add a tiny file-local is_xdp_internal_kernel() helper that does a
prefix match on the (already colon-stripped) kernel name, and skip
the dispatch at the top of each of the three top-level xrt_core::xdp
run dispatchers. The check runs first so any future XDP plugin
consumer added below the config gate inherits the same skip rule.
Co-authored-by: Cursor <cursoragent@cursor.com>1 parent c63dac0 commit 1e07fd4
1 file changed
Lines changed: 22 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
| |||
949 | 950 | | |
950 | 951 | | |
951 | 952 | | |
| 953 | + | |
| 954 | + | |
| 955 | + | |
| 956 | + | |
| 957 | + | |
| 958 | + | |
| 959 | + | |
| 960 | + | |
| 961 | + | |
| 962 | + | |
| 963 | + | |
| 964 | + | |
952 | 965 | | |
953 | 966 | | |
954 | 967 | | |
| 968 | + | |
| 969 | + | |
| 970 | + | |
955 | 971 | | |
956 | 972 | | |
957 | 973 | | |
| |||
961 | 977 | | |
962 | 978 | | |
963 | 979 | | |
| 980 | + | |
| 981 | + | |
| 982 | + | |
964 | 983 | | |
965 | 984 | | |
966 | 985 | | |
| |||
970 | 989 | | |
971 | 990 | | |
972 | 991 | | |
| 992 | + | |
| 993 | + | |
| 994 | + | |
973 | 995 | | |
974 | 996 | | |
975 | 997 | | |
| |||
0 commit comments