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