kernel_samsung_a53x/tools/perf
Ian Rogers 721bd8bf91 perf time-utils: Fix 32-bit nsec parsing
[ Upstream commit 38e2648a81204c9fc5b4c87a8ffce93a6ed91b65 ]

The "time utils" test fails in 32-bit builds:
  ...
  parse_nsec_time("18446744073.709551615")
  Failed. ptime 4294967295709551615 expected 18446744073709551615
  ...

Switch strtoul to strtoull as an unsigned long in 32-bit build isn't
64-bits.

Fixes: c284d669a20d408b ("perf tools: Move parse_nsec_time to time-utils.c")
Signed-off-by: Ian Rogers <irogers@google.com>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Athira Rajeev <atrajeev@linux.vnet.ibm.com>
Cc: Chaitanya S Prakash <chaitanyas.prakash@arm.com>
Cc: Colin Ian King <colin.i.king@gmail.com>
Cc: David Ahern <dsa@cumulusnetworks.com>
Cc: Dominique Martinet <asmadeus@codewreck.org>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: James Clark <james.clark@linaro.org>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: John Garry <john.g.garry@oracle.com>
Cc: Junhao He <hejunhao3@huawei.com>
Cc: Kan Liang <kan.liang@linux.intel.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Masami Hiramatsu <mhiramat@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Yang Jihong <yangjihong@bytedance.com>
Link: https://lore.kernel.org/r/20240831070415.506194-3-irogers@google.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-23 23:21:24 +01:00
..
arch Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
bench Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Documentation Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
examples/bpf Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
include/bpf Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
jvmti Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pmu-events Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
python Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
scripts Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
tests Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
trace Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ui Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
util perf time-utils: Fix 32-bit nsec parsing 2024-11-23 23:21:24 +01:00
Build Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
builtin-annotate.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
builtin-bench.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
builtin-buildid-cache.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
builtin-buildid-list.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
builtin-c2c.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
builtin-config.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
builtin-data.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
builtin-diff.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
builtin-evlist.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
builtin-ftrace.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
builtin-help.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
builtin-inject.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
builtin-kallsyms.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
builtin-kmem.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
builtin-kvm.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
builtin-list.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
builtin-lock.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
builtin-mem.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
builtin-probe.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
builtin-record.c perf record: Fix possible incorrect free in record__switch_output() 2024-11-19 08:44:51 +01:00
builtin-report.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
builtin-sched.c perf sched timehist: Fixed timestamp error when unable to confirm event sched_in time 2024-11-23 23:21:24 +01:00
builtin-script.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
builtin-stat.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
builtin-timechart.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
builtin-top.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
builtin-trace.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
builtin-version.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
builtin.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
check-headers.sh Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
command-list.txt Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
CREDITS Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
design.txt Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile.config Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile.perf Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
MANIFEST Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
perf-archive.sh Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
perf-completion.sh Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
perf-read-vdso.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
perf-sys.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
perf-with-kcore.sh Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
perf.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
perf.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00