From: Arnaldo Carvalho de Melo <acme@kernel.org>
To: Adrian Hunter <adrian.hunter@intel.com>
Cc: Jiri Olsa <jolsa@redhat.com>, Namhyung Kim <namhyung@kernel.org>,
Ian Rogers <irogers@google.com>,
linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org
Subject: Re: [PATCH 5/7] perf test: test_intel_pt.sh: Add jitdump test
Date: Fri, 14 Oct 2022 14:35:35 -0300 [thread overview]
Message-ID: <Y0md54O4FbjjKJn0@kernel.org> (raw)
In-Reply-To: <Y0mdc9V0uBdRPcYz@kernel.org>
Em Fri, Oct 14, 2022 at 02:33:39PM -0300, Arnaldo Carvalho de Melo escreveu:
> Em Fri, Oct 14, 2022 at 02:32:19PM -0300, Arnaldo Carvalho de Melo escreveu:
> > Em Fri, Oct 14, 2022 at 02:28:58PM -0300, Arnaldo Carvalho de Melo escreveu:
> > > Miscellaneous Intel PT testing: Ok
>
> > Actually:
>
> > --- Test tracing self-modifying code that uses jitdump ---
> > [ perf record: Woken up 1 times to write data ]
> > [ perf record: Captured and wrote 0.018 MB /tmp/perf-test-intel-pt-sh.GJoKOxGVFY/tmp-perf.data ]
> >
> > Warning:
> > 1 instruction trace errors
> > /home/acme/git/perf
> > Decode failed, 1 errors
> > Warning:
> > 1 instruction trace errors
> > instruction trace error type 1 time 494778.777081924 cpu 3 pid 309650 tid 309650 ip 0x7f0972f22009 code 5: Failed to get instruction
> > --- Cleaning up ---
> > --- Done ---
> > test child finished with -1
> > ---- end ----
> > Miscellaneous Intel PT testing: FAILED!
> > [root@quaco perf]#
> > [root@quaco perf]# pwd
> > /home/acme/git/perf
>
> I see... nevermind, this is what is expected, failing now, then the fix,
> then stops failing, nothing to see here, move along 8-)
Just for completeness sake, after the genelf.h fix:
[root@quaco perf]# perf test "Miscellaneous Intel PT testing"
110: Miscellaneous Intel PT testing : Ok
[root@quaco perf]# perf test -v "Miscellaneous Intel PT testing"
110: Miscellaneous Intel PT testing :
--- start ---
test child forked, pid 314597
--- Test system-wide sideband ---
Checking for CPU-wide recording on CPU 0
OK
Checking for CPU-wide recording on CPU 1
OK
Linux
[ perf record: Woken up 1 times to write data ]
[ perf record: Captured and wrote 1.189 MB /tmp/perf-test-intel-pt-sh.TRr45lCVrl/test-perf.data ]
OK
--- Test per-thread recording ---
Workload PIDs are 314619 and 314620
perf PID is 314631
Waiting for "perf record has started" message
OK
pid 314619 cpu -1 fd 5 : sys_perf_event_open: pid 314619 cpu -1 group_fd -1 flags 0x8 = 5
pid 314623 cpu -1 fd 6 : sys_perf_event_open: pid 314623 cpu -1 group_fd -1 flags 0x8 = 6
pid 314620 cpu -1 fd 7 : sys_perf_event_open: pid 314620 cpu -1 group_fd -1 flags 0x8 = 7
pid 314622 cpu -1 fd 8 : sys_perf_event_open: pid 314622 cpu -1 group_fd -1 flags 0x8 = 8
pid 314619 cpu -1 fd 9 : sys_perf_event_open: pid 314619 cpu -1 group_fd -1 flags 0x8 = 9
pid 314623 cpu -1 fd 10 : sys_perf_event_open: pid 314623 cpu -1 group_fd -1 flags 0x8 = 10
pid 314620 cpu -1 fd 11 : sys_perf_event_open: pid 314620 cpu -1 group_fd -1 flags 0x8 = 11
pid 314622 cpu -1 fd 12 : sys_perf_event_open: pid 314622 cpu -1 group_fd -1 flags 0x8 = 12
fd 5 : idx 0: mmapping fd 5
fd 9 fd_to 5 : idx 0: set output fd 9 -> 5
fd 6 : idx 1: mmapping fd 6
fd 10 fd_to 6 : idx 1: set output fd 10 -> 6
fd 7 : idx 2: mmapping fd 7
fd 11 fd_to 7 : idx 2: set output fd 11 -> 7
fd 8 : idx 3: mmapping fd 8
fd 12 fd_to 8 : idx 3: set output fd 12 -> 8
Checking 8 fds
OK
--- Test per-thread (incl. kernel) recording ---
Workload PIDs are 315355 and 315356
perf PID is 315367
Waiting for "perf record has started" message
OK
pid 315355 cpu -1 fd 5 : sys_perf_event_open: pid 315355 cpu -1 group_fd -1 flags 0x8 = 5
pid 315358 cpu -1 fd 6 : sys_perf_event_open: pid 315358 cpu -1 group_fd -1 flags 0x8 = 6
pid 315356 cpu -1 fd 7 : sys_perf_event_open: pid 315356 cpu -1 group_fd -1 flags 0x8 = 7
pid 315359 cpu -1 fd 8 : sys_perf_event_open: pid 315359 cpu -1 group_fd -1 flags 0x8 = 8
pid 315355 cpu -1 fd 9 : sys_perf_event_open: pid 315355 cpu -1 group_fd -1 flags 0x8 = 9
pid 315358 cpu -1 fd 10 : sys_perf_event_open: pid 315358 cpu -1 group_fd -1 flags 0x8 = 10
pid 315356 cpu -1 fd 11 : sys_perf_event_open: pid 315356 cpu -1 group_fd -1 flags 0x8 = 11
pid 315359 cpu -1 fd 12 : sys_perf_event_open: pid 315359 cpu -1 group_fd -1 flags 0x8 = 12
pid -1 cpu 0 fd 13 : sys_perf_event_open: pid -1 cpu 0 group_fd -1 flags 0x8 = 13
pid -1 cpu 1 fd 14 : sys_perf_event_open: pid -1 cpu 1 group_fd -1 flags 0x8 = 14
pid -1 cpu 2 fd 15 : sys_perf_event_open: pid -1 cpu 2 group_fd -1 flags 0x8 = 15
pid -1 cpu 3 fd 16 : sys_perf_event_open: pid -1 cpu 3 group_fd -1 flags 0x8 = 16
pid -1 cpu 4 fd 17 : sys_perf_event_open: pid -1 cpu 4 group_fd -1 flags 0x8 = 17
pid -1 cpu 5 fd 18 : sys_perf_event_open: pid -1 cpu 5 group_fd -1 flags 0x8 = 18
pid -1 cpu 6 fd 19 : sys_perf_event_open: pid -1 cpu 6 group_fd -1 flags 0x8 = 19
pid -1 cpu 7 fd 20 : sys_perf_event_open: pid -1 cpu 7 group_fd -1 flags 0x8 = 20
fd 5 : idx 0: mmapping fd 5
fd 9 fd_to 5 : idx 0: set output fd 9 -> 5
fd 6 : idx 1: mmapping fd 6
fd 10 fd_to 6 : idx 1: set output fd 10 -> 6
fd 7 : idx 2: mmapping fd 7
fd 11 fd_to 7 : idx 2: set output fd 11 -> 7
fd 8 : idx 3: mmapping fd 8
fd 12 fd_to 8 : idx 3: set output fd 12 -> 8
fd 13 : idx 4: mmapping fd 13
fd 14 : idx 5: mmapping fd 14
fd 15 : idx 6: mmapping fd 15
fd 16 : idx 7: mmapping fd 16
fd 17 : idx 8: mmapping fd 17
fd 18 : idx 9: mmapping fd 18
fd 19 : idx 10: mmapping fd 19
fd 20 : idx 11: mmapping fd 20
Checking 16 fds
OK
--- Test tracing self-modifying code that uses jitdump ---
[ perf record: Woken up 1 times to write data ]
[ perf record: Captured and wrote 0.021 MB /tmp/perf-test-intel-pt-sh.TRr45lCVrl/tmp-perf.data ]
/home/acme/git/perf
OK
--- Cleaning up ---
--- Done ---
test child finished with 0
---- end ----
Miscellaneous Intel PT testing: Ok
[root@quaco perf]#
next prev parent reply other threads:[~2022-10-14 17:35 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-14 17:08 [PATCH 0/7] perf intel-pt: jitdump fix and test Adrian Hunter
2022-10-14 17:08 ` [PATCH 1/7] perf test: test_intel_pt.sh: Fix return checking again Adrian Hunter
2022-10-14 17:09 ` [PATCH 2/7] perf test: test_intel_pt.sh: Tidy some perf record options Adrian Hunter
2022-10-14 17:09 ` [PATCH 3/7] perf test: test_intel_pt.sh: Print a message when skipping kernel tracing Adrian Hunter
2022-10-14 17:09 ` [PATCH 4/7] perf test: test_intel_pt.sh: Tidy some alignment Adrian Hunter
2022-10-14 17:09 ` [PATCH 5/7] perf test: test_intel_pt.sh: Add jitdump test Adrian Hunter
2022-10-14 17:28 ` Arnaldo Carvalho de Melo
2022-10-14 17:32 ` Arnaldo Carvalho de Melo
2022-10-14 17:33 ` Arnaldo Carvalho de Melo
2022-10-14 17:35 ` Arnaldo Carvalho de Melo [this message]
2022-10-17 12:57 ` Adrian Hunter
2022-10-17 13:44 ` Arnaldo Carvalho de Melo
2022-10-17 9:35 ` Adrian Hunter
2022-10-14 17:09 ` [PATCH 6/7] perf inject: Fix GEN_ELF_TEXT_OFFSET for jit Adrian Hunter
2022-10-14 17:09 ` [PATCH 7/7] perf test: test_intel_pt.sh: Add 9 tests Adrian Hunter
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Y0md54O4FbjjKJn0@kernel.org \
--to=acme@kernel.org \
--cc=adrian.hunter@intel.com \
--cc=irogers@google.com \
--cc=jolsa@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-perf-users@vger.kernel.org \
--cc=namhyung@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.