blob: 947f950dc65646ad99f2c78301b5761f732106c3 [file] [log] [blame]
sewardjce5a5662005-10-06 03:19:49 +00001
2/*--------------------------------------------------------------------*/
3/*--- Handlers for syscalls on minor variants of Linux kernels. ---*/
4/*--- syswrap-linux-variants.c ---*/
5/*--------------------------------------------------------------------*/
6
7/*
8 This file is part of Valgrind, a dynamic binary instrumentation
9 framework.
10
sewardj4d474d02008-02-11 11:34:59 +000011 Copyright (C) 2000-2008 Julian Seward
sewardjce5a5662005-10-06 03:19:49 +000012 jseward@acm.org
13
14 This program is free software; you can redistribute it and/or
15 modify it under the terms of the GNU General Public License as
16 published by the Free Software Foundation; either version 2 of the
17 License, or (at your option) any later version.
18
19 This program is distributed in the hope that it will be useful, but
20 WITHOUT ANY WARRANTY; without even the implied warranty of
21 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
22 General Public License for more details.
23
24 You should have received a copy of the GNU General Public License
25 along with this program; if not, write to the Free Software
26 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
27 02111-1307, USA.
28
29 The GNU General Public License is contained in the file COPYING.
30*/
31
32/* The files syswrap-generic.c, syswrap-linux.c, syswrap-x86-linux.c,
33 syswrap-amd64-linux.c and syswrap-ppc32-linux.c, and associated
34 vki*.h header files, constitute Valgrind's model of how a vanilla
35 Linux kernel behaves with respect to syscalls.
36
37 On a few occasions, it is useful to run with a kernel that has some
38 (minor) extensions to the vanilla model, either due to running on a
39 hacked kernel, or using a vanilla kernel which has incorporated a
40 custom kernel module. Rather than clutter the standard model, all
41 such variant handlers are placed in here.
42
43 Unlike the C files for the standard model, this file should also
44 contain all constants/types needed for said wrappers. The vki*.h
45 headers should not be polluted with non-vanilla info. */
46
47
48#include "pub_core_basics.h"
sewardj4cfea4f2006-10-14 19:26:10 +000049#include "pub_core_vki.h"
sewardjce5a5662005-10-06 03:19:49 +000050#include "pub_core_threadstate.h"
51#include "pub_core_aspacemgr.h"
52#include "pub_core_debuginfo.h" // VG_(di_notify_*)
53#include "pub_core_transtab.h" // VG_(discard_translations)
54#include "pub_core_debuglog.h"
55#include "pub_core_libcbase.h"
56#include "pub_core_libcassert.h"
57#include "pub_core_libcfile.h"
58#include "pub_core_libcprint.h"
59#include "pub_core_libcproc.h"
60#include "pub_core_mallocfree.h"
61#include "pub_core_tooliface.h"
62#include "pub_core_options.h"
63#include "pub_core_scheduler.h"
64#include "pub_core_signals.h"
65#include "pub_core_syscall.h"
66
67#include "priv_types_n_macros.h"
68#include "priv_syswrap-linux-variants.h"
69
70
71/* ---------------------------------------------------------------
72 BProc wrappers
73 ------------------------------------------------------------ */
74
75/* Return 0 means hand to kernel, non-0 means fail w/ that value. */
76Int ML_(linux_variant_PRE_sys_bproc)( UWord arg1, UWord arg2,
77 UWord arg3, UWord arg4,
78 UWord arg5, UWord arg6 )
79{
80 return 0;
81}
82
83void ML_(linux_variant_POST_sys_bproc)( UWord arg1, UWord arg2,
84 UWord arg3, UWord arg4,
85 UWord arg5, UWord arg6 )
86{
87}
88
89
90/*--------------------------------------------------------------------*/
91/*--- end syswrap-linux-variants.c ---*/
92/*--------------------------------------------------------------------*/