cgroup.c (0ac25fd0a04d8bd52ceac2476e71a4e497489987) | cgroup.c (f2a39fe84901df2b3d1bec3459b65cee3e8db57c) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2#include <subcmd/parse-options.h> 3#include "evsel.h" 4#include "cgroup.h" 5#include "evlist.h" 6#include <linux/stringify.h> 7#include <linux/zalloc.h> 8#include <sys/types.h> 9#include <sys/stat.h> 10#include <fcntl.h> | 1// SPDX-License-Identifier: GPL-2.0 2#include <subcmd/parse-options.h> 3#include "evsel.h" 4#include "cgroup.h" 5#include "evlist.h" 6#include <linux/stringify.h> 7#include <linux/zalloc.h> 8#include <sys/types.h> 9#include <sys/stat.h> 10#include <fcntl.h> |
11#include <stdlib.h> 12#include <string.h> |
|
11 12int nr_cgroups; 13 14static int 15cgroupfs_find_mountpoint(char *buf, size_t maxlen) 16{ 17 FILE *fp; 18 char mountpoint[PATH_MAX + 1], tokens[PATH_MAX + 1], type[PATH_MAX + 1]; --- 232 unchanged lines hidden --- | 13 14int nr_cgroups; 15 16static int 17cgroupfs_find_mountpoint(char *buf, size_t maxlen) 18{ 19 FILE *fp; 20 char mountpoint[PATH_MAX + 1], tokens[PATH_MAX + 1], type[PATH_MAX + 1]; --- 232 unchanged lines hidden --- |