mirror of
https://github.com/torvalds/linux.git
synced 2026-07-27 09:36:22 +02:00
perf c2c: Use perf_env e_machine rather than arch
Use the e_machine rather than arch string matching for AARCH64. Add include of dwarf-regs.h in case the EM_AARCH64 isn't defined, sort the headers given this include. Signed-off-by: Ian Rogers <irogers@google.com> Acked-by: Namhyung Kim <namhyung@kernel.org> Cc: Alexander Gordeev <agordeev@linux.ibm.com> Cc: Heiko Carstens <hca@linux.ibm.com> Cc: Honglei Wang <jameshongleiwang@126.com> Cc: Jan Polensky <japo@linux.ibm.com> Cc: Sumanth Korikkar <sumanthk@linux.ibm.com> Cc: Thomas Richter <tmricht@linux.ibm.com> Cc: Vasily Gorbik <gor@linux.ibm.com> Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
parent
5d57371b9c
commit
70b3c4f734
|
|
@ -12,41 +12,45 @@
|
|||
*/
|
||||
#include <errno.h>
|
||||
#include <inttypes.h>
|
||||
|
||||
#include <asm/bug.h>
|
||||
#include <linux/compiler.h>
|
||||
#include <linux/err.h>
|
||||
#include <linux/kernel.h>
|
||||
#include <linux/stringify.h>
|
||||
#include <linux/zalloc.h>
|
||||
#include <asm/bug.h>
|
||||
#include <sys/param.h>
|
||||
#include "debug.h"
|
||||
#include "builtin.h"
|
||||
|
||||
#include <dwarf-regs.h>
|
||||
#include <perf/cpumap.h>
|
||||
#include <subcmd/pager.h>
|
||||
#include <subcmd/parse-options.h>
|
||||
#include "map_symbol.h"
|
||||
#include "mem-events.h"
|
||||
#include "session.h"
|
||||
#include "hist.h"
|
||||
#include "sort.h"
|
||||
#include "tool.h"
|
||||
|
||||
#include "builtin.h"
|
||||
#include "cacheline.h"
|
||||
#include "data.h"
|
||||
#include "debug.h"
|
||||
#include "event.h"
|
||||
#include "evlist.h"
|
||||
#include "evsel.h"
|
||||
#include "ui/browsers/hists.h"
|
||||
#include "thread.h"
|
||||
#include "mem2node.h"
|
||||
#include "hist.h"
|
||||
#include "map_symbol.h"
|
||||
#include "mem-events.h"
|
||||
#include "mem-info.h"
|
||||
#include "symbol.h"
|
||||
#include "ui/ui.h"
|
||||
#include "ui/progress.h"
|
||||
#include "mem2node.h"
|
||||
#include "pmus.h"
|
||||
#include "session.h"
|
||||
#include "sort.h"
|
||||
#include "string2.h"
|
||||
#include "util/util.h"
|
||||
#include "util/symbol.h"
|
||||
#include "symbol.h"
|
||||
#include "thread.h"
|
||||
#include "tool.h"
|
||||
#include "ui/browsers/hists.h"
|
||||
#include "ui/progress.h"
|
||||
#include "ui/ui.h"
|
||||
#include "util/annotate.h"
|
||||
#include "util/symbol.h"
|
||||
#include "util/util.h"
|
||||
|
||||
struct c2c_hists {
|
||||
struct hists hists;
|
||||
|
|
@ -3203,7 +3207,7 @@ static int perf_c2c__report(int argc, const char **argv)
|
|||
* default display type.
|
||||
*/
|
||||
if (!display) {
|
||||
if (!strcmp(perf_env__arch(env), "arm64"))
|
||||
if (perf_env__e_machine(env, /*e_flags=*/NULL) == EM_AARCH64)
|
||||
display = "peer";
|
||||
else
|
||||
display = "tot";
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user