home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / os / vxworks / 768 < prev    next >
Encoding:
Internet Message Format  |  1992-08-31  |  1.3 KB

  1. Path: sparky!uunet!sun-barr!ames!agate!dog.ee.lbl.gov!lbl.gov!vxwexplo
  2. From: mitchell@aaec1.aaec.com
  3. Newsgroups: comp.os.vxworks
  4. Subject: re: task switch hook
  5. Date: Mon, 31 Aug 92 09:09:16 EDT
  6. Organization: Lawrence Berkeley Laboratory, Berkeley CA
  7. Lines: 21
  8. Sender: vxwexplo@lbl.gov
  9. Message-ID: <9208311309.AA29626@sparky.noname>
  10. NNTP-Posting-Host: 128.3.112.16
  11. Originator: daemon@vxw.ee.lbl.gov
  12.  
  13. >Has anyone tested the task switch hook routines in Vx...
  14.  
  15. I hooked a small routine that would write the Id of tasks being switched in
  16. and out to a fixed location in global (VME) RAM.  The MSB of the Id was set
  17. if the new task was lower priority, which indicated the task being switched
  18. out was waiting for a semaphore and not being pre-empted.  I then used an
  19. HP16500 logic analyzer to capture all of these writes (and all VME
  20. interrupts and mail-box writes).  I found this a great help in debugging
  21. our multi-task, multi-CPU real time system, allowing us to make
  22. measurements of task execution time and second order effects of bus
  23. utilization on task timing.
  24.  
  25. The task hook library worked as advertised - no problems.
  26. ACM
  27.   Andrew Mitchell                |  Internet: mitchell@aaec.com
  28.   Atlantic Aerospace             |  tel: (617) 890-4200 
  29.   470 Totten Pond Road           |  fax: (617) 890-0224
  30.   Waltham MA 02154 USA           |
  31.  
  32.                                 
  33.  
  34.