aboutsummaryrefslogtreecommitdiffstats
path: root/pkg
diff options
context:
space:
mode:
authorAleksandr Nogikh <nogikh@google.com>2024-01-12 17:52:50 +0100
committerAleksandr Nogikh <nogikh@google.com>2024-01-23 11:48:01 +0000
commit74d5594c03d2f8445816b9980cd98f67e761d531 (patch)
treea699cd8672d42bfc0c551d7588a34d1b5cab425c /pkg
parentbf3b32eb43d4b6b620b3c2b9f2f54aeadc8f17f6 (diff)
syz-fuzzer: add a logging RPC call
Add an RPC call to post a log message to syz-manager directly from syz-fuzzer. It's very convenient during the debugging and profiling of the actual fuzzing code.
Diffstat (limited to 'pkg')
-rw-r--r--pkg/rpctype/rpctype.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/pkg/rpctype/rpctype.go b/pkg/rpctype/rpctype.go
index fc582e576..3b1244662 100644
--- a/pkg/rpctype/rpctype.go
+++ b/pkg/rpctype/rpctype.go
@@ -200,3 +200,9 @@ type RunTestDoneArgs struct {
Info []*ipc.ProgInfo
Error string
}
+
+type LogMessageReq struct {
+ Level int
+ Name string
+ Message string
+}