Commit 8e095f0
committed
bpf: Refactor mark_{dynptr,iter}_read
JIRA: https://issues.redhat.com/browse/RHEL-78201
commit b79f5f5
Author: Kumar Kartikeya Dwivedi <memxor@gmail.com>
Date: Tue Dec 3 19:03:56 2024 -0800
bpf: Refactor mark_{dynptr,iter}_read
There is possibility of sharing code between mark_dynptr_read and
mark_iter_read for updating liveness information of their stack slots.
Consolidate common logic into mark_stack_slot_obj_read function in
preparation for the next patch which needs the same logic for its own
stack slots.
Acked-by: Eduard Zingerman <eddyz87@gmail.com>
Signed-off-by: Kumar Kartikeya Dwivedi <memxor@gmail.com>
Link: https://lore.kernel.org/r/20241204030400.208005-4-memxor@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Jerome Marchand <jmarchan@redhat.com>1 parent 079313e commit 8e095f0
1 file changed
+21
-22
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3195 | 3195 | | |
3196 | 3196 | | |
3197 | 3197 | | |
3198 | | - | |
| 3198 | + | |
| 3199 | + | |
3199 | 3200 | | |
3200 | 3201 | | |
3201 | | - | |
| 3202 | + | |
| 3203 | + | |
| 3204 | + | |
| 3205 | + | |
| 3206 | + | |
| 3207 | + | |
| 3208 | + | |
| 3209 | + | |
| 3210 | + | |
| 3211 | + | |
| 3212 | + | |
| 3213 | + | |
| 3214 | + | |
| 3215 | + | |
| 3216 | + | |
| 3217 | + | |
| 3218 | + | |
3202 | 3219 | | |
3203 | 3220 | | |
3204 | 3221 | | |
| |||
3213 | 3230 | | |
3214 | 3231 | | |
3215 | 3232 | | |
3216 | | - | |
3217 | | - | |
3218 | | - | |
3219 | | - | |
3220 | | - | |
3221 | | - | |
| 3233 | + | |
3222 | 3234 | | |
3223 | 3235 | | |
3224 | 3236 | | |
3225 | 3237 | | |
3226 | 3238 | | |
3227 | | - | |
3228 | | - | |
3229 | | - | |
3230 | | - | |
3231 | | - | |
3232 | | - | |
3233 | | - | |
3234 | | - | |
3235 | | - | |
3236 | | - | |
3237 | | - | |
3238 | | - | |
3239 | | - | |
3240 | | - | |
| 3239 | + | |
3241 | 3240 | | |
3242 | 3241 | | |
3243 | 3242 | | |
| |||
0 commit comments