Helgrind: add suppression for libnss from getaddrinfo
[valgrind.git] / drd / drd_load_store.h
blob1bd7eccec5c5865262a3c6b364732236bade6812
1 /*
2 This file is part of drd, a thread error detector.
4 Copyright (C) 2006-2020 Bart Van Assche <bvanassche@acm.org>.
6 This program is free software; you can redistribute it and/or
7 modify it under the terms of the GNU General Public License as
8 published by the Free Software Foundation; either version 2 of the
9 License, or (at your option) any later version.
11 This program is distributed in the hope that it will be useful, but
12 WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with this program; if not, see <http://www.gnu.org/licenses/>.
19 The GNU General Public License is contained in the file COPYING.
24 * Functions related to instrumentation of loads and stores.
28 #ifndef __DRD_LOAD_STORE_H
29 #define __DRD_LOAD_STORE_H
32 #include <libvex.h> /* IRSB */
33 #include <pub_tool_tooliface.h> /* VgCallbackClosure */
36 Bool DRD_(get_check_stack_accesses)(void);
37 void DRD_(set_check_stack_accesses)(const Bool c);
38 Bool DRD_(get_first_race_only)(void);
39 void DRD_(set_first_race_only)(const Bool fro);
40 IRSB* DRD_(instrument)(VgCallbackClosure* const closure,
41 IRSB* const bb_in,
42 const VexGuestLayout* const layout,
43 const VexGuestExtents* const vge,
44 const VexArchInfo* const archinfo_host,
45 IRType const gWordTy,
46 IRType const hWordTy);
47 void DRD_(trace_mem_access)(const Addr addr, const SizeT size,
48 const BmAccessTypeT access_type,
49 const HWord stored_value_hi,
50 const HWord stored_value_lo);
51 VG_REGPARM(2) void DRD_(trace_load)(Addr addr, SizeT size);
52 VG_REGPARM(2) void DRD_(trace_store)(Addr addr, SizeT size);
53 void DRD_(clean_memory)(const Addr a1, const SizeT len);
56 #endif // __DRD_LOAD_STORE_H