92eb2222 | 21-Dec-2023 |
Andrew Jeffery <andrew@aj.id.au> |
OWNERS: Update Andrew's preferred email
We're having some grief with non-preferred emails in Gerrit[1]. I now prefer project-related content goes to my work email address, so use my non-preferred em
OWNERS: Update Andrew's preferred email
We're having some grief with non-preferred emails in Gerrit[1]. I now prefer project-related content goes to my work email address, so use my non-preferred email to implement the switch.
[1]: https://issues.gerritcodereview.com/issues/317345953
Change-Id: I218ba14adce203bead2713a04b7a01d0a344a8e6 Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
show more ...
|
5d26ce6d | 21-Dec-2023 |
Andrew Jeffery <andrew@aj.id.au> |
README: Fix header formatting
Address formatting failures from CI.
Change-Id: Iab2a07d6eb5bfecaeb7f250b85f00596d09aa948 Signed-off-by: Andrew Jeffery <andrew@aj.id.au> |
be3dd0e6 | 21-Dec-2023 |
Andrew Jeffery <andrew@aj.id.au> |
main: Address strncat() overflow warning
``` FAILED: debug-trigger.p/main.c.o ccache cc -Idebug-trigger.p -I. -I.. -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Wped
main: Address strncat() overflow warning
``` FAILED: debug-trigger.p/main.c.o ccache cc -Idebug-trigger.p -I. -I.. -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Wpedantic -Werror -std=gnu18 -O0 -g -MD -MQ debug-trigger.p/main.c.o -MF debug-trigger.p/main.c.o.d -o debug-trigger.p/main.c.o -c ../main.c ../main.c: In function ‘main’: ../main.c:549:17: error: ‘strncat’ specified bound 4096 equals destination size [-Werror=stringop-overflow=] 549 | strncat(devnode, devid, sizeof(devnode)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc1: all warnings being treated as errors ```
Change-Id: Id9abfb900ad7601acd595febf00eb92c5a56d3af Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
show more ...
|
1161642d | 14-Jan-2022 |
Andrew Jeffery <andrew@aj.id.au> |
main: Log command read from source
Signed-off-by: Andrew Jeffery <andrew@aj.id.au> Change-Id: Ifeec81b37768052cabed63ff814499c8972817e1 |
ea84ad97 | 14-Jan-2022 |
Andrew Jeffery <andrew@aj.id.au> |
main: Be clear about what we failed to open
Signed-off-by: Andrew Jeffery <andrew@aj.id.au> Change-Id: I5884b83716f73da8f055a7267b3efab36c856ea8 |
8660e779 | 14-Jan-2022 |
Andrew Jeffery <andrew@aj.id.au> |
systemd: Configure command-line using the environment
The existing behaviour remains the default but can be modified by dropping in an environment file into /etc/default.
Signed-off-by: Andrew Jeff
systemd: Configure command-line using the environment
The existing behaviour remains the default but can be modified by dropping in an environment file into /etc/default.
Signed-off-by: Andrew Jeffery <andrew@aj.id.au> Change-Id: Icbeac6ea60bf76c98eaa03f4e5f2ecf0ddc2733d
show more ...
|
d1c5dd1a | 14-Jan-2022 |
Andrew Jeffery <andrew@aj.id.au> |
systemd: Start after the dump manager
In case --sink=dbus is supplied.
Signed-off-by: Andrew Jeffery <andrew@aj.id.au> Change-Id: I7cb13afecca6246e85dad0b054c708160c32191b |
86094694 | 13-Jan-2022 |
Andrew Jeffery <andrew@aj.id.au> |
main: Add a 'dbus' set of sink actions
The sysrq sink actions are are intended for use with kdump, which will capture relevant kernel and userspace memory. It's implementation is thus pretty straigh
main: Add a 'dbus' set of sink actions
The sysrq sink actions are are intended for use with kdump, which will capture relevant kernel and userspace memory. It's implementation is thus pretty straight forward.
Most BMCs don't use kdump, so implement a set of sink actions that talk via D-Bus to generate a dump and gracefully reboot the BMC.
Signed-off-by: Andrew Jeffery <andrew@aj.id.au> Change-Id: I126b0118faaa793011268a785eeb955139739eaf
show more ...
|
b1ea254e | 13-Jan-2022 |
Andrew Jeffery <andrew@aj.id.au> |
main: Extract a 'source' abstraction
The D-Bus set of sink actions will require polling the D-Bus fd and processing any inbound messages. To do this, the polling must happen where we're currently re
main: Extract a 'source' abstraction
The D-Bus set of sink actions will require polling the D-Bus fd and processing any inbound messages. To do this, the polling must happen where we're currently reading from the source file descriptor. In the same manner as the sink abstraction extract a source abstraction to hide the details. process() is then implemented in terms of the abstract source interface.
Signed-off-by: Andrew Jeffery <andrew@aj.id.au> Change-Id: I629e0d71f30592fa30affac1a920104e8086d8b0
show more ...
|
e998ba77 | 12-Jan-2022 |
Andrew Jeffery <andrew@aj.id.au> |
main: Add --sink-actions=... command-line option
Allow explicit configuration of the actions to take when a valid command is received from the source. This patch gives the current set of actions the
main: Add --sink-actions=... command-line option
Allow explicit configuration of the actions to take when a valid command is received from the source. This patch gives the current set of actions the name 'sysrq'.
Signed-off-by: Andrew Jeffery <andrew@aj.id.au> Change-Id: Ie8e7446599edb5927468865bcea36b596aef12f6
show more ...
|
1dc6adc9 | 12-Jan-2022 |
Andrew Jeffery <andrew@aj.id.au> |
main: Extract a 'sink' abstraction
In the future we'll add a set of sink actions that call through D-Bus to generate a BMC dump and do a graceful reboot rather than crashing the system through /proc
main: Extract a 'sink' abstraction
In the future we'll add a set of sink actions that call through D-Bus to generate a BMC dump and do a graceful reboot rather than crashing the system through /proc/sysrq-trigger. Reorganise the code so the process() function operates on abstract sink types. This way we can encapsulate the D-Bus specifics in a way that doesn't affect the process() implementation.
Concretely, there are two actions that can be triggered by the source, 'debug' and 'reboot'. Add the same as callbacks on the sink structure and implement the 'sysrq' behaviours in terms of the new abstraction.
Signed-off-by: Andrew Jeffery <andrew@aj.id.au> Change-Id: Ic62348365e9d0f13abbdcd81848bc4ca344135ee
show more ...
|
d65368be | 18-Jan-2022 |
Andrew Jeffery <andrew@aj.id.au> |
main: Add some documentation
Some tricks like defaulting the source and sink file descriptors to stdin and stdout aren't necessarily obvious, so add some commentary and justifications throughout.
S
main: Add some documentation
Some tricks like defaulting the source and sink file descriptors to stdin and stdout aren't necessarily obvious, so add some commentary and justifications throughout.
Signed-off-by: Andrew Jeffery <andrew@aj.id.au> Change-Id: I515f36857a7056aa589ecbb09c46372ec4d3976d
show more ...
|
30b6496a | 19-Jan-2022 |
Andrew Jeffery <andrew@aj.id.au> |
main: Use /proc/sysrq-trigger for reboot as well as crash
This way when using stdout as the sink we don't accidentally reboot the system.
Signed-off-by: Andrew Jeffery <andrew@aj.id.au> Change-Id:
main: Use /proc/sysrq-trigger for reboot as well as crash
This way when using stdout as the sink we don't accidentally reboot the system.
Signed-off-by: Andrew Jeffery <andrew@aj.id.au> Change-Id: If6b08f7a2773debf10bd1439790f8f9c83604d59
show more ...
|
210ad636 | 12-Jan-2022 |
Andrew Jeffery <andrew@aj.id.au> |
process: Lift reboot implementation to separate function
Signed-off-by: Andrew Jeffery <andrew@aj.id.au> Change-Id: I400d923781b3dd434dc51178c4dc9a8be6d3408f |
db47cd7f | 12-Jan-2022 |
Andrew Jeffery <andrew@aj.id.au> |
process: Lift debug implementation to separate function
Signed-off-by: Andrew Jeffery <andrew@aj.id.au> Change-Id: I8f4ed09dfd8a0f034678530e6fc9799d2c8f34b6 |
1d72cfaa | 19-Jan-2022 |
Andrew Jeffery <andrew@aj.id.au> |
meson: Add some compiler options
I got caught out by CI using stricter configuration, so add CI's configuration as the default set of options to meson.
Signed-off-by: Andrew Jeffery <andrew@aj.id.a
meson: Add some compiler options
I got caught out by CI using stricter configuration, so add CI's configuration as the default set of options to meson.
Signed-off-by: Andrew Jeffery <andrew@aj.id.au> Change-Id: I6932a231d2162de751eb5dd49b1abfdd97a0eb1d
show more ...
|
1348d52b | 12-Jan-2022 |
Andrew Jeffery <andrew@aj.id.au> |
MAINTAINERS: Remove in favour of OWNERS
We use Gerrit's 'owners' plugin now, so drop the org-specific MAINTAINERS file.
Signed-off-by: Andrew Jeffery <andrew@aj.id.au> Change-Id: If4217be5e30592af6
MAINTAINERS: Remove in favour of OWNERS
We use Gerrit's 'owners' plugin now, so drop the org-specific MAINTAINERS file.
Signed-off-by: Andrew Jeffery <andrew@aj.id.au> Change-Id: If4217be5e30592af67b9c1ed29802562a353b3c2
show more ...
|
640de114 | 12-Jan-2022 |
Andrew Jeffery <andrew@aj.id.au> |
OWNERS: Fix typo in 'matchers'
https://gerrit.googlesource.com/plugins/owners/+/refs/heads/master/owners/src/main/resources/Documentation/config.md#example-4-owners-based-on-matchers
Signed-off-by:
OWNERS: Fix typo in 'matchers'
https://gerrit.googlesource.com/plugins/owners/+/refs/heads/master/owners/src/main/resources/Documentation/config.md#example-4-owners-based-on-matchers
Signed-off-by: Andrew Jeffery <andrew@aj.id.au> Change-Id: Id732831cb82b04ec75eb21957217ece8af107021
show more ...
|
9c7783ba | 22-Oct-2021 |
Manojkiran Eda <manojkiran.eda@gmail.com> |
Add OWNERS file
Signed-off-by: Manojkiran Eda <manojkiran.eda@gmail.com> Change-Id: I8f64250aeaa85ebb6eba1a1962170a67bc2f2ae7 |
15fe59cb | 14-Jun-2021 |
Andrew Jeffery <andrew@aj.id.au> |
meson: Remove redundant udevrules list
This was left over after the change in configuration strategy in the previous commit.
Fixes: 20017150d229 ("meson: Improve maintainability of build options")
meson: Remove redundant udevrules list
This was left over after the change in configuration strategy in the previous commit.
Fixes: 20017150d229 ("meson: Improve maintainability of build options") Signed-off-by: Andrew Jeffery <andrew@aj.id.au> Change-Id: Icd7547fd06176440a760debd67aed5048681d688
show more ...
|
20017150 | 09-Jun-2021 |
Andrew Jeffery <andrew@aj.id.au> |
meson: Improve maintainability of build options
Exploit the array type for meson options to reduce the build system and recipe noise with respect to the trigger selection. Discussion on how this cou
meson: Improve maintainability of build options
Exploit the array type for meson options to reduce the build system and recipe noise with respect to the trigger selection. Discussion on how this could be achieved occurred on the associated recipe patch:
https://gerrit.openbmc-project.xyz/c/openbmc/openbmc/+/42911
Suggested-by: Patrick Williams <patrick@stwcx.xyz> Signed-off-by: Andrew Jeffery <andrew@aj.id.au> Change-Id: Iaf38224047e24d10898063ee358e6f6164592001
show more ...
|
11cd254b | 02-May-2021 |
Andrew Jeffery <andrew@aj.id.au> |
debug-trigger: Do what we can to debug unresponsive systems
debug-trigger is a small daemon which translates an external signal that the system is unresponsive into a system crash for debug data col
debug-trigger: Do what we can to debug unresponsive systems
debug-trigger is a small daemon which translates an external signal that the system is unresponsive into a system crash for debug data collection.
Signed-off-by: Andrew Jeffery <andrew@aj.id.au> Change-Id: Ic04f1a95aaf651d56b75f5261d8a6f76d34477a7
show more ...
|
2c693c50 | 01-Jun-2021 |
Brad Bishop <bradleyb@fuzziesquirrel.com> |
Initial empty repository
|