|
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__ */ |