c7c3de87f5
http://marc.info/?l=linux-mm-commits&m=127352503417787&w=2 for more details. * Remove the ptmalloc memory component; replace it with a new "linux" memory component. * The linux memory component will conditionally compile in support for ummunotify. At run-time, if it has ummunotify support and finds run-time support for ummunotify (i.e., /dev/ummunotify), it uses it. If not, it tries to use ptmalloc via the glibc memory hooks. * Add some more API functions to the memory framework to accomodate the ummunotify model (i.e., poll to see if memory has "changed"). * Add appropriate calls in the rcache to the new memory APIs to see if memory has changed, and to react accordingly. * Add a few comments in the openib BTL to indicate why we don't need to notify the OPAL memory framework about specific instances of registered memory. * Add dummy API calls in the solaris malloc component (since it doesn't have polling/"did memory change" support). This commit was SVN r23113.
25 строки
569 B
C
25 строки
569 B
C
/*
|
|
* Copyright (c) 2009-2010 Cisco Systems, Inc. All rights reserved.
|
|
* $COPYRIGHT$
|
|
*
|
|
* Additional copyrights may follow
|
|
*
|
|
* $HEADER$
|
|
*/
|
|
|
|
#ifndef OPAL_MEMORY_LINUX_PUBLIC_H
|
|
#define OPAL_MEMORY_LINUX_PUBLIC_H
|
|
|
|
#include "opal_config.h"
|
|
|
|
#include <sys/types.h>
|
|
|
|
OPAL_DECLSPEC extern volatile uint64_t *opal_memory_linux_ummunotify_counter;
|
|
OPAL_DECLSPEC extern uint64_t opal_memory_linux_ummunotify_counter_last_value;
|
|
|
|
#define opal_memory_changed() \
|
|
(opal_memory_linux_ummunotify_counter_last_value != \
|
|
*opal_memory_linux_ummunotify_counter)
|
|
|
|
#endif
|