forked from open-mpi/ompi
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move profile funcs/stubs out to memprof file
Guard these using existing OPAL_ENABLE_MEM_PROFILE option that is enabled via '--enable-mem-profile' configury.
- Loading branch information
1 parent
f070e1c
commit a4f9d1c
Showing
6 changed files
with
94 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
/* | ||
* Copyright (c) 2018 Cisco Systems, Inc. All rights reserved. | ||
* Copyright (c) 2019 UT-Battelle, LLC. All rights reserved. | ||
* $COPYRIGHT$ | ||
* | ||
* Additional copyrights may follow | ||
* | ||
* $HEADER$ | ||
*/ | ||
|
||
#include "opal_config.h" | ||
#include "opal/util/memprof.h" | ||
|
||
|
||
void __attribute__((weak)) Tau_track_class_allocation(const char * name, | ||
size_t size) { | ||
|
||
} | ||
|
||
void __attribute__((weak)) Tau_track_class_deallocation(const char * name, | ||
size_t size) { | ||
|
||
} | ||
|
||
void __attribute__((weak)) Tau_start_class_allocation(const char * name, | ||
size_t size, | ||
int include_in_parent) { | ||
|
||
} | ||
|
||
void __attribute__((weak)) Tau_stop_class_allocation(const char * name, | ||
int record) { | ||
|
||
} | ||
|
||
void __attribute__((weak)) Tau_start_class_deallocation(const char * name, | ||
size_t size, | ||
int include_in_parent) { | ||
|
||
} | ||
|
||
void __attribute__((weak)) Tau_stop_class_deallocation(const char * name, | ||
int record) { | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
/* | ||
* 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-2005 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 (c) 2018 UT-Battelle, LLC. All rights reserved. | ||
* | ||
* $COPYRIGHT$ | ||
* | ||
* Additional copyrights may follow | ||
* | ||
* $HEADER$ | ||
*/ | ||
|
||
#ifndef OPAL_MEMPROF_H | ||
#define OPAL_MEMPROF_H | ||
|
||
BEGIN_C_DECLS | ||
|
||
#if OPAL_ENABLE_MEM_PROFILE | ||
|
||
void __attribute__((weak)) Tau_track_class_allocation(const char * name, size_t size); | ||
void __attribute__((weak)) Tau_track_class_deallocation(const char * name, size_t size); | ||
void __attribute__((weak)) Tau_start_class_allocation(const char * name, size_t size, int include_in_parent); | ||
void __attribute__((weak)) Tau_stop_class_allocation(const char * name, int record); | ||
void __attribute__((weak)) Tau_start_class_deallocation(const char * name, size_t size, int include_in_parent); | ||
void __attribute__((weak)) Tau_stop_class_deallocation(const char * name, int record); | ||
|
||
#endif /* OPAL_ENABLE_MEM_PROFILE */ | ||
|
||
END_C_DECLS | ||
|
||
#endif /* OPAL_MEMPROF_H */ |