Messages in this thread | | | From | Miguel Ojeda <> | Date | Tue, 20 Feb 2024 18:07:06 +0100 | Subject | Re: [PATCH] x86/insn_decoder_test: allow longer symbol-names |
| |
On Fri, Jan 27, 2023 at 11:39 AM David Rheinsberg <david@readahead.eu> wrote: > > The current workaround is to just disable CONFIG_X86_DECODER_SELFTEST, which I thought is a sad state. I can gladly use `256 + KSYM_NAME_LEN` and add a comment ala "room for insn-encoding and a symbol name". Would that be acceptable? The alternative would be to try to dyn-alloc a buffer and increase it to the actual line-length?
John independently hit this issue again. Could we fix this? Going for the `256 + KSYM_NAME_LEN` sounds good enough for the moment since it would be a clear improvement, though I agree this could be cleaned up further.
Sergio took the approach David suggested in a related patch [1], but perhaps it is best to submit the fix on its own so that it is easier to put it in. David, would you be so kind as to submit a v2 with that? Hopefully x86 can pick it up, otherwise with an Acked-by I am happy to take it too; and then Sergio can submit his patch on top again.
Thanks!
(Cc'ing also Masami who wrote this originally)
[1] https://lore.kernel.org/rust-for-linux/20231119180145.157455-1-sergio.collado@gmail.com/
Cheers, Miguel
| |