Message ID | 20230315051500.13064-1-p4ranlee@gmail.com (mailing list archive) |
---|---|
State | Handled Elsewhere |
Headers | show |
Series | [v2] perf tools riscv: Add support for riscv lookup_binutils_path | expand |
Context | Check | Description |
---|---|---|
conchuod/cover_letter | success | Single patches do not need cover letters |
conchuod/tree_selection | success | Guessed tree name to be for-next |
conchuod/fixes_present | success | Fixes tag not required for -next series |
conchuod/maintainers_pattern | success | MAINTAINERS pattern errors before the patch: 1 and now 1 |
conchuod/verify_signedoff | success | Signed-off-by tag matches author and committer |
conchuod/kdoc | success | Errors and warnings before: 0 this patch: 0 |
conchuod/build_rv64_clang_allmodconfig | success | Errors and warnings before: 18 this patch: 18 |
conchuod/module_param | success | Was 0 now: 0 |
conchuod/build_rv64_gcc_allmodconfig | success | Errors and warnings before: 18 this patch: 18 |
conchuod/build_rv32_defconfig | success | Build OK |
conchuod/dtb_warn_rv64 | success | Errors and warnings before: 3 this patch: 3 |
conchuod/header_inline | success | No static functions without inline keyword in header files |
conchuod/checkpatch | success | total: 0 errors, 0 warnings, 0 checks, 30 lines checked |
conchuod/source_inline | success | Was 0 now: 0 |
conchuod/build_rv64_nommu_k210_defconfig | success | Build OK |
conchuod/verify_fixes | success | No Fixes tag |
conchuod/build_rv64_nommu_virt_defconfig | success | Build OK |
On Tue, Mar 14, 2023 at 10:15 PM Paran Lee <p4ranlee@gmail.com> wrote: > > Add RISC-V binutils path on lookup triplets. > > Signed-off-by: Paran Lee <p4ranlee@gmail.com> Acked-by: Ian Rogers <irogers@google.com> Thanks, Ian > --- > tools/perf/arch/common.c | 18 ++++++++++++++++++ > 1 file changed, 18 insertions(+) > > diff --git a/tools/perf/arch/common.c b/tools/perf/arch/common.c > index 59dd875fd5e4..e80d4d22cabf 100644 > --- a/tools/perf/arch/common.c > +++ b/tools/perf/arch/common.c > @@ -43,6 +43,20 @@ const char *const powerpc_triplets[] = { > NULL > }; > > +const char *const riscv32_triplets[] = { > + "riscv32-unknown-linux-gnu-", > + "riscv32-linux-android-", > + "riscv32-linux-gnu-", > + NULL > +}; > + > +const char *const riscv64_triplets[] = { > + "riscv64-unknown-linux-gnu-", > + "riscv64-linux-android-", > + "riscv64-linux-gnu-", > + NULL > +}; > + > const char *const s390_triplets[] = { > "s390-ibm-linux-", > "s390x-linux-gnu-", > @@ -166,6 +180,10 @@ static int perf_env__lookup_binutils_path(struct perf_env *env, > path_list = arm64_triplets; > else if (!strcmp(arch, "powerpc")) > path_list = powerpc_triplets; > + else if (!strcmp(arch, "riscv32")) > + path_list = riscv32_triplets; > + else if (!strcmp(arch, "riscv64")) > + path_list = riscv64_triplets; > else if (!strcmp(arch, "sh")) > path_list = sh_triplets; > else if (!strcmp(arch, "s390")) > -- > 2.34.1 >
On Tue, 14 Mar 2023 22:15:01 PDT (-0700), p4ranlee@gmail.com wrote: > Add RISC-V binutils path on lookup triplets. > > Signed-off-by: Paran Lee <p4ranlee@gmail.com> > --- > tools/perf/arch/common.c | 18 ++++++++++++++++++ > 1 file changed, 18 insertions(+) > > diff --git a/tools/perf/arch/common.c b/tools/perf/arch/common.c > index 59dd875fd5e4..e80d4d22cabf 100644 > --- a/tools/perf/arch/common.c > +++ b/tools/perf/arch/common.c > @@ -43,6 +43,20 @@ const char *const powerpc_triplets[] = { > NULL > }; > > +const char *const riscv32_triplets[] = { > + "riscv32-unknown-linux-gnu-", > + "riscv32-linux-android-", > + "riscv32-linux-gnu-", > + NULL > +}; > + > +const char *const riscv64_triplets[] = { > + "riscv64-unknown-linux-gnu-", > + "riscv64-linux-android-", > + "riscv64-linux-gnu-", > + NULL > +}; > + > const char *const s390_triplets[] = { > "s390-ibm-linux-", > "s390x-linux-gnu-", > @@ -166,6 +180,10 @@ static int perf_env__lookup_binutils_path(struct perf_env *env, > path_list = arm64_triplets; > else if (!strcmp(arch, "powerpc")) > path_list = powerpc_triplets; > + else if (!strcmp(arch, "riscv32")) > + path_list = riscv32_triplets; > + else if (!strcmp(arch, "riscv64")) > + path_list = riscv64_triplets; > else if (!strcmp(arch, "sh")) > path_list = sh_triplets; > else if (!strcmp(arch, "s390")) Reviewed-by: Palmer Dabbelt <palmer@rivosinc.com> Acked-by: Palmer Dabbelt <palmer@rivosinc.com>
Em Tue, Apr 18, 2023 at 08:41:21PM -0700, Palmer Dabbelt escreveu: > On Tue, 14 Mar 2023 22:15:01 PDT (-0700), p4ranlee@gmail.com wrote: > > Add RISC-V binutils path on lookup triplets. > > > > Signed-off-by: Paran Lee <p4ranlee@gmail.com> > > --- > > tools/perf/arch/common.c | 18 ++++++++++++++++++ > > 1 file changed, 18 insertions(+) > > > > diff --git a/tools/perf/arch/common.c b/tools/perf/arch/common.c > > index 59dd875fd5e4..e80d4d22cabf 100644 > > --- a/tools/perf/arch/common.c > > +++ b/tools/perf/arch/common.c > > @@ -43,6 +43,20 @@ const char *const powerpc_triplets[] = { > > NULL > > }; > > > > +const char *const riscv32_triplets[] = { > > + "riscv32-unknown-linux-gnu-", > > + "riscv32-linux-android-", > > + "riscv32-linux-gnu-", > > + NULL > > +}; > > + > > +const char *const riscv64_triplets[] = { > > + "riscv64-unknown-linux-gnu-", > > + "riscv64-linux-android-", > > + "riscv64-linux-gnu-", > > + NULL > > +}; > > + > > const char *const s390_triplets[] = { > > "s390-ibm-linux-", > > "s390x-linux-gnu-", > > @@ -166,6 +180,10 @@ static int perf_env__lookup_binutils_path(struct perf_env *env, > > path_list = arm64_triplets; > > else if (!strcmp(arch, "powerpc")) > > path_list = powerpc_triplets; > > + else if (!strcmp(arch, "riscv32")) > > + path_list = riscv32_triplets; > > + else if (!strcmp(arch, "riscv64")) > > + path_list = riscv64_triplets; > > else if (!strcmp(arch, "sh")) > > path_list = sh_triplets; > > else if (!strcmp(arch, "s390")) > > Reviewed-by: Palmer Dabbelt <palmer@rivosinc.com> > Acked-by: Palmer Dabbelt <palmer@rivosinc.com> Thanks, applied. - Arnaldo
diff --git a/tools/perf/arch/common.c b/tools/perf/arch/common.c index 59dd875fd5e4..e80d4d22cabf 100644 --- a/tools/perf/arch/common.c +++ b/tools/perf/arch/common.c @@ -43,6 +43,20 @@ const char *const powerpc_triplets[] = { NULL }; +const char *const riscv32_triplets[] = { + "riscv32-unknown-linux-gnu-", + "riscv32-linux-android-", + "riscv32-linux-gnu-", + NULL +}; + +const char *const riscv64_triplets[] = { + "riscv64-unknown-linux-gnu-", + "riscv64-linux-android-", + "riscv64-linux-gnu-", + NULL +}; + const char *const s390_triplets[] = { "s390-ibm-linux-", "s390x-linux-gnu-", @@ -166,6 +180,10 @@ static int perf_env__lookup_binutils_path(struct perf_env *env, path_list = arm64_triplets; else if (!strcmp(arch, "powerpc")) path_list = powerpc_triplets; + else if (!strcmp(arch, "riscv32")) + path_list = riscv32_triplets; + else if (!strcmp(arch, "riscv64")) + path_list = riscv64_triplets; else if (!strcmp(arch, "sh")) path_list = sh_triplets; else if (!strcmp(arch, "s390"))
Add RISC-V binutils path on lookup triplets. Signed-off-by: Paran Lee <p4ranlee@gmail.com> --- tools/perf/arch/common.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+)