- export mmap/munmap so the memory manager can intercept this calls
This commit was SVN r14665.
Этот коммит содержится в:
родитель
61e889a1d9
Коммит
a97e65e7f7
@ -61,6 +61,7 @@ EXTRA_DIST = \
|
||||
README \
|
||||
ChangeLog \
|
||||
lran2.h \
|
||||
opal_ptmalloc2_munmap.h \
|
||||
t-test.h \
|
||||
t-test1.c \
|
||||
t-test2.c \
|
||||
|
@ -35,10 +35,11 @@
|
||||
|
||||
#include "opal/memoryhooks/memory_internal.h"
|
||||
|
||||
#include "opal_ptmalloc2_munmap.h"
|
||||
|
||||
/*
|
||||
* munmap is always intercepted
|
||||
*/
|
||||
int opal_mem_free_ptmalloc2_munmap(void *start, size_t length, int from_alloc);
|
||||
#if defined(HAVE___MUNMAP)
|
||||
int __munmap(void* addr, size_t len);
|
||||
#endif
|
||||
|
40
opal/mca/memory/ptmalloc2/opal_ptmalloc2_munmap.h
Обычный файл
40
opal/mca/memory/ptmalloc2/opal_ptmalloc2_munmap.h
Обычный файл
@ -0,0 +1,40 @@
|
||||
/*
|
||||
* Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
|
||||
* University Research and Technology
|
||||
* Corporation. All rights reserved.
|
||||
* Copyright (c) 2004-2005 The University of Tennessee and The University
|
||||
* of Tennessee Research Foundation. All rights
|
||||
* reserved.
|
||||
* Copyright (c) 2004-2007 High Performance Computing Center Stuttgart,
|
||||
* University of Stuttgart. All rights reserved.
|
||||
* Copyright (c) 2004-2005 The Regents of the University of California.
|
||||
* All rights reserved.
|
||||
* $COPYRIGHT$
|
||||
*
|
||||
* Additional copyrights may follow
|
||||
*
|
||||
* $HEADER$
|
||||
*/
|
||||
|
||||
#ifndef OPAL_PTMALLOC2_MUNMAP_H
|
||||
#define OPAL_PTMALLOC2_MUNMAP_H
|
||||
|
||||
#include "opal_config.h"
|
||||
|
||||
BEGIN_C_DECLS
|
||||
|
||||
int opal_mem_free_ptmalloc2_munmap(void *start, size_t length, int from_alloc);
|
||||
void* opal_mem_free_ptmalloc2_mmap(void *start, size_t length,
|
||||
int prot, int flags,
|
||||
int fd, off_t offset,
|
||||
int from_alloc);
|
||||
|
||||
OPAL_DECLSPEC void* mmap(void *start, size_t length, int prot, int flags,
|
||||
int fd, off_t offset);
|
||||
|
||||
OPAL_DECLSPEC int munmap(void* addr, size_t len);
|
||||
|
||||
|
||||
END_C_DECLS
|
||||
|
||||
#endif /* !OPAL_PTMALLOC2_MUNMAP_H */
|
Загрузка…
x
Ссылка в новой задаче
Block a user