This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: remote syslog support in Redboot?
- From: Gary Thomas <gary at mlbassoc dot com>
- To: Jon Ringle <JRingle at vertical dot com>
- Cc: Andrew Lunn <andrew at lunn dot ch>, ecos-discuss at ecos dot sourceware dot org
- Date: Thu, 10 May 2007 08:53:26 -0600
- Subject: Re: [ECOS] remote syslog support in Redboot?
- References: <4DD3AF7ECBBC43409BA36508938D0185123B75@CVAEX1.VERTICAL.COM>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Jon Ringle wrote:
> On Thursday, May 10, 2007 7:56 AM, Andrew Lunn wrote:
>> On Wed, May 09, 2007 at 03:12:29PM -0400, Jon Ringle wrote:
>>> Has anyone implemented the ability to have diag_printf() messages be
>>> sent to a remote syslog server in Redboot/ecos?
>> You will have to be careful when doing this. diag_printf() uses a very
>> simple polled IO, blocking serial device driver. The idea is that it
>> should always work, in any context. So you can do a diag_printf() in
>> an ISR or a DSR, not just a thread. It is also guaranteed the output
>> will be out the serial port before diag_printf() returns.
>
> How is this guaranteed if I connect to Redboot on tcp port 9000?
RedBoot uses a polled TCP connection, thus when you make a
call to diag_printf() that channels through RedBoot, it _will_
complete at the receiver before continuing. Interrupts are
off during this time, so it's safe even in ISR/DSR context.
Note: there can be issues if you try to send such messages from
within the network stack/drivers and these are routed
directly to the serial console, not over the network.
- --
- ------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
- ------------------------------------------------------------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org
iD8DBQFGQzHmmaKbSsQGV8ARAi/bAKCl+mxgKW8WWJMtlAcTJRtUEjAm9gCfcdVS
6rewRB3A4yidtlhn+XxGPiY=
=mn0u
-----END PGP SIGNATURE-----
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss