Imaging solutions with Free Software & Open Hardware

Who's online

There are currently 0 users online.

09/09/16 [x393][framepars] by AndreyFilippov: debugging histograms (debug code will be removed at next commit)

Elphel GIT logs - Fri, 09/09/2016 - 00:25
AndreyFilippov committed changes to the Elphel git project :
debugging histograms (debug code will be removed at next commit)

09/09/16 [x393][framepars] by AndreyFilippov: debugging histograms (debug code will be removed at next commit)

Elphel GIT logs - Fri, 09/09/2016 - 00:25
AndreyFilippov committed changes to the Elphel git project :
debugging histograms (debug code will be removed at next commit)

09/08/16 [elphel-apps-camogm][master] by Mikhail Karpenko: Write driver commands to sysfs

Elphel GIT logs - Thu, 09/08/2016 - 19:57
Mikhail Karpenko committed changes to the Elphel git project :
Write driver commands to sysfs

09/08/16 [elphel-apps-camogm][master-initial] by Mikhail Karpenko: Write driver commands to sysfs

Elphel GIT logs - Thu, 09/08/2016 - 19:57
Mikhail Karpenko committed changes to the Elphel git project :
Write driver commands to sysfs

A web interface for a simpler and more flexible Linux kernel dynamic debug controlling

Elphel Development Blog - Thu, 09/08/2016 - 18:40

Along with the documentation there is a number of articles explaining the dynamic debug (dyndbg) feature of the Linux kernel like this one or this. Though we haven’t found anything that would extend the basic functionality – so, we created a web interface using JavaScript and PHP on top of the dyndbg.

Fig.1 debugfs-webgui

In most cases it all works fine – when writing a linux driver you:
1. insert pr_debug()/dev_dbg() for debug messaging.
2. compile kernel with dyndbg enabled (CONFIG_DYNAMIC_DEBUG=y)
3. then just ‘echo‘ query strings or ‘cat‘ files with commands to switch on/off the debug messages at runtime. Examples:

  • single:

echo -c 'file svcsock.c line 1603 +pfmt' > /dynamic_debug/control

  • batch file:

cat query-batch-file > /dynamic_debug/control

When it’s all small – enabling/disabling the whole file or a function is not a problem. When the driver grows big with lots of debug messages or there are a few drivers interact with each other it becomes more convenient to have multiple configurations with certain debug lines on or off. As the source code changes the lines get shifted – and so, the batch files require editing.

If the target system (embedded or not) has network and a web browser (Apache2 + PHP) a quite simple solution is to add a web interface to the dynamic debug. The one we have developed has the following features:

  • allows having multiple configurations for each file
  • displays only files of interest
  • updates debug configuration for modified files where debug lines got shifted
  • keeps/updates the current config (in json format) in tmpfs – saves to disk on button click
  • p, f, l, m, t flags are supported

Get the source code then proceed with the README.md.

09/08/16 [debugfs-webgui][master] by Oleg K Dzhimiev: Update README.md

Elphel GIT logs - Thu, 09/08/2016 - 18:38
Oleg K Dzhimiev committed changes to the Elphel git project :
Update README.md

09/08/16 [debugfs-webgui][master] by Oleg K Dzhimiev: Update README.md

Elphel GIT logs - Thu, 09/08/2016 - 18:38
Oleg K Dzhimiev committed changes to the Elphel git project :
Update README.md

09/08/16 [debugfs-webgui][master] by Oleg Dzhimiev: license headers

Elphel GIT logs - Thu, 09/08/2016 - 18:33
Oleg Dzhimiev committed changes to the Elphel git project :
license headers

09/08/16 [debugfs-webgui][master] by Oleg Dzhimiev: license headers

Elphel GIT logs - Thu, 09/08/2016 - 18:33
Oleg Dzhimiev committed changes to the Elphel git project :
license headers

09/08/16 [debugfs-webgui][master] by Oleg K Dzhimiev: Update README.md

Elphel GIT logs - Thu, 09/08/2016 - 18:26
Oleg K Dzhimiev committed changes to the Elphel git project :
Update README.md

09/08/16 [debugfs-webgui][master] by Oleg K Dzhimiev: Update README.md

Elphel GIT logs - Thu, 09/08/2016 - 18:26
Oleg K Dzhimiev committed changes to the Elphel git project :
Update README.md

09/08/16 [debugfs-webgui][master] by Oleg K Dzhimiev: Update README.md

Elphel GIT logs - Thu, 09/08/2016 - 18:24
Oleg K Dzhimiev committed changes to the Elphel git project :
Update README.md

09/08/16 [debugfs-webgui][master] by Oleg K Dzhimiev: Update README.md

Elphel GIT logs - Thu, 09/08/2016 - 18:24
Oleg K Dzhimiev committed changes to the Elphel git project :
Update README.md

09/08/16 [linux-elphel][framepars] by Mikhail Karpenko: Remove debug functions and excessive output

Elphel GIT logs - Thu, 09/08/2016 - 17:32
Mikhail Karpenko committed changes to the Elphel git project :
Remove debug functions and excessive output

09/08/16 [linux-elphel][jtag] by Mikhail Karpenko: Remove debug functions and excessive output

Elphel GIT logs - Thu, 09/08/2016 - 17:32
Mikhail Karpenko committed changes to the Elphel git project :
Remove debug functions and excessive output

10393

Wiki Recent Changes - Thu, 09/08/2016 - 08:21

Mechanical properties:

← Older revision Revision as of 14:21, 8 September 2016 (2 intermediate revisions not shown)Line 42: Line 42: ====Power==== ====Power==== * 3.3VDC * 3.3VDC -====Dimensions====+====Mechanical properties==== -* 96x38 mm+* Dimensions: 96x38x20.5 mm (with all connectors installed). Height can be reduced by removing the network connector.  +* Weight: 31 g  +* Mechanical drawings and CAD files for the 10393 board: [[Elphel_camera_parts_0393-00#0393-00-20A_-_10393_rev_A_System_board_PCB_assembly|link]] ====SDK==== ====SDK==== Andrey.filippov

09/07/16 [elphel-apps-imgsrv][master] by AndreyFilippov: added external tool

Elphel GIT logs - Wed, 09/07/2016 - 20:42
AndreyFilippov committed changes to the Elphel git project :
added external tool

09/07/16 [elphel-apps-imgsrv][master] by AndreyFilippov: added external tool

Elphel GIT logs - Wed, 09/07/2016 - 20:42
AndreyFilippov committed changes to the Elphel git project :
added external tool

09/07/16 [linux-elphel][master-initial] by Mikhail Karpenko: Move IRQ processing to tasklet, use single flag for disk access

Elphel GIT logs - Wed, 09/07/2016 - 18:37
Mikhail Karpenko committed changes to the Elphel git project :
Move IRQ processing to tasklet, use single flag for disk access

09/07/16 [linux-elphel][jtag] by Mikhail Karpenko: Move IRQ processing to tasklet, use single flag for disk access

Elphel GIT logs - Wed, 09/07/2016 - 18:37
Mikhail Karpenko committed changes to the Elphel git project :
Move IRQ processing to tasklet, use single flag for disk access

Pages

Subscribe to www3.elphel.com aggregator