Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 469226a4 authored by Jeff Dike's avatar Jeff Dike Committed by Linus Torvalds
Browse files

[PATCH] uml: remove syscall debugging



Eliminate an unused debug option.

Signed-off-by: default avatarJeff Dike <jdike@addtoit.com>
Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 29ac1c21
Loading
Loading
Loading
Loading
+0 −9
Original line number Diff line number Diff line
@@ -47,13 +47,4 @@ config GCOV
        If you're involved in UML kernel development and want to use gcov,
        say Y.  If you're unsure, say N.

config SYSCALL_DEBUG
	bool "Enable system call debugging"
	depends on DEBUG_INFO
	help
	This adds some system debugging to UML, including keeping a ring buffer
	with recent system calls and some global and per-task statistics.

	If unsure, say N

endmenu
+0 −1
Original line number Diff line number Diff line
@@ -526,4 +526,3 @@ CONFIG_FORCED_INLINING=y
# CONFIG_RCU_TORTURE_TEST is not set
# CONFIG_GPROF is not set
# CONFIG_GCOV is not set
# CONFIG_SYSCALL_DEBUG is not set
+0 −1
Original line number Diff line number Diff line
@@ -15,7 +15,6 @@ obj-y = config.o exec_kern.o exitcode.o \
obj-$(CONFIG_BLK_DEV_INITRD) += initrd.o
obj-$(CONFIG_GPROF)	+= gprof_syms.o
obj-$(CONFIG_GCOV)	+= gmon_syms.o
obj-$(CONFIG_SYSCALL_DEBUG) += syscall.o

obj-$(CONFIG_MODE_TT) += tt/
obj-$(CONFIG_MODE_SKAS) += skas/
+0 −7
Original line number Diff line number Diff line
@@ -18,11 +18,7 @@ void handle_syscall(union uml_pt_regs *r)
	struct pt_regs *regs = container_of(r, struct pt_regs, regs);
	long result;
	int syscall;
#ifdef UML_CONFIG_SYSCALL_DEBUG
  	int index;

  	index = record_syscall_start(UPT_SYSCALL_NR(r));
#endif
	syscall_trace(r, 0);

	current->thread.nsyscalls++;
@@ -44,7 +40,4 @@ void handle_syscall(union uml_pt_regs *r)
	REGS_SET_SYSCALL_RETURN(r->skas.regs, result);

	syscall_trace(r, 1);
#ifdef UML_CONFIG_SYSCALL_DEBUG
  	record_syscall_end(index, result);
#endif
}

arch/um/kernel/syscall.c

deleted100644 → 0
+0 −36
Original line number Diff line number Diff line
/*
 * Copyright (C) 2002 Jeff Dike (jdike@karaya.com)
 * Licensed under the GPL
 */

#include "kern_util.h"
#include "syscall.h"
#include "os.h"

struct {
	int syscall;
	int pid;
	long result;
	unsigned long long start;
	unsigned long long end;
} syscall_record[1024];

int record_syscall_start(int syscall)
{
	int max, index;

	max = sizeof(syscall_record)/sizeof(syscall_record[0]);
	index = next_syscall_index(max);

	syscall_record[index].syscall = syscall;
	syscall_record[index].pid = current_pid();
	syscall_record[index].result = 0xdeadbeef;
	syscall_record[index].start = os_nsecs();
	return(index);
}

void record_syscall_end(int index, long result)
{
	syscall_record[index].result = result;
	syscall_record[index].end = os_nsecs();
}
Loading