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>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Mon, 18 Jul 2016 19:49:19 -0300
From:	Arnaldo Carvalho de Melo <acme@...nel.org>
To:	Jiri Olsa <jolsa@...hat.com>
Cc:	Jiri Pirko <jiri@...lanox.com>, Jiri Olsa <jolsa@...nel.org>,
	lkml <linux-kernel@...r.kernel.org>,
	David Ahern <dsahern@...il.com>,
	Ingo Molnar <mingo@...nel.org>,
	Namhyung Kim <namhyung@...nel.org>,
	Peter Zijlstra <a.p.zijlstra@...llo.nl>,
	"Steven Rostedt (Red Hat)" <rostedt@...dmis.org>
Subject: Re: [PATCH 3/3] perf tests: Add is_printable_array test

Em Mon, Jul 18, 2016 at 02:14:09PM +0200, Jiri Olsa escreveu:
> On Mon, Jul 18, 2016 at 01:46:02PM +0200, Jiri Pirko wrote:
> 
> SNIP
> 
> > >diff --git a/tools/perf/tests/is_printable_array.c b/tools/perf/tests/is_printable_array.c
> > >new file mode 100644
> > >index 000000000000..42e13393e502
> > >--- /dev/null
> > >+++ b/tools/perf/tests/is_printable_array.c
> > >@@ -0,0 +1,36 @@
> > >+#include <linux/compiler.h>
> > >+#include "tests.h"
> > >+#include "debug.h"
> > >+#include "util.h"
> > >+
> > >+int test__is_printable_array(int subtest __maybe_unused)
> > >+{
> > >+	char buf1[] = { 'k', 'r', 4, 'v', 'a', 0 };
> > >+	char buf2[] = { 'k', 'r', 'a', 'v', 4, 0 };
> > >+	struct {
> > >+		char		*buf;
> > >+		unsigned int	 len;
> > >+		int		 ret;
> > >+	} t[] = {
> > >+		{ (char *) "krava",	sizeof("krava"),	1 },
> > >+		{ (char *) "krava",	sizeof("krava") - 1,	0 },
> > 
> > "a cow" ? Really? :))
> 
> yea, trying to force it as 'perf animal' instead of that pony stuff ;-)
> 
> http://www.brendangregg.com/blog/2015-07-08/choosing-a-linux-tracer.html

Yeah, a vaca! 8-)

- ARnaldo

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ