aboutsummaryrefslogtreecommitdiff
path: root/scripts/event_dump.py
Commit message (Collapse)AuthorAgeFilesLines
* event: Support a simple spy recordSimon Glass2023-08-311-4/+8
| | | | | | | | | | | | The current event spy is always passed the event context and the event. The context is always NULL for a static spy. The event is not often used. Introduce a 'simple' spy which takes no arguments. This allows us to drop the adaptation code that many of these spy records use. Update the event script to find these in the image. Signed-off-by: Simon Glass <sjg@chromium.org>
* patman: Move library functions into a library directorySimon Glass2023-03-081-1/+1
| | | | | | | | | | | The patman directory has a number of modules which are used by other tools in U-Boot. This makes it hard to package the tools using pypi since the common files must be copied along with the tool that uses them. To address this, move these files into a new u_boot_pylib library. This can be packaged separately and listed as a dependency of each tool. Signed-off-by: Simon Glass <sjg@chromium.org>
* test: Drop unwanted option in event_dump.pySimon Glass2022-10-291-2/+0
| | | | | | This option is not used. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
* event: Allow multiple spy declarations for each eventSimon Glass2022-09-291-1/+3
| | | | | | | | At present only one spy is allowed per event. Update the naming to allow more than one, since some need this flexibility, e.g. the EVT_FT_FIXUP event. Signed-off-by: Simon Glass <sjg@chromium.org>
* event: Add a script to decode the event-spy listSimon Glass2022-03-101-0/+115
For debugging and dicoverability it is useful to be able to see a list of each event spy in a U-Boot ELF file. Add a script which shows this, along with the event type and the source location. This makes events a little easier to use than weak functions, for example. Add a basic sandbox test as well. We could provide a test for other boards, but for now, few use events. Signed-off-by: Simon Glass <sjg@chromium.org>