task viewer (vxworks only) - General Discussion and Assistance - CHDK Forum  

task viewer (vxworks only)

  • 6 Replies
  • 6993 Views
*

Offline reyalp

  • ******
  • 13434
task viewer (vxworks only)
« on: 09 / August / 2008, 22:49:31 »
Advertisements
Attached is a patch for a simple task viewer. Displays up to 12 tasks like the propcase viewer. Currently only shows name and taskid.
Two options in the debug menu:
task list: Show the task list if checked
task list start: where (in the order returned by vxworks) to display from. They appear to get added to the list in order of creation, so most of the activity is at the end. If you set this to more than there are tasks running on your cam, it will show the last twelve, adjusting on the fly as tasks get created and die.

To make it more useful, one could add getTaskInfo

#ifdefed to do nothing on dryos cams, since corresponding functions don't appear to have been identified.

TODO:
disp+menu+erase shortcut  :P

edit:
patch is against juciphox branch, but it should be easy to apply to others.
« Last Edit: 09 / August / 2008, 22:57:10 by reyalp »
Don't forget what the H stands for.

*

Offline whim

  • ******
  • 2041
  • A495/590/620/630 ixus70/115/220/230/300/870 S95
Re: task viewer (vxworks only)
« Reply #1 on: 10 / August / 2008, 04:22:35 »
Nice ! Confirmed to work as advertised on ixus70_sd1000-101b  :D
Applied on juciphox473+lua 'visibility' bugfix.

wim

PS Will test on [edit] The same goes for A620 & A630, too
« Last Edit: 10 / August / 2008, 05:03:20 by whim »

*

Offline PhyrePhoX

  • *****
  • 2254
  • make RAW not WAR
    • PhyreWorX
Re: task viewer (vxworks only)
« Reply #2 on: 10 / August / 2008, 12:50:08 »
confirmed on s3is. will include in branch soon. why is the string limited to 10 chars though? is it the tasks maximum length or is it a cosmetic thing?

*

Offline reyalp

  • ******
  • 13434
Re: task viewer (vxworks only)
« Reply #3 on: 10 / August / 2008, 16:24:35 »
confirmed on s3is. will include in branch soon. why is the string limited to 10 chars though? is it the tasks maximum length or is it a cosmetic thing?
vxWorks standard is ten chars, although it appears canon goes over this. I'll have a few more things to add to this so I'll probably extend that as well.
Don't forget what the H stands for.


*

Offline ewavr

  • ****
  • 1057
  • A710IS
Re: task viewer (vxworks only)
« Reply #4 on: 10 / August / 2008, 16:39:47 »
why is the string limited to 10 chars though? is it the tasks maximum length or is it a cosmetic thing?
After task creation, VxWorks truncates its name to 10 chars (first letter is 't').
Therefore, for example, "FORMAT_TASK_PROGRESS" and "FORMAT_TASK_NAME" (real task names) cannot be distinguished by name ("tFORMAT_TA").

*

Offline reyalp

  • ******
  • 13434
Re: task viewer (vxworks only)
« Reply #5 on: 11 / August / 2008, 22:10:08 »
New version.

Modified the debug menu, so instead of having "show propcases" "show params" and "show task list" there is now a single enum for "debug display" that allows you to pick any of these, or "none"

Propcase page and tasklist start still have their own values.

Modified "alt +/- dumps memory" to "Alt +/- debug shortcut", which is an enum with three options: "none", "dump" and "page"

If page is selected, pressing +/- key in alt mode once moves you through one page of propecases, params or tasks. If you double click it (two clicks in 400ms or less) the direction reverses. This is a bit clumsy (since you'll keep reversing if you try to page really fast), but there's only so much you can do with a one button interface ;)

This makes examining propcases etc simpler, since you don't have navigate the menu every time you want to change pages.

Patch is against latest juciphox (rev 474)

edit:
I reused the lang entries for the items I changed, so anyone using an out of date translation will see confusing menu items.
« Last Edit: 11 / August / 2008, 22:12:22 by reyalp »
Don't forget what the H stands for.

*

Offline PhyrePhoX

  • *****
  • 2254
  • make RAW not WAR
    • PhyreWorX
Re: task viewer (vxworks only)
« Reply #6 on: 12 / August / 2008, 08:58:59 »
nice addition, using the +/- button for scrolling through the pages.
added it in juciphox 0.3.0 :)

 

Related Topics