Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 257029
b: refs/heads/master
c: 6434815
h: refs/heads/master
i:
  257027: 7564e81
v: v3
  • Loading branch information
Frederic Weisbecker authored and Arnaldo Carvalho de Melo committed Jun 2, 2011
1 parent 04eb781 commit 820465c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e95cc02880947e9f77540b03e166470e8ac14cbc
refs/heads/master: 64348153c63b8c1f99f19f14a9c3cbd5df70c9d3
17 changes: 9 additions & 8 deletions trunk/tools/perf/util/python.c
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ struct pyrf_cpu_map {
static int pyrf_cpu_map__init(struct pyrf_cpu_map *pcpus,
PyObject *args, PyObject *kwargs)
{
static char *kwlist[] = { "cpustr", NULL, NULL, };
static char *kwlist[] = { "cpustr", NULL };
char *cpustr = NULL;

if (!PyArg_ParseTupleAndKeywords(args, kwargs, "|s",
Expand Down Expand Up @@ -316,7 +316,7 @@ struct pyrf_thread_map {
static int pyrf_thread_map__init(struct pyrf_thread_map *pthreads,
PyObject *args, PyObject *kwargs)
{
static char *kwlist[] = { "pid", "tid", NULL, NULL, };
static char *kwlist[] = { "pid", "tid", NULL };
int pid = -1, tid = -1;

if (!PyArg_ParseTupleAndKeywords(args, kwargs, "|ii",
Expand Down Expand Up @@ -418,7 +418,9 @@ static int pyrf_evsel__init(struct pyrf_evsel *pevsel,
"wakeup_events",
"bp_type",
"bp_addr",
"bp_len", NULL, NULL, };
"bp_len",
NULL
};
u64 sample_period = 0;
u32 disabled = 0,
inherit = 0,
Expand Down Expand Up @@ -499,7 +501,7 @@ static PyObject *pyrf_evsel__open(struct pyrf_evsel *pevsel,
struct thread_map *threads = NULL;
PyObject *pcpus = NULL, *pthreads = NULL;
int group = 0, inherit = 0;
static char *kwlist[] = {"cpus", "threads", "group", "inherit", NULL, NULL};
static char *kwlist[] = { "cpus", "threads", "group", "inherit", NULL };

if (!PyArg_ParseTupleAndKeywords(args, kwargs, "|OOii", kwlist,
&pcpus, &pthreads, &group, &inherit))
Expand Down Expand Up @@ -582,8 +584,7 @@ static PyObject *pyrf_evlist__mmap(struct pyrf_evlist *pevlist,
PyObject *args, PyObject *kwargs)
{
struct perf_evlist *evlist = &pevlist->evlist;
static char *kwlist[] = {"pages", "overwrite",
NULL, NULL};
static char *kwlist[] = { "pages", "overwrite", NULL };
int pages = 128, overwrite = false;

if (!PyArg_ParseTupleAndKeywords(args, kwargs, "|ii", kwlist,
Expand All @@ -603,7 +604,7 @@ static PyObject *pyrf_evlist__poll(struct pyrf_evlist *pevlist,
PyObject *args, PyObject *kwargs)
{
struct perf_evlist *evlist = &pevlist->evlist;
static char *kwlist[] = {"timeout", NULL, NULL};
static char *kwlist[] = { "timeout", NULL };
int timeout = -1, n;

if (!PyArg_ParseTupleAndKeywords(args, kwargs, "|i", kwlist, &timeout))
Expand Down Expand Up @@ -674,7 +675,7 @@ static PyObject *pyrf_evlist__read_on_cpu(struct pyrf_evlist *pevlist,
struct perf_evlist *evlist = &pevlist->evlist;
union perf_event *event;
int sample_id_all = 1, cpu;
static char *kwlist[] = {"cpu", "sample_id_all", NULL, NULL};
static char *kwlist[] = { "cpu", "sample_id_all", NULL };
int err;

if (!PyArg_ParseTupleAndKeywords(args, kwargs, "i|i", kwlist,
Expand Down

0 comments on commit 820465c

Please sign in to comment.