-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* stop out cgroup functions when libcgroup isn't available * MOONRAY-4900: Add rocky-9 variants. * MOONRAY-4900: Update to existing breakpad even though to cmake build does not use it. * MOONRAY-4900: Converted to use libmicrohttpd for rocky-9 builds. * MOONRAY-4900: Add rocky-9 variants. * stop out cgroup functions when libcgroup isn't available * MOONRAY-4900: Update to existing breakpad even though to cmake build does not use it. * MOONRAY-4900: Converted to use libmicrohttpd for rocky-9 builds. * MOONRAY-4952 Add CMake options to set CXX11 ABI and abi-version (#18) * Add CMake options to set CXX11 ABI and abi-version Signed-off-by: James Horsley <jbhorsley@gmail.com> * Don't define _GLIBCXX_USE_CXX11_ABI * Add option for -fabi-version Signed-off-by: James Horsley <jbhorsley@gmail.com> Co-authored-by: James Horsley <jbhorsley@gmail.com> * MOONRAY-4900: Add rocky-9 variants. * stop out cgroup functions when libcgroup isn't available * MOONRAY-4900: Update to existing breakpad even though to cmake build does not use it. * MOONRAY-4900: Converted to use libmicrohttpd for rocky-9 builds. Signed-off-by: James Horsley <jbhorsley@gmail.com> Co-authored-by: Paul Ramsey <paul.ramsey@dreawworks.com> Co-authored-by: Jon Lanz <Jon.Lanz@dreamworks.com> Co-authored-by: James Horsley <jbhorsley@gmail.com>
- Loading branch information
1 parent
5fd1e75
commit 8e22420
Showing
9 changed files
with
203 additions
and
25 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,154 @@ | ||
|
||
enum { | ||
ECGROUPNOTCOMPILED = 50000, | ||
ECGEOF = 50023 | ||
}; | ||
|
||
struct cgroup { | ||
int stub; | ||
}; | ||
|
||
struct cgroup_controller { | ||
int stub; | ||
}; | ||
|
||
struct cgroup_stat { | ||
char name[1]; | ||
char value[1]; | ||
}; | ||
|
||
inline int | ||
cgroup_init(void) | ||
{ | ||
return ECGROUPNOTCOMPILED; | ||
} | ||
|
||
inline int | ||
cgroup_get_subsys_mount_point(const char *controller, char **mount_point) | ||
{ | ||
return ECGROUPNOTCOMPILED; | ||
} | ||
|
||
inline int | ||
cgroup_create_cgroup(struct cgroup *cgroup, int ignore_ownership) | ||
{ | ||
return ECGROUPNOTCOMPILED; | ||
} | ||
|
||
inline int | ||
cgroup_get_task_begin(const char *cgroup, const char *controller, void **handle, | ||
pid_t *pid) | ||
{ | ||
return 0; | ||
} | ||
|
||
inline int | ||
cgroup_get_task_end(void **handle) | ||
{ | ||
return ECGROUPNOTCOMPILED; | ||
} | ||
|
||
inline int | ||
cgroup_attach_task_pid(struct cgroup *cgroup, pid_t tid) | ||
{ | ||
return ECGROUPNOTCOMPILED; | ||
} | ||
|
||
inline const char * | ||
cgroup_strerror(int code) | ||
{ | ||
static char errorstr[] = "cgroups are disabled"; | ||
return errorstr; | ||
} | ||
|
||
inline struct cgroup_controller * | ||
cgroup_get_controller(struct cgroup *cgroup, const char *name) | ||
{ | ||
return nullptr; | ||
} | ||
|
||
inline struct cgroup_controller * | ||
cgroup_add_controller(struct cgroup *cgroup, | ||
const char *name) | ||
{ | ||
return nullptr; | ||
} | ||
|
||
inline int | ||
cgroup_get_value_uint64(struct cgroup_controller *controller, | ||
const char *name, u_int64_t *value) | ||
{ | ||
return ECGROUPNOTCOMPILED; | ||
} | ||
|
||
inline int | ||
cgroup_get_value_int64(struct cgroup_controller *controller, | ||
const char *name, int64_t *value) | ||
{ | ||
return ECGROUPNOTCOMPILED; | ||
} | ||
|
||
inline int | ||
cgroup_add_value_int64(struct cgroup_controller *controller, | ||
const char *name, int64_t value) | ||
{ | ||
return ECGROUPNOTCOMPILED; | ||
} | ||
|
||
inline int | ||
cgroup_add_value_uint64(struct cgroup_controller *controller, | ||
const char *name, u_int64_t value) | ||
{ | ||
return ECGROUPNOTCOMPILED; | ||
} | ||
|
||
inline struct cgroup * | ||
cgroup_new_cgroup(const char *name) | ||
{ | ||
return nullptr; | ||
} | ||
|
||
inline int | ||
cgroup_get_cgroup(struct cgroup *cgroup) | ||
{ | ||
return ECGROUPNOTCOMPILED; | ||
} | ||
|
||
inline int | ||
cgroup_modify_cgroup(struct cgroup *cgroup) | ||
{ | ||
return ECGROUPNOTCOMPILED; | ||
} | ||
|
||
inline int | ||
cgroup_delete_cgroup(struct cgroup *cgroup, int ignore_migration) | ||
{ | ||
return ECGROUPNOTCOMPILED; | ||
} | ||
|
||
inline void | ||
cgroup_free(struct cgroup **cgroup) | ||
{ | ||
} | ||
|
||
inline int | ||
cgroup_read_stats_begin(const char *controller, const char *path, void **handle, | ||
struct cgroup_stat *stat) | ||
{ | ||
return ECGROUPNOTCOMPILED; | ||
} | ||
|
||
inline int | ||
cgroup_read_stats_next(void **handle, struct cgroup_stat *stat) | ||
{ | ||
return ECGROUPNOTCOMPILED; | ||
} | ||
|
||
inline int | ||
cgroup_read_stats_end(void **handle) | ||
{ | ||
return ECGROUPNOTCOMPILED; | ||
} | ||
|
||
|
||
|
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