]>
git.proxmox.com Git - mirror_lxcfs.git/log
Christian Brauner [Sun, 5 Jul 2020 08:19:53 +0000 (10:19 +0200)]
cgroups: replace leftover reference to legacy terms
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Fri, 3 Jul 2020 11:24:02 +0000 (13:24 +0200)]
cgroups: update terminology
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Fri, 3 Jul 2020 10:51:35 +0000 (12:51 +0200)]
bindings: update terminology
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Wed, 24 Jun 2020 11:13:25 +0000 (13:13 +0200)]
proc_fuse: provide host values when kernel does not support swap accounting
Link: https://discuss.linuxcontainers.org/t/invalid-swaptotal-in-proc-meminfo-swaptotal-0
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Stéphane Graber [Thu, 18 Jun 2020 19:56:31 +0000 (15:56 -0400)]
Release LXCFS 4.0.4
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
Christian Brauner [Wed, 10 Jun 2020 08:17:22 +0000 (10:17 +0200)]
proc_cpuview: cleanup cpuview_init_head()
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Wed, 10 Jun 2020 08:11:35 +0000 (10:11 +0200)]
proc_cpuview: cleanup cpuview_proc_stat()
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Wed, 10 Jun 2020 08:07:58 +0000 (10:07 +0200)]
proc_cpuview: fix max_cpu_count()
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Wed, 10 Jun 2020 08:06:36 +0000 (10:06 +0200)]
proc_cpuview: fix exact_cpu_count()
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Wed, 10 Jun 2020 08:05:26 +0000 (10:05 +0200)]
proc_cpuview: cleanup read_cpu_cfs_param()
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Wed, 10 Jun 2020 08:00:16 +0000 (10:00 +0200)]
proc_cpuview: cleanup add_cpu_usage()
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Wed, 10 Jun 2020 07:59:01 +0000 (09:59 +0200)]
proc_cpuview: clean up find_or_create_proc_stat_node()
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Wed, 10 Jun 2020 07:56:31 +0000 (09:56 +0200)]
proc_cpuview: clean up prune_proc_stat_list()
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Wed, 10 Jun 2020 07:52:53 +0000 (09:52 +0200)]
proc_cpuview: clean up expand_proc_stat_node()
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Wed, 10 Jun 2020 07:50:18 +0000 (09:50 +0200)]
proc_cpuview: use correct comment style
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Wed, 10 Jun 2020 07:48:55 +0000 (09:48 +0200)]
proc_cpuview: cleanup add_proc_stat_node()
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Wed, 10 Jun 2020 07:35:37 +0000 (09:35 +0200)]
proc_cpuview: reduce variable scope in cpuview_free_head()
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Wed, 10 Jun 2020 07:35:16 +0000 (09:35 +0200)]
proc_cpuview: use more descriptive labels in add_proc_stat_node()
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Wed, 10 Jun 2020 07:23:33 +0000 (09:23 +0200)]
proc_cpuview: cleanup new_proc_stat_node()
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Tue, 9 Jun 2020 13:38:15 +0000 (15:38 +0200)]
proc_fuse: more swap tweaks
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Tue, 9 Jun 2020 12:30:04 +0000 (14:30 +0200)]
proc_cpuview: tweak cpuacct.percpu_usage fallback
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Tue, 9 Jun 2020 09:29:25 +0000 (11:29 +0200)]
proc_fuse: cap swap to global values
Closes: #412.
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Mon, 8 Jun 2020 22:05:48 +0000 (00:05 +0200)]
proc_fuse: don't cause invalid swap values
Closes: #412.
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Mon, 8 Jun 2020 21:31:35 +0000 (23:31 +0200)]
proc_fuse: improve swap calculation a little
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Fri, 5 Jun 2020 15:03:32 +0000 (17:03 +0200)]
utils: don't leak fds in in_same_namespace()
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Fri, 5 Jun 2020 13:42:41 +0000 (15:42 +0200)]
proc_fuse: cleanup proc_uptime_read() a little
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Fri, 5 Jun 2020 12:53:54 +0000 (14:53 +0200)]
proc_fuse: move get_reaper_busy() down
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Fri, 5 Jun 2020 11:24:33 +0000 (13:24 +0200)]
proc_loadavg: avoid needless memory allocation
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Fri, 5 Jun 2020 11:23:31 +0000 (13:23 +0200)]
proc_loadavg: remove dummy variable
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Fri, 5 Jun 2020 11:11:39 +0000 (13:11 +0200)]
proc_loadavg: use must_* alloc helpers
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Fri, 5 Jun 2020 11:11:27 +0000 (13:11 +0200)]
proc_fuse: use zalloc()
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Fri, 5 Jun 2020 10:59:05 +0000 (12:59 +0200)]
lxcfs: free opts on lxcfs binary exit
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Fri, 5 Jun 2020 10:52:12 +0000 (12:52 +0200)]
bindings: avoid dynamic stack allocations in clone()
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Fri, 5 Jun 2020 10:41:00 +0000 (12:41 +0200)]
bindings: wipe initpid cache on library reload
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Fri, 5 Jun 2020 10:24:15 +0000 (12:24 +0200)]
proc_loadavg: simplify calc_pid()
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Fri, 5 Jun 2020 10:13:01 +0000 (12:13 +0200)]
proc_loadavg(): use strdup() in calc_pid()
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Fri, 5 Jun 2020 10:12:32 +0000 (12:12 +0200)]
macro: use ISO C compatible __typeof__
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Fri, 5 Jun 2020 09:44:56 +0000 (11:44 +0200)]
proc_loadavg: replace malloc() with asprintf() in calc_pid()
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Fri, 5 Jun 2020 09:44:37 +0000 (11:44 +0200)]
proc_loadavg: don't leak getline() memory
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Fri, 5 Jun 2020 09:43:10 +0000 (11:43 +0200)]
proc_loadavg: ensure pointer is NULL when passing to calc_pid()
We passed down an uninitialized pointer that we then pass to realloc()
which is problematic since it contains garbage.
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Fri, 5 Jun 2020 09:42:31 +0000 (11:42 +0200)]
proc_loadavg: don't leak getline() memory in calc_pid()
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Thu, 4 Jun 2020 18:14:49 +0000 (20:14 +0200)]
bindings: s/get_init_pid_for_task()/scm_init_pid()/g
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Tue, 2 Jun 2020 14:10:20 +0000 (16:10 +0200)]
cpuview: fix /proc/stat virtualization
Closes: #406.
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Thu, 28 May 2020 12:24:06 +0000 (14:24 +0200)]
bindings: cleanup init pid verification
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Thu, 28 May 2020 12:07:09 +0000 (14:07 +0200)]
bindings: cleanup cache locking
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Thu, 28 May 2020 11:31:59 +0000 (13:31 +0200)]
bindings: use brackets to make logic clearer
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Thu, 28 May 2020 11:27:37 +0000 (13:27 +0200)]
bindings: make opts pointer const
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Thu, 28 May 2020 09:03:05 +0000 (11:03 +0200)]
bindings: fix init pid hashing
We were stupidly always hashing entry->ino where entry was just freshly
allocated zeroed-memory so we effectively added stuff to the cache
forever but this meant:
- we never found a match when we hashed the actual inode
- we kept growing the cache
- we leaked memory
Closes: #407.
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Stéphane Graber [Fri, 22 May 2020 17:01:40 +0000 (13:01 -0400)]
coverity: Use build custom build script
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
Joseph Moore [Wed, 6 May 2020 20:23:35 +0000 (13:23 -0700)]
Fix https://github.com/lxc/lxcfs/issues/404
reset read_pos=0 after building usage_str
Signed-off-by: Joseph Moore <joemoore1123@gmail.com>
Christian Brauner [Tue, 28 Apr 2020 11:24:00 +0000 (13:24 +0200)]
sysfs_fuse: remove logically dead code
Fixes: Coverity 357808.
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Tue, 28 Apr 2020 08:35:26 +0000 (10:35 +0200)]
sysfs: cpuinfo: show cgroup cpuset value
To stop the immediate bleeding.
Closes #401.
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Wolfgang Bumiller [Fri, 24 Apr 2020 07:17:06 +0000 (09:17 +0200)]
proc_fuse: silence error when we find no memlimit
We get a positive result with an empty string if we do not
encounter any limits while walking up the cgroup.
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Stéphane Graber [Fri, 17 Apr 2020 20:14:26 +0000 (16:14 -0400)]
Release LXCFS 4.0.3
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
Stéphane Graber [Fri, 17 Apr 2020 19:59:53 +0000 (21:59 +0200)]
proc_fuse: improve swap calculation
Stéphane has been running into issues with wrong sawp limits. The logic
he suggested does:
- if memory == memory+swap, we list both at the memlimit for total size
- if memory+swap is larger than memory, then we add the extra amount to
total swap but still cap to physical swap limit
We came to the conclusion that this is currently the best approach as we
show the mem limit as both Memory and Swap so advertising twice as much
as allowed but there's no way around that really or we'd need to
dynamically update both MemTotal and SwapTotal based on what's used to
keep MemTotal+SwapTotal == limit that's certainly doable but it will be
somewhat racy and also likely confused userspace more than mis-reporting
swap.
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Fri, 17 Apr 2020 15:50:56 +0000 (17:50 +0200)]
cgroups: simplify cgroup_walkup_to_root()
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Fri, 17 Apr 2020 13:33:01 +0000 (15:33 +0200)]
cgroups: please Coverity
Fixes: Coverity 355759.
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Fri, 17 Apr 2020 11:20:52 +0000 (13:20 +0200)]
tests: correctly skip readdir test
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Fri, 17 Apr 2020 10:20:55 +0000 (12:20 +0200)]
cgroups: more cgroup2 fun
Try too read a valid value from a given cgroup file. If it is a legacy
cgroup hierarchy and we fail to find a valid value we terminate early
and report an error.
The cgroup2 hierarchy however, has different semantics. In a few
controller files it will show the value "max" or simply leave it
completely empty thereby indicating that no limit has been set for this
particular cgroup. However, that doesn't mean that there's no limit. A
cgroup further up the hierarchy could have a limit set that also applies
to the cgroup we are interested in. So for the unified cgroup hierarchy
we need to keep walking towards the cgroup2 root cgroup and try to parse
a valid value.
Fixes: #389.
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Thu, 16 Apr 2020 17:12:34 +0000 (19:12 +0200)]
bindings: use zalloc()
Fixes: Coverity 355747.
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Thu, 16 Apr 2020 15:58:37 +0000 (17:58 +0200)]
utils: fix recv_creds()
Fixes: Coverity 355704.
Fixes: Coverity 355718.
Fixes: Coverity 355738.
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Thu, 16 Apr 2020 15:45:04 +0000 (17:45 +0200)]
lxcfs: don't cause a uaf
Fixes: Coverity 355711.
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Thu, 16 Apr 2020 15:43:00 +0000 (17:43 +0200)]
cgroup_fuse: be cautios when dereferencing d->controller
Fixes: Coverity 355712.
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Thu, 16 Apr 2020 15:39:05 +0000 (17:39 +0200)]
bindings: do not falsely return
This may also explain some of the performance regressions that Blub\0
reported.
Fixes: Coverity 355716.
Cc: Wolfgang Bumiller <w.bumiller@proxmox.com>
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Thu, 16 Apr 2020 15:34:42 +0000 (17:34 +0200)]
cgroup_fuse: s/clone/lxcfs_clone/g
Fixes: Coverity 355713.
Fixes: Coverity 355723.
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Thu, 16 Apr 2020 15:31:12 +0000 (17:31 +0200)]
lxcfs: remove fl.* prefix
Fixes: Coverity 355708.
Fixes: Coverity 355702.
Fixes: Coverity 355729.
Fixes: Coverity 355735.
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Thu, 16 Apr 2020 15:27:58 +0000 (17:27 +0200)]
cgroup_fuse: do not double-close
Fixes: Coverity 355703.
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Thu, 16 Apr 2020 16:51:03 +0000 (18:51 +0200)]
.travis: fix coverity
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Wed, 15 Apr 2020 13:32:44 +0000 (15:32 +0200)]
memory_utils: make it easier for Coverity
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Wed, 15 Apr 2020 13:15:02 +0000 (15:15 +0200)]
travis: enable coverity integration
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Wolfgang Bumiller [Wed, 15 Apr 2020 08:41:01 +0000 (10:41 +0200)]
relax init pid store locking a bit
So we don't keep holding it throughout the expensive the
fork/clone/send cycle of figuring out a namespace's init
pid.
Also change some functions to pass the init namespace inode
instead of the process' struct stat, so that it is obvious
that we don't use other parts of the stat info. The reason
is that we previously acquired the store lock before doing
the call to `stat()` and therefore it may not be immediately
obvious that things such as the timestamps found inside the
`struct stat` are not contributing to any race between the
multiple acquisitions of the store lock.
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Dmitry Petrashko [Thu, 9 Apr 2020 01:27:06 +0000 (18:27 -0700)]
Fix #387. Include `:` in matching of lines in /proc/meminfo
Some lines of /proc/meminfo can be prefixes of the other,
e.g. `Writeback:` and `WritebackTmp:`
This means that in order to to precise match, the code should always match up until `:`
Signed-off-by: Dmitry Petrashko <dark@d-d.me>
Stéphane Graber [Tue, 7 Apr 2020 18:14:03 +0000 (14:14 -0400)]
Release LXCFS 4.0.2
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
Stéphane Graber [Wed, 25 Mar 2020 14:55:51 +0000 (10:55 -0400)]
tests: Handle different lib paths
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
Christian Brauner [Tue, 24 Mar 2020 09:03:06 +0000 (10:03 +0100)]
proc_fuse: fix swap calculations
The sscanf() line got removed on accident.
Closes #384.
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Fri, 20 Mar 2020 17:42:37 +0000 (18:42 +0100)]
tree-wide: add and use syscall_numbers.h
The same thing that I did for LXC.
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Fri, 20 Mar 2020 10:22:46 +0000 (11:22 +0100)]
proc_fuse: improve /proc/uptime virtualization
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Fri, 20 Mar 2020 10:07:16 +0000 (11:07 +0100)]
proc_fuse: memory virtualization improvements
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Fri, 20 Mar 2020 09:46:40 +0000 (10:46 +0100)]
proc_fuse: improve /proc/meminfo
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Stéphane Graber [Thu, 19 Mar 2020 14:20:44 +0000 (10:20 -0400)]
Release LXCFS 4.0.1
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
Christian Brauner [Wed, 18 Mar 2020 14:35:43 +0000 (15:35 +0100)]
cgroup_fuse: actually make asz check mean something
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Stéphane Graber [Wed, 18 Mar 2020 16:14:43 +0000 (12:14 -0400)]
tests: Silence build output
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
Christian Brauner [Tue, 17 Mar 2020 09:41:17 +0000 (10:41 +0100)]
cgroup_utils: remove dot_or_empty()
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Tue, 17 Mar 2020 09:40:47 +0000 (10:40 +0100)]
cgroup_fuse: rework cgfs_iterate_cgroup()
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Tue, 17 Mar 2020 09:34:39 +0000 (10:34 +0100)]
cgroup_fuse: rework cgfs_set_value()
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Tue, 17 Mar 2020 09:29:40 +0000 (10:29 +0100)]
cgroup_fuse: rework open_pids_file()
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Tue, 17 Mar 2020 09:23:57 +0000 (10:23 +0100)]
cgroup_fuse: rework cgfs_chown_file()
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Tue, 17 Mar 2020 09:18:05 +0000 (10:18 +0100)]
cgroup_fuse: rework cgfs_chmod_file()
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Tue, 17 Mar 2020 09:16:45 +0000 (10:16 +0100)]
cgroup_fuse: rework cgfs_remove()
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Tue, 17 Mar 2020 09:15:12 +0000 (10:15 +0100)]
cgroup_fuse: rework cgfs_create()
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Tue, 17 Mar 2020 09:13:49 +0000 (10:13 +0100)]
cgroup_fuse: rework cgfs_get_key()
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Tue, 17 Mar 2020 09:08:21 +0000 (10:08 +0100)]
cgroup_fuse: rework is_child_cgroup()
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Tue, 17 Mar 2020 09:05:53 +0000 (10:05 +0100)]
tree-wide: remove is_relative() and use must_make_path_relative()
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Mon, 16 Mar 2020 21:16:51 +0000 (22:16 +0100)]
tree-wide: add and use must_make_path_relative()
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Mon, 16 Mar 2020 19:59:41 +0000 (20:59 +0100)]
proc_cpuview: fix compiler warning
proc_cpuview.c: In function ‘read_cpu_cfs_param’:
proc_cpuview.c:440:39: error: use of assignment suppression and length modifier together in gnu_scanf format [-Werror=format=]
440 | if (sscanf(str, first ? "%" PRId64 : "%*" PRId64 " %" PRId64, value) != 1)
| ^~~~
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Mon, 16 Mar 2020 19:24:59 +0000 (20:24 +0100)]
proc_loadvg: fixes
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Mon, 16 Mar 2020 17:55:09 +0000 (18:55 +0100)]
utils: shut up compiler
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Mon, 16 Mar 2020 16:46:57 +0000 (17:46 +0100)]
cgroups: remove unused function
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Mon, 16 Mar 2020 16:34:34 +0000 (17:34 +0100)]
tree-wide: fix dot_or_empty()
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Mon, 16 Mar 2020 13:05:11 +0000 (14:05 +0100)]
tree-wide: memory utils improvements
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>