Commit a7ae4d3
committed
prog: remove PROG_RUN retry on EINTR and deprecated RunOptions.Reset option
RunOptions.Reset was primarily added to make resetting testing.B possible in
case of EINTR. However, ebpf-go now masks SIGPROF during BPF_PROG_LOAD and
BPF_PROG_RUN to prevent the Go profiler from endlessely interrupting the
verifier when (continuous) profiling is enabled.
Of course, the process can still get signaled by other processes, but this
would likely be some form of kill or interrupt signal. In the case of
PROG_RUN with a significant Repeat value, this signal should probably be
respected and Program.Run shouldn't stubbornly continue on.
Signed-off-by: Timo Beckers <timo@isovalent.com>1 parent 5c94717 commit a7ae4d3
3 files changed
+16
-65
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
745 | 745 | | |
746 | 746 | | |
747 | 747 | | |
748 | | - | |
749 | | - | |
750 | | - | |
751 | | - | |
752 | | - | |
753 | 748 | | |
754 | 749 | | |
755 | 750 | | |
| |||
802 | 797 | | |
803 | 798 | | |
804 | 799 | | |
805 | | - | |
806 | | - | |
| 800 | + | |
807 | 801 | | |
808 | 802 | | |
809 | | - | |
| 803 | + | |
810 | 804 | | |
811 | 805 | | |
812 | 806 | | |
813 | 807 | | |
814 | 808 | | |
815 | 809 | | |
816 | 810 | | |
817 | | - | |
818 | 811 | | |
819 | 812 | | |
820 | 813 | | |
| |||
923 | 916 | | |
924 | 917 | | |
925 | 918 | | |
926 | | - | |
927 | | - | |
928 | | - | |
929 | | - | |
930 | | - | |
931 | | - | |
932 | | - | |
933 | | - | |
934 | | - | |
935 | | - | |
936 | | - | |
937 | | - | |
938 | | - | |
939 | | - | |
940 | | - | |
941 | | - | |
942 | | - | |
943 | | - | |
944 | | - | |
945 | | - | |
946 | | - | |
947 | | - | |
948 | | - | |
949 | | - | |
950 | | - | |
951 | | - | |
952 | | - | |
953 | | - | |
954 | | - | |
955 | | - | |
956 | | - | |
957 | | - | |
958 | | - | |
959 | | - | |
| 919 | + | |
| 920 | + | |
| 921 | + | |
| 922 | + | |
| 923 | + | |
| 924 | + | |
| 925 | + | |
| 926 | + | |
960 | 927 | | |
961 | 928 | | |
962 | 929 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | 51 | | |
59 | 52 | | |
60 | 53 | | |
| |||
63 | 56 | | |
64 | 57 | | |
65 | 58 | | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
| 59 | + | |
70 | 60 | | |
71 | 61 | | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
| 62 | + | |
77 | 63 | | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
| 64 | + | |
| 65 | + | |
83 | 66 | | |
84 | 67 | | |
85 | 68 | | |
86 | 69 | | |
87 | 70 | | |
| 71 | + | |
88 | 72 | | |
89 | 73 | | |
90 | 74 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
158 | 158 | | |
159 | 159 | | |
160 | 160 | | |
161 | | - | |
| 161 | + | |
162 | 162 | | |
163 | 163 | | |
164 | 164 | | |
| |||
0 commit comments