xenomai.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
From: Pierre FICHEUX <pierre.ficheux@smile.fr>
To: xenomai <xenomai@xenomai.org>
Subject: Detecting migration
Date: Tue, 19 Mar 2024 18:14:16 +0100	[thread overview]
Message-ID: <CAFc1U0taqtH_iP=f1z6E=Gm91YG4q_2Wosmstygb9wiadThj7Q@mail.gmail.com> (raw)

Hi,

Using the SIGDEBUG signal, is there a way to know the source of the
migration (function name) ?

I did a test with:

nentries = backtrace(bt,sizeof(bt) / sizeof(bt[0]));
backtrace_symbols_fd(bt,nentries,fileno(stdout));

It seems to work (using nm + readelf)   but it's a bit "rough".

Thx a lot.


-- 

Pierre FICHEUX -/- CTO Smile ECS, France -\- pierre.ficheux@smile.fr
                             http://www.smile.fr
                             https://smile.eu/fr/offres/embarque-iot
I would love to change the world, but they won't give me the source code

             reply	other threads:[~2024-03-19 17:14 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-19 17:14 Pierre FICHEUX [this message]
     [not found] ` <CAFLxGvzjsYjFnOyAz7ikwwvXf2yiiPvN6Ytg4NGUa5R95Jsy0w@mail.gmail.com>
2024-03-20  7:41   ` Detecting migration Pierre FICHEUX

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='CAFc1U0taqtH_iP=f1z6E=Gm91YG4q_2Wosmstygb9wiadThj7Q@mail.gmail.com' \
    --to=pierre.ficheux@smile.fr \
    --cc=xenomai@xenomai.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).