summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/strace/syscalls.go
diff options
context:
space:
mode:
authorMichael Pratt <mpratt@google.com>2018-12-06 15:46:20 -0800
committerShentubot <shentubot@google.com>2018-12-06 15:47:06 -0800
commit51900fe3a42ae8523c2b123343347a3215b93dc3 (patch)
tree0854364539d41f890707743a55fa7b11b93816b5 /pkg/sentry/strace/syscalls.go
parent1b1a42ba6dc7953db742959a54fd19124348f3fc (diff)
Format signals, signal masks in strace
Sample: I1205 16:51:49.869701 2492 x:0] [ 1] ioctl_test E rt_sigaction(SIGIO, 0x7e0e5b5e8500, 0x7e0e5b5e85a0) I1205 16:51:49.869766 2492 x:0] [ 1] ioctl_test X rt_sigaction(SIGIO, 0x7e0e5b5e8500, 0x7e0e5b5e85a0) = 0x0 (44.336?s) I1205 16:51:49.869831 2492 x:0] [ 1] ioctl_test E rt_sigprocmask(SIG_UNBLOCK, 0x7e0e5b5e8878 [SIGIO], 0x7e0e5b5e87c0, 0x8) I1205 16:51:49.869866 2492 x:0] [ 1] ioctl_test X rt_sigprocmask(SIG_UNBLOCK, 0x7e0e5b5e8878 [SIGIO], 0x7e0e5b5e87c0 [SIGIO 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64], 0x8) = 0x0 (2.575?s) PiperOrigin-RevId: 224422404 Change-Id: I3ed3f2ec6b1a639baa9cacd37ce7ee325c3703e4
Diffstat (limited to 'pkg/sentry/strace/syscalls.go')
-rw-r--r--pkg/sentry/strace/syscalls.go12
1 files changed, 12 insertions, 0 deletions
diff --git a/pkg/sentry/strace/syscalls.go b/pkg/sentry/strace/syscalls.go
index 9eeb18a03..22aecc009 100644
--- a/pkg/sentry/strace/syscalls.go
+++ b/pkg/sentry/strace/syscalls.go
@@ -170,6 +170,18 @@ const (
// ItimerType is an itimer type (ITIMER_REAL, etc).
ItimerType
+
+ // Signal is a signal number.
+ Signal
+
+ // SignalMaskAction is a signal mask action passed to rt_sigprocmask(2).
+ SignalMaskAction
+
+ // SigSet is a signal set.
+ SigSet
+
+ // PostSigSet is a signal set, formatted after syscall execution.
+ PostSigSet
)
// defaultFormat is the syscall argument format to use if the actual format is