Imaging solutions with Free Software & Open Hardware

Who's online

There are currently 0 users online.

09/09/16 [debugfs-webgui][master] by Oleg Dzhimiev: Merge branch 'master' of https://github.com/Elphel/debugfs-webgui

Elphel GIT logs - Fri, 09/09/2016 - 15:07
Oleg Dzhimiev committed changes to the Elphel git project :
Merge branch 'master' of https://github.com/Elphel/debugfs-webgui

09/09/16 [debugfs-webgui][master] by Oleg Dzhimiev: moved up config menus

Elphel GIT logs - Fri, 09/09/2016 - 15:06
Oleg Dzhimiev committed changes to the Elphel git project :
moved up config menus

09/09/16 [debugfs-webgui][master] by Oleg Dzhimiev: moved up config menus

Elphel GIT logs - Fri, 09/09/2016 - 15:06
Oleg Dzhimiev committed changes to the Elphel git project :
moved up config menus

09/09/16 [linux-elphel][master] by Mikhail Karpenko: Process errors during new frame reception

Elphel GIT logs - Fri, 09/09/2016 - 14:57
Mikhail Karpenko committed changes to the Elphel git project :
Process errors during new frame reception

09/09/16 [linux-elphel][jtag] by Mikhail Karpenko: Process errors during new frame reception

Elphel GIT logs - Fri, 09/09/2016 - 14:57
Mikhail Karpenko committed changes to the Elphel git project :
Process errors during new frame reception

09/09/16 [linux-elphel][master-initial] by Mikhail Karpenko: Move ahci command structure declaration to uapi directory

Elphel GIT logs - Fri, 09/09/2016 - 14:42
Mikhail Karpenko committed changes to the Elphel git project :
Move ahci command structure declaration to uapi directory

09/09/16 [linux-elphel][jtag] by Mikhail Karpenko: Move ahci command structure declaration to uapi directory

Elphel GIT logs - Fri, 09/09/2016 - 14:42
Mikhail Karpenko committed changes to the Elphel git project :
Move ahci command structure declaration to uapi directory

09/09/16 [elphel-apps-camogm][master] by Mikhail Karpenko: Move command structure declaration to uapi directory

Elphel GIT logs - Fri, 09/09/2016 - 11:11
Mikhail Karpenko committed changes to the Elphel git project :
Move command structure declaration to uapi directory

09/09/16 [elphel-apps-camogm][master-initial] by Mikhail Karpenko: Move command structure declaration to uapi directory

Elphel GIT logs - Fri, 09/09/2016 - 11:11
Mikhail Karpenko committed changes to the Elphel git project :
Move command structure declaration to uapi directory

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

Pages

Subscribe to www3.elphel.com aggregator