View | Details | Raw Unified | Return to ticket 2443
Collapse All | Expand All

(-)a/src/plugins/accounting_storage/slurmdbd/accounting_storage_slurmdbd.c (+9 lines)
Lines 60-65 Link Here
60
60
61
#define BUFFER_SIZE 4096
61
#define BUFFER_SIZE 4096
62
62
63
/* Declare these functions as weak in order to support full relro builds. */
64
#if defined(__GNUC__) && defined(__ELF__)
65
/* TEST_CASE: sacct vs slurmctld */
66
void build_array_str(struct job_record *job_ptr) __attribute__((weak));
67
struct job_record *find_job_record(uint32_t job_id) __attribute__((weak));
68
void lock_slurmctld (slurmctld_lock_t lock_levels) __attribute__((weak));
69
void unlock_slurmctld (slurmctld_lock_t lock_levels) __attribute__((weak));
70
#endif
71
63
/* These are defined here so when we link with something other than
72
/* These are defined here so when we link with something other than
64
 * the slurmctld we will have these symbols defined.  They will get
73
 * the slurmctld we will have these symbols defined.  They will get
65
 * overwritten when linking with the slurmctld.
74
 * overwritten when linking with the slurmctld.
(-)a/src/plugins/jobacct_gather/cgroup/jobacct_gather_cgroup.h (+31 lines)
Lines 39-44 Link Here
39
 *  Copyright (C) 2002 The Regents of the University of California.
39
 *  Copyright (C) 2002 The Regents of the University of California.
40
\*****************************************************************************/
40
\*****************************************************************************/
41
41
42
#ifndef __JOBACCT_GATHER_CGROUP_H__
43
#define __JOBACCT_GATHER_CGROUP_H__
44
42
#include "src/common/slurm_jobacct_gather.h"
45
#include "src/common/slurm_jobacct_gather.h"
43
#include "src/common/xcgroup_read_config.h"
46
#include "src/common/xcgroup_read_config.h"
44
#include "src/slurmd/common/xcgroup.h"
47
#include "src/slurmd/common/xcgroup.h"
Lines 76-78 extern int jobacct_gather_cgroup_memory_attach_task( Link Here
76
/* 	pid_t pid, jobacct_id_t *jobacct_id); */
79
/* 	pid_t pid, jobacct_id_t *jobacct_id); */
77
80
78
extern char* jobacct_cgroup_create_slurm_cg (xcgroup_ns_t* ns);
81
extern char* jobacct_cgroup_create_slurm_cg (xcgroup_ns_t* ns);
82
83
/* Declare these functions as weak in order to support full relro builds. */
84
#if defined(__GNUC__) && defined(__ELF__)
85
/* TEST_CASE: slurmctld vs slurmd */
86
int xcgroup_add_pids(xcgroup_t* cg, pid_t* pids, int npids)
87
	__attribute__((weak));
88
int xcgroup_create(xcgroup_ns_t* cgns, xcgroup_t* cg,
89
	char* uri, uid_t uid, gid_t gid) __attribute__((weak));
90
int xcgroup_delete(xcgroup_t* cg) __attribute__((weak));
91
void xcgroup_destroy(xcgroup_t* cg) __attribute__((weak));
92
int xcgroup_get_param(xcgroup_t* cg, char* param, char **content,
93
	size_t *csize) __attribute__((weak));
94
int xcgroup_ns_create(slurm_cgroup_conf_t *conf,
95
	xcgroup_ns_t* cgns, char* mnt_args, char* subsys)
96
	__attribute__((weak));
97
int xcgroup_instantiate(xcgroup_t* cg) __attribute__((weak));
98
int xcgroup_lock(xcgroup_t* cg) __attribute__((weak));
99
void xcgroup_ns_destroy(xcgroup_ns_t* cgns) __attribute__((weak));
100
int xcgroup_set_param(xcgroup_t* cg, char* parameter, char* content)
101
	__attribute__((weak));
102
int xcgroup_set_uint32_param(xcgroup_t* cg, char* parameter, uint32_t value)
103
	__attribute__((weak));
104
int xcgroup_unlock(xcgroup_t* cg) __attribute__((weak));
105
int xcpuinfo_fini(void) __attribute__((weak));
106
int xcpuinfo_init(void) __attribute__((weak));
107
#endif
108
109
#endif /* __JOBACCT_GATHER_CGROUP_H__ */
(-)a/src/plugins/jobacct_gather/common/common_jag.h (+7 lines)
Lines 74-77 extern void jag_common_poll_data( Link Here
74
	List task_list, bool pgid_plugin, uint64_t cont_id,
74
	List task_list, bool pgid_plugin, uint64_t cont_id,
75
	jag_callbacks_t *callbacks, bool profile);
75
	jag_callbacks_t *callbacks, bool profile);
76
76
77
/* Declare these functions as weak in order to support full relro builds. */
78
#if defined(__GNUC__) && defined(__ELF__)
79
/* TEST_CASE: slurmctld vs slurmd */
80
int proctrack_g_get_pids(uint64_t cont_id, pid_t **pids, int *npids)
81
	__attribute__((weak));
82
#endif
83
77
#endif
84
#endif
(-)a/src/plugins/node_features/knl_generic/node_features_knl_generic.c (+6 lines)
Lines 113-118 Link Here
113
#define DEFAULT_MCDRAM_SIZE ((uint64_t) 16 * 1024 * 1024 * 1024)
113
#define DEFAULT_MCDRAM_SIZE ((uint64_t) 16 * 1024 * 1024 * 1024)
114
#endif
114
#endif
115
115
116
/* Declare these functions as weak in order to support full relro builds. */
117
#if defined(__GNUC__) && defined(__ELF__)
118
/* TEST_CASE: slurmctld vs slurmd */
119
int ume_notify(void) __attribute__((weak));
120
#endif
121
116
/* These are defined here so when we link with something other than
122
/* These are defined here so when we link with something other than
117
 * the slurmctld we will have these symbols defined.  They will get
123
 * the slurmctld we will have these symbols defined.  They will get
118
 * overwritten when linking with the slurmctld.
124
 * overwritten when linking with the slurmctld.
(-)a/src/plugins/select/cons_res/select_cons_res.h (+11 lines)
Lines 122-125 extern void cr_sort_part_rows(struct part_res_record *p_ptr); Link Here
122
extern uint32_t cr_get_coremap_offset(uint32_t node_index);
122
extern uint32_t cr_get_coremap_offset(uint32_t node_index);
123
extern int cr_cpus_per_core(struct job_details *details, int node_inx);
123
extern int cr_cpus_per_core(struct job_details *details, int node_inx);
124
124
125
/* Declare these functions as weak in order to support full relro builds. */
126
#if defined(__GNUC__) && defined(__ELF__)
127
/* TEST_CASE: slurmd vs srun */
128
int drain_nodes(char *nodes, char *reason, uint32_t reason_uid)
129
	__attribute__((weak));
130
uint32_t powercap_get_cluster_current_cap(void) __attribute__((weak));
131
uint16_t slurm_job_preempt_mode(struct job_record *job_ptr)
132
       __attribute__((weak));
133
int which_power_layout(void) __attribute__((weak));
134
#endif
135
125
#endif /* !_CONS_RES_H */
136
#endif /* !_CONS_RES_H */
(-)a/src/plugins/select/linear/select_linear.h (+7 lines)
Lines 83-86 struct cr_record { Link Here
83
	uint16_t tot_job_len;		/* length of tot_job_ids array */
83
	uint16_t tot_job_len;		/* length of tot_job_ids array */
84
};
84
};
85
85
86
/* Declare these functions as weak in order to support full relro builds. */
87
#if defined(__GNUC__) && defined(__ELF__)
88
/* TEST_CASE: slurmd vs srun */
89
uint16_t slurm_job_preempt_mode(struct job_record *job_ptr)
90
	__attribute__((weak));
91
#endif
92
86
#endif /* !_SELECT_LINEAR_H */
93
#endif /* !_SELECT_LINEAR_H */
(-)a/src/plugins/select/serial/select_serial.h (+9 lines)
Lines 111-114 extern struct node_use_record *select_node_usage; Link Here
111
extern void cr_sort_part_rows(struct part_res_record *p_ptr);
111
extern void cr_sort_part_rows(struct part_res_record *p_ptr);
112
extern uint32_t cr_get_coremap_offset(uint32_t node_index);
112
extern uint32_t cr_get_coremap_offset(uint32_t node_index);
113
113
114
/* Declare these functions as weak in order to support full relro builds. */
115
#if defined(__GNUC__) && defined(__ELF__)
116
/* TEST_CASE: slurmd vs srun */
117
int drain_nodes(char *nodes, char *reason, uint32_t reason_uid)
118
       __attribute__((weak));
119
uint16_t slurm_job_preempt_mode(struct job_record *job_ptr)
120
       __attribute__((weak));
121
#endif
122
114
#endif /* !_SELECT_SERIAL_H */
123
#endif /* !_SELECT_SERIAL_H */

Return to ticket 2443