09/09/16 [x393][framepars] by AndreyFilippov: debugging histograms (debug code will be removed at next commit)
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)
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
Write driver commands to sysfs
09/08/16 [elphel-apps-camogm][master-initial] by Mikhail Karpenko: Write driver commands to sysfs
Write driver commands to sysfs
A web interface for a simpler and more flexible Linux kernel dynamic debug controlling
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
Update README.md
09/08/16 [debugfs-webgui][master] by Oleg K Dzhimiev: Update README.md
Update README.md
09/08/16 [debugfs-webgui][master] by Oleg Dzhimiev: license headers
license headers
09/08/16 [debugfs-webgui][master] by Oleg Dzhimiev: license headers
license headers
09/08/16 [debugfs-webgui][master] by Oleg K Dzhimiev: Update README.md
Update README.md
09/08/16 [debugfs-webgui][master] by Oleg K Dzhimiev: Update README.md
Update README.md
09/08/16 [debugfs-webgui][master] by Oleg K Dzhimiev: Update README.md
Update README.md
09/08/16 [debugfs-webgui][master] by Oleg K Dzhimiev: Update README.md
Update README.md
09/08/16 [linux-elphel][framepars] by Mikhail Karpenko: Remove debug functions and excessive output
Remove debug functions and excessive output
09/08/16 [linux-elphel][jtag] by Mikhail Karpenko: Remove debug functions and excessive output
Remove debug functions and excessive output
10393
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.filippov09/07/16 [elphel-apps-imgsrv][master] by AndreyFilippov: added external tool
added external tool
09/07/16 [elphel-apps-imgsrv][master] by AndreyFilippov: added external tool
added external tool
09/07/16 [linux-elphel][master-initial] by Mikhail Karpenko: Move IRQ processing to tasklet, use single flag for disk access
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
Move IRQ processing to tasklet, use single flag for disk access
Pages
