Diff of /libperf_events/operf_utils.cpp [ecfbcc] .. [74abfb]  Maximize  Restore

Switch to unified view

a/libperf_events/operf_utils.cpp b/libperf_events/operf_utils.cpp
...
...
564
    if (op_mmap) {
564
    if (op_mmap) {
565
        if (cverb << vconvert)
565
        if (cverb << vconvert)
566
            cout << "Found mmap for sample; image_name is " << op_mmap->filename <<
566
            cout << "Found mmap for sample; image_name is " << op_mmap->filename <<
567
            " and app name is " << proc->get_app_name() << endl;
567
            " and app name is " << proc->get_app_name() << endl;
568
        trans.image_name = op_mmap->filename;
568
        trans.image_name = op_mmap->filename;
569
        trans.app_filename = proc->get_app_name().c_str();
569
        trans.app_len = proc->get_app_name().size();
570
      strncpy(trans.app_filename, proc->get_app_name().c_str(), trans.app_len);
571
      trans.app_filename[trans.app_len] = '\0';
570
        trans.image_len = strlen(trans.image_name);
572
        trans.image_len = strlen(trans.image_name);
571
      trans.app_len = strlen(trans.app_filename);
572
        trans.start_addr = op_mmap->start_addr;
573
        trans.start_addr = op_mmap->start_addr;
573
        trans.end_addr = op_mmap->end_addr;
574
        trans.end_addr = op_mmap->end_addr;
574
        trans.tgid = data->pid;
575
        trans.tgid = data->pid;
575
        trans.tid = data->tid;
576
        trans.tid = data->tid;
576
        trans.cur_procinfo = proc;
577
        trans.cur_procinfo = proc;