Commit eeb8f763 authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Pavel Emelyanov

eventfd: Tune up fdinfo format for new kernel output

Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 16c410b1
......@@ -87,8 +87,8 @@ static int dump_one_eventfd(int lfd, u32 id, const struct fd_parms *p)
return -1;
}
pos = strstr(buf, "count-raw:");
if (!pos || !sscanf(pos, "count-raw: %lx", &efe.counter)) {
pos = strstr(buf, "eventfd-count:");
if (!pos || !sscanf(pos, "eventfd-count: %lx", &efe.counter)) {
pr_err("Counter value is not found for %d (%d)\n", p->fd, lfd);
return -1;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment