aboutsummaryrefslogtreecommitdiffstats
path: root/features/perf/libbpf-Fix-build-warning-on-ref_ctr_off.patch
AgeCommit message (Collapse)Author
2023-03-17perf: refresh patch for 6.3Bruce Ashfield
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2022-12-05perf python: Account for multiple words in CCBruce Ashfield
1/3 [ Author: Khem Raj Email: raj.khem@gmail.com Subject: perf python: Account for multiple words in CC Date: Sun, 4 Dec 2022 18:06:52 -0800 Sometimes build systems may append options e.g. --sysroot etc. to CC variable especially in cross-compile environments like yocto project where CC varable is composed of cross-compiler name and some needed options for it to work in a relocatable environment. Therefore separate out the compiler name from rest of the options in CC, then add the options via second argument to Popen() API Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: Fangrui Song <maskray@google.com> Cc: Florian Fainelli <f.fainelli@gmail.com> Cc: Ian Rogers <irogers@google.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: John Keeping <john@metanate.com> Cc: Leo Yan <leo.yan@linaro.org> Cc: Michael Petlan <mpetlan@redhat.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Nathan Chancellor <nathan@kernel.org> Cc: Nick Desaulniers <ndesaulniers@google.com> Cc: Sedat Dilek <sedat.dilek@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com> ] 2/3 [ Author: Khem Raj Email: raj.khem@gmail.com Subject: libbpf: Fix build warning on ref_ctr_off Date: Sun, 4 Dec 2022 18:23:47 -0800 Clang warns on 32-bit ARM on this comparision libbpf.c:10497:18: error: result of comparison of constant 4294967296 with expression of type 'size_t' (aka 'unsigned int') is always false [-Werror,-Wtautological-constant-out-of-range-compare] if (ref_ctr_off >= (1ULL << PERF_UPROBE_REF_CTR_OFFSET_BITS)) ~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Check for platform long int to be larger than 32-bits before enabling this check, it false on 32bit anyways. Cc: Alexei Starovoitov <ast@kernel.org> Cc: Daniel Borkmann <daniel@iogearbox.net> Cc: Song Liu <song@kernel.org> Cc: Yonghong Song <yhs@fb.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Paul Walmsley <paul.walmsley@sifive.com> Cc: Palmer Dabbelt <palmer@dabbelt.com> Cc: Nathan Chancellor <nathan@kernel.org> Cc: Nick Desaulniers <ndesaulniers@google.com> Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com> ] 3/3 [ Author: Khem Raj Email: raj.khem@gmail.com Subject: tools: Remove some options from CLANG_CROSS_FLAGS Date: Sun, 4 Dec 2022 18:33:48 -0800 These options are not needed with OE/Yocto since compiler is already passing these options via TOOLCHAIN_OPTIONS, having these options infact regressed OE builds because build time --sysroot on OE cross compiler is /not/exist and that creates problems where clang can no more find system headers anymore during compilation Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com> ] Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>