lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <1363890560.21957.4.camel@WGA-RHEL6.3>
Date:	Thu, 21 Mar 2013 11:29:20 -0700
From:	Will Auld <will.auld.intel@...il.com>
To:	linux-kernel@...r.kernel.org
Cc:	acme@...hat.com, eranian@...gle.com, andi.kleen@...el.com,
	will.auld@...el.com
Subject: [PATCH] Adding an error message to indicate perf_event cgroup
 subsys not mounted.

Adding an error message to indicate that there is no mounted perf_event
cgroup while using -G or --cgroup options with perf.

Signed-off-by: Will Auld <will.auld@...el.com>
---
 tools/perf/util/cgroup.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/tools/perf/util/cgroup.c b/tools/perf/util/cgroup.c
index 96bbda1..4126beb 100644
--- a/tools/perf/util/cgroup.c
+++ b/tools/perf/util/cgroup.c
@@ -44,8 +44,10 @@ cgroupfs_find_mountpoint(char *buf, size_t maxlen)
 			break;
 	}
 	fclose(fp);
-	if (!found)
+	if (!found) {
+		error("No cgroup mounted with \'perf_event\' type");
 		return -1;
+	}
 
 	if (strlen(mountpoint) < maxlen) {
 		strcpy(buf, mountpoint);
-- 
1.7.1



--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ