Site Map | Contact Us
Quantum Leaps - innovating embedded systems Call us toll-free!
Quantum Developer Zone
Quantum Leaps Discussion Forum

Search the Forum for answers or post your questions to the
Quantum Leaps community


Return to Website

  First
  Prev
  Reply
  Forum
Next  
Last  
Search this Forum:  
Viewing Page 1 of 1 (Total Posts: 3)


Author Comment    
Aviv Laufer

aviv@notalvision.com


Dec 17, 07 - 1:31 AM
QSPY - Filter a specfice Signal

How do I set up QSPY to filter a specific signal?
Miro Samek

www.quantum-leaps.com


Dec 17th, 2007 - 6:16 AM
Re: QSPY - Filter a specfice Signal

QS filters are not designed to filter specific event signals. Instead, QS can filter "QS records", which are defined in the qs.h header file. Examples of such records are:

QS_QEP_STATE_ENTRY, /**< a state was entered */
QS_QEP_STATE_EXIT, /**< a state was exited */
QS_QEP_STATE_INIT, /**< an intial transition was taken in a state */
QS_QEP_INIT_TRAN, /**< the top-most initial transition was taken */
. . .
QS_QF_ACTIVE_POST_FIFO, /**< an event was posted (FIFO) to AO */
QS_QF_ACTIVE_POST_LIFO, /**< an event was posted (LIFO) to AO */
QS_QF_ACTIVE_GET, /**< AO got an event and its queue is not empty */
QS_QF_ACTIVE_GET_LAST,/**< AO got an event and its queue is empty */
. . .


You can filter the QS records on and off by the "Global Filter". For example, you can say:

QS_FILTER_ON(QS_QEP_INIT_TRAN);
QS_FILTER_ON(QS_QF_ACTIVE_GET_LAST);


The QS filters are documented in Section 3.8.5 of the "QP Programmer's Manual" (http://www.quantum-leaps.com/doc/QP_Manual.pdf).

Miro
Aviv Laufer



Dec 17th, 2007 - 6:20 AM
Re: Re: QSPY - Filter a specfice Signal

Thanks,
I know that you can filter records.
So it may be a nice addition to have the ability to filter events
Aviv


  First
  Prev
  Reply
  Forum
Next  
Last  


powered by Powered by Bravenet bravenet.com