tracing page_faults with lttng?
A message that is not in the archive (sent off-list or not yet received): 1807360.trHWC9KRqs@milian-kdab2
Hi Milian,
Are you running on an x86 processor?
The pagefault tracepoints are called : x86_exceptions_page_fault_user, x86_exceptions_page_fault_kernel
Can you see those tracepoints when you run: lttng list --kernel
Thank you,
Francis
2017-05-24 12:00 GMT-04:00 Milian Wolff <[email protected]>:
Quoted 39 lines
Hey all,
when I trace with perf, I can see
page_faultsoccurring. But when I do something like the following with lttng:lttng create
lttng enable-channel kernel -k
lttng enable-event -c kernel -k -a
lttng start# trigger page faults lttng stopthen I do not see any page faults in tracecompass/babeltrace. What do I need
to do to see those too? I'm aware that lttng comes with its own set of tracepoints - i.e. it's not using the same tracepoints that perf knows about.
But googling shows me e.g. this:https://lists.lttng.org/pipermail/lttng-dev/2013-April/019954.html
https://lists.lttng.org/pipermail/lttng-dev/2016-May/026033.htmlWhich sounds like the feature should be available in lttng too?
I'm using the ArchLinux packages in AUR, i.e. version 2.9.2 of LTTng and kernel 4.10.13-1.
Thanks
--
Milian Wolff | [email protected] | Software Engineer KDAB (Deutschland) GmbH&Co KG, a KDAB Group company
Tel: +49-30-521325470
KDAB - The Qt Experts
_______________________________________________
lttng-dev mailing list [email protected]
https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
Signature · 3 lines
Francis Deslauriers Software developer EfficiOS inc.
_______________________________________________
lttng-dev mailing list
[email protected]
https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
A message that is not in the archive (sent off-list or not yet received): CADcCL0i-gZHviy_QZq_Krj_2zXiYvF-Z8BLu-3uQyA0anBfO-g@mail.gmail.com
Quoted 2 lines · CEST Francis Deslauriers
Hi Milian,
Are you running on an x86 processor?
Yes, Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz.
Quoted 3 lines
The pagefault tracepoints are called :
x86_exceptions_page_fault_user,x86_exceptions_page_fault_kernel
Can you see those tracepoints when you run: lttng list --kernel
Yes:
$ lttng list --kernel | grep fault
x86_exceptions_page_fault_user (loglevel: TRACE_EMERG (0)) (type:
tracepoint)
x86_exceptions_page_fault_kernel (loglevel: TRACE_EMERG (0)) (type:
tracepoint)
kvm_async_pf_doublefault (loglevel: TRACE_EMERG (0)) (type: tracepoint)I just reran my test and this time I only selectively enabled the fault tracepoints. This worked. Maybe my other test was triggering too many events, leading to the fault events being discarded. I only looked at lttng view and potentially missed the output warning that events where discarded. Odd, sorry for the noise!
One more question though: Also, when I look at the above - can I find more information about the exact definition of these two tracepoints as used by LTTng? How do they compare to the in-kernel tracepoints available via perf?
$ perf list fault
List of pre-defined events (to be used in -e):
alignment-faults [Software event] emulation-faults [Software event] major-faults [Software event] minor-faults [Software event] page-faults OR faults [Software event]
...
exceptions:page_fault_kernel [Tracepoint event]
exceptions:page_fault_user [Tracepoint event]
...
$ perf stat -e faults,major-faults,minor-faults \
-e exceptions:page_fault_kernel,exceptions:page_fault_user \
find /tmp > /dev/null
Performance counter stats for 'find /tmp': 96 faults
1 major-faults
95 minor-faults
4 exceptions:page_fault_kernel
92 exceptions:page_fault_user I assume that LTTng wraps the lower two tracepoint events. Can I use the error codes to translate the events into the more familiar minor/major category? Looking at http://elixir.free-electrons.com/linux/latest/ident/x86_pf_error_code doesn't make me believe I can use that easily? And the perf stat output above also makes me believe that fault_user vs. fault_kernel isn't what I'm looking for either?
Thanks
Quoted 38 lines
2017-05-24 12:00 GMT-04:00 Milian Wolff <[email protected]>:
Quoted 37 lines
Hey all,
when I trace with perf, I can see
page_faultsoccurring. But when I do something like the following with lttng:lttng create
lttng enable-channel kernel -k
lttng enable-event -c kernel -k -a
lttng start# trigger page faults lttng stopthen I do not see any page faults in tracecompass/babeltrace. What do I need
to do to see those too? I'm aware that lttng comes with its own set of tracepoints - i.e. it's not using the same tracepoints that perf knows about.
But googling shows me e.g. this:https://lists.lttng.org/pipermail/lttng-dev/2013-April/019954.html
https://lists.lttng.org/pipermail/lttng-dev/2016-May/026033.htmlWhich sounds like the feature should be available in lttng too?
I'm using the ArchLinux packages in AUR, i.e. version 2.9.2 of LTTng and kernel 4.10.13-1.
Thanks
--
Milian Wolff | [email protected] | Software Engineer KDAB (Deutschland) GmbH&Co KG, a KDAB Group company
Tel: +49-30-521325470
KDAB - The Qt Experts
_______________________________________________
lttng-dev mailing list [email protected]
https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
Signature · 4 lines
Milian Wolff | [email protected] | Software Engineer KDAB (Deutschland) GmbH&Co KG, a KDAB Group company Tel: +49-30-521325470 KDAB - The Qt Experts
_______________________________________________
lttng-dev mailing list
[email protected]
https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
A message that is not in the archive (sent off-list or not yet received): 2312247.5OrstNElbn@milian-kdab2
Quoted 12 lines · On Montag, 29. Mai 2017 10:44:50 CEST Milian Wolff wrote:
Quoted 2 lines · CEST Francis Deslauriers
Hi Milian,
Are you running on an x86 processor?Yes, Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz.
Quoted 3 lines
The pagefault tracepoints are called :
x86_exceptions_page_fault_user,x86_exceptions_page_fault_kernel
Can you see those tracepoints when you run: lttng list --kernelYes:
Quoted 7 lines
$ lttng list --kernel | grep fault
x86_exceptions_page_fault_user (loglevel: TRACE_EMERG (0)) (type:
tracepoint)
x86_exceptions_page_fault_kernel (loglevel: TRACE_EMERG (0)) (type:
tracepoint)
kvm_async_pf_doublefault (loglevel: TRACE_EMERG (0)) (type:
tracepoint)Hey there,
a follow up to the above question: What about tracing page faults on ARM? Perf can do that, but I see no page_fault trace points in the output of lttng list -k?
Thanks
Signature · 4 lines
Milian Wolff | [email protected] | Senior Software Engineer KDAB (Deutschland) GmbH, a KDAB Group company Tel: +49-30-521325470 KDAB - The Qt, C++ and OpenGL Experts
_______________________________________________
lttng-dev mailing list
[email protected]
https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
A message that is not in the archive (sent off-list or not yet received): 3174598.JndGstr8t1@agathebauer
Quoted 21 lines · On Samstag, 12. Oktober 2019 23:31:51 CET Milian Wolff via lttng-dev wrote:
Quoted 20 lines · On Montag, 29. Mai 2017 10:44:50 CEST Milian Wolff wrote:
Quoted 2 lines · CEST Francis Deslauriers
Hi Milian,
Are you running on an x86 processor?Yes, Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz.
Quoted 3 lines
The pagefault tracepoints are called :
x86_exceptions_page_fault_user,x86_exceptions_page_fault_kernel
Can you see those tracepoints when you run: lttng list --kernelYes:
$ lttng list --kernel | grep fault
x86_exceptions_page_fault_user(loglevel:TRACE_EMERG(0)) (type:
tracepoint)
x86_exceptions_page_fault_kernel(loglevel:TRACE_EMERG(0)) (type:
tracepoint)
Quoted 8 lines
Quoted 2 lines
kvm_async_pf_doublefault(loglevel:TRACE_EMERG(0)) (type:
tracepoint)Hey there,
a follow up to the above question: What about tracing page faults on ARM? Perf can do that, but I see no
page_faulttrace points in the output oflttng list -k?
ping?
Signature · 4 lines
Milian Wolff | [email protected] | Senior Software Engineer KDAB (Deutschland) GmbH, a KDAB Group company Tel: +49-30-521325470 KDAB - The Qt, C++ and OpenGL Experts
_______________________________________________
lttng-dev mailing list
[email protected]
https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
A message that is not in the archive (sent off-list or not yet received): 5848055.rMpeChdSCL@agathebauer
Quoted 26 lines · Milian Wolff via lttng-dev
Quoted 24 lines · On Samstag, 12. Oktober 2019 23:31:51 CET Milian Wolff via lttng-dev wrote:
Quoted 22 lines · On Montag, 29. Mai 2017 10:44:50 CEST Milian Wolff wrote:
Quoted 2 lines · CEST Francis Deslauriers
Hi Milian,
Are you running on an x86 processor?Yes, Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz.
Quoted 3 lines
The pagefault tracepoints are called :
x86_exceptions_page_fault_user,x86_exceptions_page_fault_kernel
Can you see those tracepoints when you run: lttng list --kernelYes:
$ lttng list --kernel | grep fault
x86_exceptions_page_fault_user(loglevel:TRACE_EMERG(0)) (type:
tracepoint)
x86_exceptions_page_fault_kernel(loglevel:TRACE_EMERG(0)) (type:
tracepoint)
kvm_async_pf_doublefault(loglevel:TRACE_EMERG(0)) (type:
tracepoint)
Quoted 7 lines
Quoted 5 lines
Hey there,
a follow up to the above question: What about tracing page faults on ARM? Perf can do that, but I see no
page_faulttrace points in the output oflttng list -k?ping?
Hi Milian,
I believe that the page fault event you see with Perf is a perf event, not a trace event. What is the name of the event you see exactly? In order to trace the page faults on Arm with LTTng, we will need to add trace event tracepoints to the do_page_fault() functions in the arm (or arm64) architecture of the kernel.
Francis
Quoted 9 lines
--
Milian Wolff | [email protected] | Senior Software Engineer
KDAB (Deutschland) GmbH, a KDAB Group company
Tel: +49-30-521325470
KDAB - The Qt, C++ and OpenGLExperts_______________________________________________lttng-dev mailing list
[email protected]
https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
Signature · 7 lines
Francis Deslauriers Computer Engineer EfficiOS inc. _______________________________________________ lttng-dev mailing list [email protected] https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev