rust-for-linux.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Add room for insn-enconding and symbol name
@ 2024-04-14 18:09 Sergio González Collado
  2024-05-08 11:58 ` Danilo Krummrich
  2024-05-14 16:31 ` Thomas Gleixner
  0 siblings, 2 replies; 5+ messages in thread
From: Sergio González Collado @ 2024-04-14 18:09 UTC (permalink / raw)
  To: Thomas Gleixner, Ingo Molnar, Borislav Petkov, Dave Hansen,
	H . Peter Anvin, Miguel Ojeda, Alex Gaynor, Wedson Almeida Filho
  Cc: David Rheinsberg, John Baublitz, Danilo Krummrich, x86,
	Boqun Feng, Gary Guo, Björn Roy Baron, Benno Lossin,
	Andreas Hindborg, Alice Ryhl, rust-for-linux,
	Sergio González Collado

The longest length of a symbol (KSYM_NAME_LEN) was increased to 512
in the reference [1]. This patch adds room for insn-encoding and a
symbol name, as proposed in [2]

[1] https://lore.kernel.org/lkml/20220802015052.10452-6-ojeda@kernel.org/
[2] https://lore.kernel.org/lkml/16641a56-9139-4396-a5a8-89606bedd1f1@app.fastmail.com/

Signed-off-by: Sergio González Collado <sergio.collado@gmail.com>
---
 arch/x86/tools/insn_decoder_test.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/arch/x86/tools/insn_decoder_test.c b/arch/x86/tools/insn_decoder_test.c
index 472540aeabc2..add51bfc2260 100644
--- a/arch/x86/tools/insn_decoder_test.c
+++ b/arch/x86/tools/insn_decoder_test.c
@@ -10,6 +10,7 @@
 #include <assert.h>
 #include <unistd.h>
 #include <stdarg.h>
+#include <linux/kallsym.h>
 
 #define unlikely(cond) (cond)
 
@@ -106,7 +107,7 @@ static void parse_args(int argc, char **argv)
 	}
 }
 
-#define BUFSIZE 256
+#define BUFSIZE (256 + KSYM_NAME_LEN)
 
 int main(int argc, char **argv)
 {
-- 
2.39.2


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2024-05-14 16:31 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-14 18:09 [PATCH] Add room for insn-enconding and symbol name Sergio González Collado
2024-05-08 11:58 ` Danilo Krummrich
2024-05-14 12:56   ` Danilo Krummrich
2024-05-14 13:01     ` Sergio González Collado
2024-05-14 16:31 ` Thomas Gleixner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).