Commit Graph

5 Commits

Author SHA1 Message Date
Alyssa Ross
4b466e92a2 Fix GCC declaration-after-statement error
Since upgrading to Linux v5.18 in Nixpkgs, we've been seeing an
"ISO C90 forbids mixed declarations and code" error from GCC.

This patch fixes it by initializing regs as part of its declaration,
meaning hook will no longer be declared after a statement.

Signed-off-by: Alyssa Ross <hi@alyssa.is>
2022-09-29 16:27:23 +10:00
Térence Clastres
225a49a409 [core] add support for linux 5.11
This approach maintains compatibility with previous kernel versions.

Thanks to @justinkb for finding the commit that broke it (torvalds/linux@d19ad07).
2021-02-15 17:29:48 -06:00
Geoffrey McRae
4dc9a80657 [core] hook: fixed failure to initialize the kprobe struct completely 2020-11-11 11:24:42 +11:00
Adam Madsen
81516a3241 Add additional source 2020-11-09 22:35:10 -06:00
Adam Madsen
74ea6dd018 Add option to hook device reset through ftrace 2020-11-09 22:33:15 -06:00