Commit d17fdd9
authored
dyninst/irgen: name the unsupported operation in condition errors (#54601)
### What does this PR do?
When a logpoint's condition uses an operation the Go debugger doesn't implement, the resulting error now names that operation.
Also an unsupported operation can appear in two places, on its own or nested inside a comparison. Both now report the operation by name.
### Motivation
A logpoint was created in staging against a Go service with a condition using `startsWith`, which Go does not implement. It never activated. The person debugging was told the target had passed validation but the service had not applied the logpoint.
### Describe how you validated your changes
Added eight test probes covering every operation the shared expression language accepts but Go does not implement, in both positions an operation can occupy, and confirmed in the regenerated snapshots that each reports its own name.
Ran the generator test suite and the eBPF integration test for the affected test program, to confirm the added failing probes don't disturb the probes that do attach.
Co-authored-by: grant.seltzerrichman <grant.seltzerrichman@datadoghq.com>1 parent 83cb817 commit d17fdd9
10 files changed
Lines changed: 1213 additions & 11 deletions
File tree
- pkg/dyninst
- irgen
- testdata/snapshot
- testprogs/testdata/probes
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
891 | 891 | | |
892 | 892 | | |
893 | 893 | | |
894 | | - | |
| 894 | + | |
895 | 895 | | |
896 | 896 | | |
897 | 897 | | |
| |||
901 | 901 | | |
902 | 902 | | |
903 | 903 | | |
904 | | - | |
| 904 | + | |
905 | 905 | | |
906 | 906 | | |
907 | 907 | | |
| |||
1100 | 1100 | | |
1101 | 1101 | | |
1102 | 1102 | | |
| 1103 | + | |
| 1104 | + | |
1103 | 1105 | | |
1104 | 1106 | | |
1105 | 1107 | | |
| |||
1162 | 1164 | | |
1163 | 1165 | | |
1164 | 1166 | | |
| 1167 | + | |
| 1168 | + | |
| 1169 | + | |
| 1170 | + | |
| 1171 | + | |
| 1172 | + | |
| 1173 | + | |
| 1174 | + | |
1165 | 1175 | | |
1166 | 1176 | | |
1167 | 1177 | | |
| |||
4422 | 4432 | | |
4423 | 4433 | | |
4424 | 4434 | | |
4425 | | - | |
| 4435 | + | |
4426 | 4436 | | |
4427 | 4437 | | |
4428 | 4438 | | |
| |||
Lines changed: 137 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26114 | 26114 | | |
26115 | 26115 | | |
26116 | 26116 | | |
26117 | | - | |
| 26117 | + | |
26118 | 26118 | | |
26119 | 26119 | | |
26120 | 26120 | | |
| |||
26130 | 26130 | | |
26131 | 26131 | | |
26132 | 26132 | | |
| 26133 | + | |
| 26134 | + | |
| 26135 | + | |
| 26136 | + | |
| 26137 | + | |
| 26138 | + | |
| 26139 | + | |
| 26140 | + | |
| 26141 | + | |
| 26142 | + | |
| 26143 | + | |
| 26144 | + | |
| 26145 | + | |
| 26146 | + | |
| 26147 | + | |
| 26148 | + | |
| 26149 | + | |
| 26150 | + | |
| 26151 | + | |
| 26152 | + | |
| 26153 | + | |
| 26154 | + | |
| 26155 | + | |
| 26156 | + | |
| 26157 | + | |
| 26158 | + | |
| 26159 | + | |
| 26160 | + | |
| 26161 | + | |
| 26162 | + | |
| 26163 | + | |
| 26164 | + | |
| 26165 | + | |
| 26166 | + | |
| 26167 | + | |
| 26168 | + | |
| 26169 | + | |
| 26170 | + | |
| 26171 | + | |
| 26172 | + | |
| 26173 | + | |
| 26174 | + | |
| 26175 | + | |
| 26176 | + | |
| 26177 | + | |
| 26178 | + | |
| 26179 | + | |
| 26180 | + | |
| 26181 | + | |
| 26182 | + | |
| 26183 | + | |
26133 | 26184 | | |
26134 | 26185 | | |
26135 | 26186 | | |
| |||
26145 | 26196 | | |
26146 | 26197 | | |
26147 | 26198 | | |
| 26199 | + | |
| 26200 | + | |
| 26201 | + | |
| 26202 | + | |
| 26203 | + | |
| 26204 | + | |
| 26205 | + | |
| 26206 | + | |
| 26207 | + | |
| 26208 | + | |
| 26209 | + | |
| 26210 | + | |
| 26211 | + | |
| 26212 | + | |
| 26213 | + | |
| 26214 | + | |
| 26215 | + | |
26148 | 26216 | | |
26149 | 26217 | | |
26150 | 26218 | | |
| |||
26160 | 26228 | | |
26161 | 26229 | | |
26162 | 26230 | | |
| 26231 | + | |
| 26232 | + | |
| 26233 | + | |
| 26234 | + | |
| 26235 | + | |
| 26236 | + | |
| 26237 | + | |
| 26238 | + | |
| 26239 | + | |
| 26240 | + | |
| 26241 | + | |
| 26242 | + | |
| 26243 | + | |
| 26244 | + | |
| 26245 | + | |
| 26246 | + | |
| 26247 | + | |
| 26248 | + | |
| 26249 | + | |
| 26250 | + | |
| 26251 | + | |
| 26252 | + | |
| 26253 | + | |
| 26254 | + | |
| 26255 | + | |
| 26256 | + | |
| 26257 | + | |
| 26258 | + | |
| 26259 | + | |
| 26260 | + | |
| 26261 | + | |
| 26262 | + | |
| 26263 | + | |
| 26264 | + | |
26163 | 26265 | | |
26164 | 26266 | | |
26165 | 26267 | | |
| |||
26190 | 26292 | | |
26191 | 26293 | | |
26192 | 26294 | | |
| 26295 | + | |
| 26296 | + | |
| 26297 | + | |
| 26298 | + | |
| 26299 | + | |
| 26300 | + | |
| 26301 | + | |
| 26302 | + | |
| 26303 | + | |
| 26304 | + | |
| 26305 | + | |
| 26306 | + | |
| 26307 | + | |
| 26308 | + | |
| 26309 | + | |
| 26310 | + | |
| 26311 | + | |
26193 | 26312 | | |
26194 | 26313 | | |
26195 | 26314 | | |
| |||
26220 | 26339 | | |
26221 | 26340 | | |
26222 | 26341 | | |
| 26342 | + | |
| 26343 | + | |
| 26344 | + | |
| 26345 | + | |
| 26346 | + | |
| 26347 | + | |
| 26348 | + | |
| 26349 | + | |
| 26350 | + | |
| 26351 | + | |
| 26352 | + | |
| 26353 | + | |
| 26354 | + | |
| 26355 | + | |
| 26356 | + | |
| 26357 | + | |
| 26358 | + | |
26223 | 26359 | | |
26224 | 26360 | | |
26225 | 26361 | | |
| |||
0 commit comments