From bff910ebfc4f06dbccd8b007d2a4001f07195615 Mon Sep 17 00:00:00 2001 From: Gichoel Choi Date: Fri, 18 Aug 2023 23:51:08 +0900 Subject: [PATCH] arch: Update 'cmds/record.c' As part of the work to support the riscv64 architecture, a check to see if a machine is supported was causing an 'Unsupported machine ...' error when running in a risc-v environment. This error occured as part of our work to support RISC-V, and we have updated the code to include it in the list of supported machines. Signed-off-by: Gichoel Choi --- cmds/record.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmds/record.c b/cmds/record.c index ec40ca179..959042b52 100644 --- a/cmds/record.c +++ b/cmds/record.c @@ -1589,7 +1589,7 @@ static void check_binary(struct uftrace_opts *opts) static char altname[PATH_MAX]; // for opts->exename to be persistent uint16_t e_type; uint16_t e_machine; - uint16_t supported_machines[] = { EM_X86_64, EM_ARM, EM_AARCH64, EM_386 }; + uint16_t supported_machines[] = { EM_X86_64, EM_ARM, EM_AARCH64, EM_386, EM_RISCV }; again: /* if it cannot be found in PATH, then fails inside */