Discussion:
Level setting in rtapi_print_msg()
(too old to reply)
Bertho Stultiens
2017-06-13 08:25:58 UTC
Permalink
Raw Message
Hi,

The message level that will be output in rtapi_print_msg() depends on
the level settings in the rtapi code.

Is there a general way (cmdline) set it or does every module have to set
it for itself using a "debug" module parameter and calling
rtapi_set_msg_level()?
--
Greetings Bertho

(disclaimers are disclaimed)
andy pugh
2017-06-13 09:24:58 UTC
Permalink
Raw Message
Post by Bertho Stultiens
Is there a general way (cmdline) set it
I have a feeling that this might not work any more, but the way to do it
used to be to

*echo 5* > / proc/*rtapi*/debug

(for debug level 5)

The startup script seems to still do that:
https://github.com/LinuxCNC/linuxcnc/blob/af15a4d90e1d51d5309db65fe1c9511e486df411/scripts/realtime.in#L147
--
atp
"A motorcycle is a bicycle with a pandemonium attachment and is designed
for the especial use of mechanical geniuses, daredevils and lunatics."
— George Fitch, Atlanta Constitution Newspaper, 1916
Bertho Stultiens
2017-06-13 09:34:45 UTC
Permalink
Raw Message
Post by andy pugh
Post by Bertho Stultiens
Is there a general way (cmdline) set it
I have a feeling that this might not work any more, but the way to do it
used to be to
*echo 5* > / proc/*rtapi*/debug
(for debug level 5)
https://github.com/LinuxCNC/linuxcnc/blob/af15a4d90e1d51d5309db65fe1c9511e486df411/scripts/realtime.in#L147
No, I do not seem to have anything in the /proc filesystem that says
anything rtapi. May this be related to the fact that I run RT-PREEMPT
and using posix realtime?

Then the question remains... What is the "correct" way to set the
message level.
--
Greetings Bertho

(disclaimers are disclaimed)
andy pugh
2017-06-13 09:55:32 UTC
Permalink
Raw Message
Post by Bertho Stultiens
May this be related to the fact that I run RT-PREEMPT
and using posix realtime?
Yes, that would explain it.
Post by Bertho Stultiens
Then the question remains... What is the "correct" way to set the
message level.
This might be a problem not yet adequately solved.
https://sourceforge.net/p/emc/mailman/emc-developers/thread/EF972235-DC66-4AB5-97CD-4DDBA4A7DDBD%40mah.priv.at/#msg30532123
(I don't know if anything came of that discussion, and it is likely that if
it did it only ever made it into Machinekit and not into LinuxCNC)
--
atp
"A motorcycle is a bicycle with a pandemonium attachment and is designed
for the especial use of mechanical geniuses, daredevils and lunatics."
— George Fitch, Atlanta Constitution Newspaper, 1916
Bertho Stultiens
2017-06-13 10:11:24 UTC
Permalink
Raw Message
Post by andy pugh
Post by Bertho Stultiens
Then the question remains... What is the "correct" way to set the
message level.
This might be a problem not yet adequately solved.
https://sourceforge.net/p/emc/mailman/emc-developers/thread/EF972235-DC66-4AB5-97CD-4DDBA4A7DDBD%40mah.priv.at/#msg30532123
(I don't know if anything came of that discussion, and it is likely that if
it did it only ever made it into Machinekit and not into LinuxCNC)
Hm, after reading that thread, I'm almost sorry I asked. Lets just call
this work-in-progress ;-)

And I'll ignore the problem for now or until I unify everything myself
(yeah, probably when retirement time hits).
--
Greetings Bertho

(disclaimers are disclaimed)
W. Martinjak
2017-06-13 12:18:18 UTC
Permalink
Raw Message
Post by Bertho Stultiens
And I'll ignore the problem for now or until I unify everything myself
(yeah, probably when retirement time hits).
I would say this accounts for the most our problems. ;)
--
"In der Wissenschaft siegt nie eine neue Theorie,
nur ihre Gegner sterben nach und nach"

Max Planck
Loading...