EPICS Home

Experimental Physics and Industrial Control System


 
1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  <20132014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  <20132014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: asynPrint to print asyn port name
From: Bruce Hill <[email protected]>
To: <[email protected]>
Date: Wed, 22 May 2013 15:02:04 -0700
Hi Mark,
We'd find the new asyn trace flags quite useful as well.
Thanks!
- Bruce

On 5/22/2013 12:25 AM, [email protected] wrote:
This seems like a good solution to me as well. A few extra bits like this in the trace mask would be very helpful in debugging a complex IOC...
Thanks,
Ulrik

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Mark Davis
Sent: 26 April 2013 12:40
To: [email protected]
Subject: Re: asynPrint to print asyn port name

Sounds good to me.  That lets everyone determine just how verbose they
want the messages to be.


On 4/24/2013 7:50 PM, Mark Rivers wrote:
That is a good suggestion.  I have been thinking of another extension to the asynTrace utility, which is an ASYN_TRACE_WARNING bit.  This would be used for messages whose severity is between ASYN_TRACE_ERROR and ASYN_TRACE_FLOW.



How about adding 3 more bits to the asyn trace mask:



ASYN_TRACE_WARNING

ASYN_TRACE_SHOW_PORT - display the port/addr information (=1 by default)

ASYN_TRACE_SHOW_TIME - display the timestamp (=1 by default)



Mark



________________________________
From: [email protected] [[email protected]] on behalf of [email protected] [[email protected]]
Sent: Wednesday, April 24, 2013 3:51 AM
To: [email protected]
Subject: asynPrint to print asyn port name

Hello,

When writing asyn drivers I find myself using plenty of asynPrint calls to trace execution, debug etc. For each call I often find myself adding the current drivers asyn portname - and also often the asyn address.

The reason that I add the asyn port name to the asynPrint is of course to allow quickly identifying which asyn port is spewing out the message. In particular on operational systems with many devices and asyn drivers I usually have ASYN_TRACE_ERROR enabled by default - and then struggle to figure out which driver produced the error message.

Would it be possible to add printing of the asyn port name - and possibly the address - to the asynPrint call by default?

I think the relevant bit of code is in asyn/asynDriver/asynManger.c   - but the code there is rather more complex than I had imagined... :-)

Cheers,
Ulrik





--

This e-mail and any attachments may contain confidential, copyright and or privileged material, and are for the use of the intended addressee only. If you are not the intended addressee or an authorised recipient of the addressee please notify us of receipt by returning the e-mail and do not use, copy, retain, distribute or disclose the information in or attached to the e-mail.
Any opinions expressed within this e-mail are those of the individual and not necessarily of Diamond Light Source Ltd.
Diamond Light Source Ltd. cannot guarantee that this e-mail or any attachments are free from viruses and we cannot accept liability for any damage which you may sustain as a result of software viruses which may be transmitted in or with the message.
Diamond Light Source Limited (company no. 4375679). Registered in England and Wales with its registered office at Diamond House, Harwell Science and Innovation Campus, Didcot, Oxfordshire, OX11 0DE, United Kingdom








References:
asynPrint to print asyn port name ulrik.pedersen
RE: asynPrint to print asyn port name Mark Rivers
Re: asynPrint to print asyn port name Mark Davis
RE: asynPrint to print asyn port name ulrik.pedersen

Navigate by Date:
Prev: Device support for Copley Controls Accelnet Panel Phillip Sorensen
Next: Connecting Siemens Siatic CPU314C-2 PN/DP using s7plc module Konrad Gajewski
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  <20132014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: RE: asynPrint to print asyn port name ulrik.pedersen
Next: RE: asynPrint to print asyn port name Mark Rivers
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  <20132014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024