linux-stable/tools
Arnaldo Carvalho de Melo b5f63ab875 perf bench: Add missing setlocale() call to allow usage of %'d style formatting
[ Upstream commit 16203e9cd0 ]

Without this we were not getting the thousands separator for big
numbers.

Noticed while developing 'perf bench uprobe', but the use of %' predates
that, for instance 'perf bench syscall' uses it.

Before:

  # perf bench uprobe all
  # Running uprobe/baseline benchmark...
  # Executed 1000 usleep(1000) calls
       Total time: 1054082243ns

   1054082.243000 nsecs/op

  #

After:

  # perf bench uprobe all
  # Running uprobe/baseline benchmark...
  # Executed 1,000 usleep(1000) calls
       Total time: 1,053,715,144ns

   1,053,715.144000 nsecs/op

  #

Fixes: c2a0820305 ("perf bench: Add basic syscall benchmark")
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Andre Fredette <anfredet@redhat.com>
Cc: Clark Williams <williams@redhat.com>
Cc: Dave Tucker <datucker@redhat.com>
Cc: Davidlohr Bueso <dave@stgolabs.net>
Cc: Derek Barbosa <debarbos@redhat.com>
Cc: Ian Rogers <irogers@google.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Tiezhu Yang <yangtiezhu@loongson.cn>
Link: https://lore.kernel.org/lkml/ZH3lcepZ4tBYr1jv@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-07-11 19:39:46 +02:00
..
accounting
arch tools/x86/kcpuid: Fix avx512bw and avx512lvl fields in Fn00000007 2023-05-11 23:16:58 +09:00
bootconfig bootconfig: Fix testcase to increase max node 2023-03-22 01:00:28 +09:00
bpf tools/resolve_btfids: Fix setting HOSTCFLAGS 2023-07-11 19:39:28 +02:00
build tools build: Add test echo-cmd 2023-02-03 13:54:22 -03:00
certs
cgroup tools:cgroup:memcg_shrinker remove redundant import 2023-01-18 17:12:59 -08:00
counter
debugging
edid
firewire
firmware
gpio tools: gpio: fix debounce_period_us output of lsgpio 2023-06-21 16:02:05 +02:00
hv
iio tools/iio/iio_utils:fix memory leak 2023-01-21 17:52:26 +00:00
include open: return EINVAL for O_DIRECTORY | O_CREAT 2023-05-24 17:30:00 +01:00
io_uring
kvm/kvm_stat
laptop
leds
lib libbpf: fix offsetof() and container_of() to work with CO-RE 2023-07-11 19:39:27 +02:00
memory-model
mm tools/mm/page_owner_sort.c: fix TGID output when cull=tg is used 2023-04-16 10:41:25 -07:00
net/ynl tools: ynl: Fix genlmsg header encoding formats 2023-03-22 20:40:04 -07:00
objtool Revert "objtool: Support addition to set CFA base" 2023-05-11 23:17:29 +09:00
pci
pcmcia
perf perf bench: Add missing setlocale() call to allow usage of %'d style formatting 2023-07-11 19:39:46 +02:00
power cpupower:Fix resource leaks in sysfs_get_enabled() 2023-06-09 10:48:02 +02:00
rcu
scripts tools: Add LoongArch build infrastructure 2023-02-25 22:12:18 +08:00
spi
testing selftests: rtnetlink: remove netdevsim device after ipsec offload test 2023-07-11 19:39:31 +02:00
thermal
time
tracing rtla/timerlat: Fix "Previous IRQ" auto analysis' line 2023-05-11 23:17:29 +09:00
usb
verification rv: Fix addition on an uninitialized variable 'run' 2023-05-11 23:17:29 +09:00
virtio tools/virtio: Fix arm64 ringtest compilation error 2023-06-28 11:14:23 +02:00
wmi
Makefile tools/Makefile: do missed s/vm/mm/ 2023-04-18 14:22:12 -07:00