python.c (6a4bb04caacc8c2d06f345130e9086e3fea38ca7) python.c (63dab225f334e0e21f7106aed8d888b500b53ce6)
1#include <Python.h>
2#include <structmember.h>
3#include <inttypes.h>
4#include <poll.h>
5#include "evlist.h"
6#include "evsel.h"
7#include "event.h"
8#include "cpumap.h"

--- 811 unchanged lines hidden (view full) ---

820 struct perf_evlist *evlist = &pevlist->evlist;
821 int group = 0;
822 static char *kwlist[] = { "group", NULL };
823
824 if (!PyArg_ParseTupleAndKeywords(args, kwargs, "|OOii", kwlist, &group))
825 return NULL;
826
827 if (group)
1#include <Python.h>
2#include <structmember.h>
3#include <inttypes.h>
4#include <poll.h>
5#include "evlist.h"
6#include "evsel.h"
7#include "event.h"
8#include "cpumap.h"

--- 811 unchanged lines hidden (view full) ---

820 struct perf_evlist *evlist = &pevlist->evlist;
821 int group = 0;
822 static char *kwlist[] = { "group", NULL };
823
824 if (!PyArg_ParseTupleAndKeywords(args, kwargs, "|OOii", kwlist, &group))
825 return NULL;
826
827 if (group)
828 perf_evlist__group(evlist);
828 perf_evlist__set_leader(evlist);
829
830 if (perf_evlist__open(evlist) < 0) {
831 PyErr_SetFromErrno(PyExc_OSError);
832 return NULL;
833 }
834
835 Py_INCREF(Py_None);
836 return Py_None;

--- 207 unchanged lines hidden ---
829
830 if (perf_evlist__open(evlist) < 0) {
831 PyErr_SetFromErrno(PyExc_OSError);
832 return NULL;
833 }
834
835 Py_INCREF(Py_None);
836 return Py_None;

--- 207 unchanged lines hidden ---