Skip to content

Commit

Permalink
arch: Update 'cmds/record.c'
Browse files Browse the repository at this point in the history
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 <gichoel3101@gmail.com>
  • Loading branch information
gichoel committed Aug 22, 2023
1 parent 9449520 commit bff910e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmds/record.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit bff910e

Please sign in to comment.