[PATCH 1/3] bpf: print failing insn for unexpected register

Vineet Gupta vineet.gupta@linux.dev
Tue Mar 31 14:43:48 GMT 2026



On 3/30/26 10:58 PM, Jan Beulich wrote:
> On 31.03.2026 00:42, Vineet Gupta wrote:
>> prev:
>>
>> | /tmp/cc7214hK.s: Assembler messages:
>> | /tmp/cc7214hK.s:40: Error: unexpected register name `w0' in expression
>>
>> New
>>
>> | /tmp/cc7214hK.s: Assembler messages:
>> | /tmp/cc7214hK.s:40: Error: unexpected register name `w0' in instruction `*(u32 *) (r9+0) = w5'
> I may be missing something (in which case I'm sorry for my lack of bpf
> knowledge), but is this an improvement? There's no "w0" in the quoted
> insn.

The improvement is additional printing of failing insn as opposed to just the
reg that causes the issue.

Thx,
-Vineet


More information about the Binutils mailing list