<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Hi Matthew,</p>
<p>Do you have access to the shell on a serial or telnet console?</p>
<p>The RTEMS shell has a "task" command that shows the state of all
the tasks running in your system:</p>
<p>MNTB [/] # task<br>
ID NAME SHED PRI STATE MODES EVENTS
WAITINFO<br>
------------------------------------------------------------------------------<br>
0a010001 USBd UPD 200 TIME P:T:nA NONE<br>
0a010003 ERRM UPD 55 MSG P:T:nA NONE
22010003<br>
0a010004 ADLT UPD 92 MSG P:T:nA NONE
22010006<br>
</p>
<p>Based on the wait info, you can work out what it is waiting on
using the other shell commands, such as:</p>
<p>queue or sema</p>
<p>MNTB [/] # queue<br>
ID NAME ATTRIBUTES PEND MAXPEND MAXSIZE<br>
------------------------------------------------------------------------------<br>
22010001 USBr DEFAULT 0 3000 1<br>
22010002 USBt DEFAULT 40 10000 1<br>
22010003 EMIQ PR 0 15 32</p>
<p>In the example above, the task ERRM is waiting for a message on
the queue EMIQ.</p>
<p>If you do not have access to the shell, you can try to follow
through what the shell actually does in the code, and hopefully it
will provide the information that you are looking for.</p>
<p>regards,</p>
<p>Ian Caddy</p>
<p><br>
</p>
<p><br>
</p>
<div class="moz-cite-prefix">On 22/03/2019 3:41 am, Mathew Benson
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAP4kPXNN=bo+qyjMnyW3ve6Bpwf=DOX2=7QcMNXtFGFBpeJYQQ@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">What's the best way to determine the status of a
task? Is there an API to determine if its pending or a runnable
state? Is there an API to determine what its pending on? I'm
trying to determine what some tasks stopped executing and I
can't use a debugger. Preferably, can somebody point me to a
symbol that I can peek?<br clear="all">
<div><br>
</div>
-- <br>
<div dir="ltr" class="gmail_signature"
data-smartmail="gmail_signature">
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div>
<div><b>Mathew Benson</b><br>
</div>
CEO | Chief Engineer<br>
</div>
Windhover Labs, LLC<br>
832-640-4018<br>
<br>
<img
src="https://drive.google.com/a/windhoverlabs.com/uc?id=1cLDczWESrU667xKgEJlFhHa2yjq5UVhJ&export=download"
moz-do-not-send="true"><br>
</div>
<a href="http://www.windhoverlabs.com" target="_blank"
moz-do-not-send="true">www.windhoverlabs.com</a><br>
<br>
</div>
</div>
</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:users@rtems.org">users@rtems.org</a>
<a class="moz-txt-link-freetext" href="http://lists.rtems.org/mailman/listinfo/users">http://lists.rtems.org/mailman/listinfo/users</a></pre>
</blockquote>
</body>
</html>