Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1445428
| From | Jiri Olsa <jolsa@redhat.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 3/3] perf tests: Add is_printable_array test |
| Date | 2016-07-18 14:20 +0200 |
| Message-ID | <rWfGF-62e-19@gated-at.bofh.it> (permalink) |
| References | <rVAtP-5ZD-11@gated-at.bofh.it> <rVAtP-5ZD-9@gated-at.bofh.it> <rWfGF-62e-21@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
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
jirka
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 3/3] perf tests: Add is_printable_array test Jiri Olsa <jolsa@kernel.org> - 2016-07-16 18:20 +0200
Re: [PATCH 3/3] perf tests: Add is_printable_array test Jiri Olsa <jolsa@redhat.com> - 2016-07-18 14:20 +0200
Re: [PATCH 3/3] perf tests: Add is_printable_array test Arnaldo Carvalho de Melo <acme@kernel.org> - 2016-07-19 00:50 +0200
[tip:perf/core] perf tests: Add is_printable_array test tip-bot for Jiri Olsa <tipbot@zytor.com> - 2016-07-19 09:00 +0200
csiph-web