All of lore.kernel.org
 help / color / mirror / Atom feed
From: Nicholas Sadjoli <nick.sadjoli@gmail.com>
To: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Cc: lttng-dev <lttng-dev@lists.lttng.org>,
	Tom Zanussi <tom.zanussi@linux.intel.com>,
	linux-rt-users <linux-rt-users@vger.kernel.org>,
	rostedt <rostedt@goodmis.org>,
	dev-raspberry-pi@lists.mozilla.org
Subject: Re: Problems setting up lttng on PREEMPT_RT Raspberry Pi
Date: Wed, 17 Apr 2019 03:05:57 +0800	[thread overview]
Message-ID: <CAKUXLvcs+dCUn1-LqGRpL2AAH6SamOLob2kUcOZRfeuC=-TmKQ__38856.1363144376$1555441587$gmane$org@mail.gmail.com> (raw)
In-Reply-To: <CAKUXLveyWXTsh6vG0V-isbj2YptT_r8vtMuUF-V2Aysb9SRBKg@mail.gmail.com>


[-- Attachment #1.1: Type: text/plain, Size: 6149 bytes --]

Dear Mathieu,

Apoplogies but please ignore my previous email as it wasn't properly
finished.

Thank you so much for your reply Mathieu! I have actually asked about this
to the raspberry pi github forum, but unfortunately it seems that I have
not gotten any reply from them on this matter yet. I'll be asking about how
to turn off the CONFIG_OPTPROBES from them again if that's the case.

If this still fails then I'll be trying out Tom Zanussi's upstream version
of the kernel as you suggested then.

Thank you so much for your help once again and keep up the nice support
that you have for lttng!


Best Regards,


Nicholas Sadjoli

On Wed, Apr 17, 2019 at 3:04 AM Nicholas Sadjoli <nick.sadjoli@gmail.com>
wrote:

> Dear Mathieu,
>
> Thank you so much for your reply Mathieu! I have actually asked about this
> to the raspberry pi github forum, but unfortunately it seems that I have
> not gotten any reply from them on this matter yet. I'll be asking about how
> to turn off the CONFIG_OPTPROBES from them again if that's the case.
>
> If this still fails then I'll be trying out Tom Zanussi's upstream version
> of the kernel as you suggested then. Thank you so much for your help once
> again
>
> On Mon, Apr 15, 2019 at 10:11 PM Mathieu Desnoyers <
> mathieu.desnoyers@efficios.com> wrote:
>
>> ----- On Apr 15, 2019, at 7:07 AM, Nicholas Sadjoli <
>> nick.sadjoli@gmail.com> wrote:
>>
>> Dear Lttng dev Team,
>> I am currently interested in using lttng to measure the interrupt or
>> hardware real-time latencies experienced within my user-space applications.
>> Unfortunately I have been having issues installing lttng on my Raspberry Pi
>> that is using the PREEMPT_RT patched kernel, version 4.14.91-rt49-v7+.
>> The problems so far can be seen documented in the RPi Linux github forum
>> page here: https://github.com/raspberrypi/linux/issues/2930
>>
>> Initially I was about to just install the Debian package of the lttng
>> onto the RPi, and just proceeded with the commands 'sudo apt-get install
>> lttng-modules-dkms liblttng-ust-dev lttng-tools' However, I was unable
>> to use lttng package at all and found out that for the RPi, a build from
>> source is necessary for lttng, as described here:
>> https://stackoverflow.com/questions/52386448/linux-trace-tool-lttng-on-raspbian-kernel-tracer-not-available
>>
>> Following their suggestion, I then tried to build the lttng packages from
>> source, and even re-building the RPi kernel locally to ensure the kernel
>> headers are in the RPi and linked up properly to the source packages.
>>
>> Unfortunately when I tried to do this for the lttng-modules package, it
>> instead gave me the following warning in my latest attempt:
>>
>> In file included from
>> /home/pi/BangEco_rvmscan/stagelight_project/lttng/lttng-modules/probes/lttng-kprobes.c:31:0:
>> /home/pi/BangEco_rvmscan/stagelight_project/lttng/lttng-modules/probes/../blacklist/kprobes.h:19:4:
>> error: #error "Your kernel is known to have buggy optimized kprobes
>> implementation. Fixed by commit 0ac569bf6a7983c0c5747d6df8db9dc05bc92b6c
>> \"ARM: 8834/1: Fix: kprobes: optimized kprobes illegal instruction\" in
>> Linux. Disable CONFIG_OPTPROBES or upgrade your kernel."
>>  #  error "Your kernel is known to have buggy optimized kprobes
>> implementation. Fixed by commit 0ac569bf6a7983c0c5747d6df8db9dc05bc92b6c
>> \"ARM: 8834/1: Fix: kprobes: optimized kprobes illegal instruction\" in
>> Linux. Disable CONFIG_OPTPROBES or upgrade your kernel."
>>
>> I then tried to turn off the CONFIG_OPTPROBES kernel config, but it
>> seemed to be automatically overwritten during kernel building and is
>> considered an important part of the real-time RPi kernels. Has such
>> problems been reported with this version of the PREEMPT_RT kernel in the
>> past (again, the current kernel version that I am using is 4.14.91-rt49-v7+)?
>> If there are I would like to know how this issue was resolved so that I can
>> properly build and use the lttng package for my project.
>>
>> Hi Nicholas,
>>
>> It looks like our lttng-modules kernel version blacklist is acting
>> exactly as it should. Looking at this
>> git tree:
>>
>> git clone https://github.com/raspberrypi/linux.git -b rpi-4.14.y-rt
>>
>> I notice that in the git log, we find this bogus commit:
>>
>> commit f9e0bc710347fadad55910846ee36f0681d0dca8
>> Author: Kees Cook <keescook@chromium.org>
>> Date:   Tue Oct 30 22:12:56 2018 +0100
>>
>>     ARM: 8806/1: kprobes: Fix false positive with FORTIFY_SOURCE
>>
>>     commit e46daee53bb50bde38805f1823a182979724c229 upstream.
>>
>> But not the fix for it (upstream):
>>
>> commit 0ac569bf6a7983c0c5747d6df8db9dc05bc92b6c
>> Author: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
>> Date:   Tue Feb 5 16:37:40 2019 +0100
>>
>>     ARM: 8834/1: Fix: kprobes: optimized kprobes illegal instruction
>>
>> So lttng-modules refuses to build against your kernel configuration with
>> CONFIG_OPTPROBES=y
>> to save you the trouble of having kprobes trigger illegal instruction
>> OOPS at runtime.
>>
>> I'm unusure who maintains that raspberrypi rt kernel tree. However, the
>> upstream rt tree
>> for 4.14-rt maintained by Tom Zanussi seems to contain the fix:
>>
>>
>> https://kernel.googlesource.com/pub/scm/linux/kernel/git/rt/linux-stable-rt/+/refs/heads/v4.14-rt
>>
>> (currently at 4.14.109-rt57).
>>
>> So you should contact your raspberrypi linux rt tree clone maintainer and
>> ask him
>> to upgrade, or, as stated in the #error generated by lttng-modules,
>> simply ensure
>> CONFIG_OPTPROBES is unset when you build your kernel. You should ask the
>> raspberrypi community advice on how to ensure this configuration option
>> is not
>> overridden by the raspberrypi build system.
>>
>> Thanks,
>>
>> Mathieu
>>
>>
>>
>> Thank you so much for your attention and looking forward to your reply
>> soon.
>>
>>
>>
>> Best Regards,
>>
>>
>>
>> Nicholas Sadjoli
>>
>> _______________________________________________
>> lttng-dev mailing list
>> lttng-dev@lists.lttng.org
>> https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
>>
>>
>> --
>> Mathieu Desnoyers
>> EfficiOS Inc.
>> http://www.efficios.com
>>
>

[-- Attachment #1.2: Type: text/html, Size: 15742 bytes --]

[-- Attachment #2: Type: text/plain, Size: 156 bytes --]

_______________________________________________
lttng-dev mailing list
lttng-dev@lists.lttng.org
https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

  parent reply	other threads:[~2019-04-16 19:06 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CAKUXLvdNYPitwKb8D5VDC7nXA4-z3OiApGX=qbVxV5LWFkDyJw@mail.gmail.com>
2019-04-15 14:11 ` Problems setting up lttng on PREEMPT_RT Raspberry Pi Mathieu Desnoyers
     [not found] ` <725895933.460.1555337504175.JavaMail.zimbra@efficios.com>
2019-04-15 14:14   ` Mathieu Desnoyers
2019-04-15 14:14   ` [lttng-dev] " Mathieu Desnoyers
2019-04-16 19:04   ` Nicholas Sadjoli
     [not found]   ` <CAKUXLveyWXTsh6vG0V-isbj2YptT_r8vtMuUF-V2Aysb9SRBKg@mail.gmail.com>
2019-04-16 19:05     ` Nicholas Sadjoli [this message]
2019-04-28 10:11   ` Nicholas Sadjoli
     [not found]   ` <CAKUXLvdQ0ELiGLDg-gQGh4Ja1+q3_Jpc8GcB6Pnvh522=FE_fw@mail.gmail.com>
2019-04-28 13:58     ` Mathieu Desnoyers
2019-04-15 11:07 Nicholas Sadjoli

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='CAKUXLvcs+dCUn1-LqGRpL2AAH6SamOLob2kUcOZRfeuC=-TmKQ__38856.1363144376$1555441587$gmane$org@mail.gmail.com' \
    --to=nick.sadjoli@gmail.com \
    --cc=dev-raspberry-pi@lists.mozilla.org \
    --cc=linux-rt-users@vger.kernel.org \
    --cc=lttng-dev@lists.lttng.org \
    --cc=mathieu.desnoyers@efficios.com \
    --cc=rostedt@goodmis.org \
    --cc=tom.zanussi@linux.intel.com \
    /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.