Release 4.14 tools/perf/tests/python-use.c
// SPDX-License-Identifier: GPL-2.0
/*
* Just test if we can load the python binding.
*/
#include <stdio.h>
#include <stdlib.h>
#include <linux/compiler.h>
#include "tests.h"
extern int verbose;
int test__python_use(struct test *test __maybe_unused, int subtest __maybe_unused)
{
char *cmd;
int ret;
if (asprintf(&cmd, "echo \"import sys ; sys.path.append('%s'); import perf\" | %s %s",
PYTHONPATH, PYTHON, verbose > 0 ? "" : "2> /dev/null") < 0)
return -1;
ret = system(cmd) ? -1 : 0;
free(cmd);
return ret;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Arnaldo Carvalho de Melo | 65 | 92.86% | 3 | 60.00% |
Namhyung Kim | 5 | 7.14% | 2 | 40.00% |
Total | 70 | 100.00% | 5 | 100.00% |
Overall Contributors
Person | Tokens | Prop | Commits | CommitProp |
Arnaldo Carvalho de Melo | 82 | 93.18% | 3 | 50.00% |
Namhyung Kim | 5 | 5.68% | 2 | 33.33% |
Greg Kroah-Hartman | 1 | 1.14% | 1 | 16.67% |
Total | 88 | 100.00% | 6 | 100.00% |
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.