~ubuntu-branches/debian/experimental/linux-tools/experimental

« back to all changes in this revision

Viewing changes to tools/perf/util/scripting-engines/trace-event-python.c

  • Committer: Package Import Robot
  • Author(s): Ben Hutchings
  • Date: 2014-02-02 16:57:49 UTC
  • mfrom: (1.1.10) (0.1.21 sid)
  • Revision ID: package-import@ubuntu.com-20140202165749-tw94o9t1t0a8txk6
Tags: 3.13-1~exp2
Merge changes from sid up to 3.12.6-3

Show diffs side-by-side

added added

removed removed

Lines of Context:
250
250
        int cpu = sample->cpu;
251
251
        void *data = sample->raw_data;
252
252
        unsigned long long nsecs = sample->time;
253
 
        char *comm = thread->comm;
 
253
        const char *comm = thread__comm_str(thread);
254
254
 
255
255
        t = PyTuple_New(MAX_FIELDS);
256
256
        if (!t)
389
389
        pydict_set_item_string_decref(dict, "raw_buf", PyString_FromStringAndSize(
390
390
                        (const char *)sample->raw_data, sample->raw_size));
391
391
        pydict_set_item_string_decref(dict, "comm",
392
 
                        PyString_FromString(thread->comm));
 
392
                        PyString_FromString(thread__comm_str(thread)));
393
393
        if (al->map) {
394
394
                pydict_set_item_string_decref(dict, "dso",
395
395
                        PyString_FromString(al->map->dso->name));