Added global struct "options"
Substituted opt_* with options.align, options.user, options.syscalls,
options.libcalls, options.demangle
diff --git a/process_event.c b/process_event.c
index 7c8a725..f3c966d 100644
--- a/process_event.c
+++ b/process_event.c
@@ -213,7 +213,7 @@
static void
process_syscall(struct event *event) {
- if (opt_S) {
+ if (options.syscalls) {
output_left(LT_TOF_SYSCALL, event->proc,
sysname(event->proc, event->e_un.sysnum));
}
@@ -228,7 +228,7 @@
static void
process_arch_syscall(struct event *event) {
- if (opt_S) {
+ if (options.syscalls) {
output_left(LT_TOF_SYSCALL, event->proc,
arch_sysname(event->proc, event->e_un.sysnum));
}
@@ -280,7 +280,7 @@
enable_all_breakpoints(event->proc);
}
callstack_pop(event->proc);
- if (opt_S) {
+ if (options.syscalls) {
output_right(LT_TOF_SYSCALLR, event->proc,
sysname(event->proc, event->e_un.sysnum));
}
@@ -293,7 +293,7 @@
calc_time_spent(event->proc);
}
callstack_pop(event->proc);
- if (opt_S) {
+ if (options.syscalls) {
output_right(LT_TOF_SYSCALLR, event->proc,
arch_sysname(event->proc, event->e_un.sysnum));
}