diff options
author | Ingo Molnar <mingo@kernel.org> | 2019-01-03 08:05:16 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2019-01-03 08:05:16 -0500 |
commit | 2573be22e5b6f24a0cabc97715c808c47e29eaaf (patch) | |
tree | d00e6cc4c2718c0122fc1a7bbd804864037deae0 /tools/perf/util/session.c | |
parent | 6d101ba6be2a26a3e1f513b5e293f0fd2b79ec5c (diff) | |
parent | b25756df5b28cd7b6e91200fc5012e7c76e8ec69 (diff) |
Merge tag 'perf-core-for-mingo-4.21-20190103' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux into perf/urgent
Pull perf/core improvements and fixes from Arnaldo Carvalho de Melo:
perf c2c:
Jiri Olsa:
- Change the default coalesce setup to from '--coalesce pid,iaddr' to just '--coalesce iaddr'.
- Increase the HITM ratio limit for displayed cachelines.
perf script:
Andi Kleen:
- Fix LBR skid dump problems in brstackinsn.
perf trace:
Arnaldo Carvalho de Melo:
- Check if the raw_syscalls:sys_{enter,exit} are setup before setting tp filter.
- Do not hardcode the size of the tracepoint common_ fields.
- Beautify USBDEFFS_ ioctl commands.
Colin Ian King:
- Use correct SECCOMP prefix spelling, "SECOMP_*" -> "SECCOMP_*".
perf python:
Jiri Olsa:
- Do not force closing original perf descriptor in evlist.get_pollfd().
tools misc:
Jiri Olsa:
- Allow overriding CFLAGS and LDFLAGS.
perf build:
Stanislav Fomichev:
- Don't unconditionally link the libbfd feature test to -liberty and -lz
thread-stack:
Adrian Hunter:
- Fix processing for the idle task, having a stack per cpu.
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'tools/perf/util/session.c')
-rw-r--r-- | tools/perf/util/session.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/perf/util/session.c b/tools/perf/util/session.c index 78a067777144..5456c84c7dd1 100644 --- a/tools/perf/util/session.c +++ b/tools/perf/util/session.c | |||
@@ -1527,6 +1527,13 @@ struct thread *perf_session__findnew(struct perf_session *session, pid_t pid) | |||
1527 | return machine__findnew_thread(&session->machines.host, -1, pid); | 1527 | return machine__findnew_thread(&session->machines.host, -1, pid); |
1528 | } | 1528 | } |
1529 | 1529 | ||
1530 | /* | ||
1531 | * Threads are identified by pid and tid, and the idle task has pid == tid == 0. | ||
1532 | * So here a single thread is created for that, but actually there is a separate | ||
1533 | * idle task per cpu, so there should be one 'struct thread' per cpu, but there | ||
1534 | * is only 1. That causes problems for some tools, requiring workarounds. For | ||
1535 | * example get_idle_thread() in builtin-sched.c, or thread_stack__per_cpu(). | ||
1536 | */ | ||
1530 | int perf_session__register_idle_thread(struct perf_session *session) | 1537 | int perf_session__register_idle_thread(struct perf_session *session) |
1531 | { | 1538 | { |
1532 | struct thread *thread; | 1539 | struct thread *thread; |