diff options
author | Jiong Wang <[email protected]> | 2018-05-02 16:17:17 -0400 |
---|---|---|
committer | Daniel Borkmann <[email protected]> | 2018-05-04 11:58:35 +0200 |
commit | f910cefa32b6cdabc96b126bcfc46d8940b1dc45 (patch) | |
tree | 9749a7702e13b451ed514d4d8711bb28af91c8ea /lib/mpi/mpiutil.c | |
parent | 5234ccf2be0e51b2cd052fe5e2fcc978e67aebc7 (diff) |
bpf: unify main prog and subprog
Currently, verifier treat main prog and subprog differently. All subprogs
detected are kept in env->subprog_starts while main prog is not kept there.
Instead, main prog is implicitly defined as the prog start at 0.
There is actually no difference between main prog and subprog, it is better
to unify them, and register all progs detected into env->subprog_starts.
This could also help simplifying some code logic.
Signed-off-by: Jiong Wang <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Diffstat (limited to 'lib/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions