Help save net neutrality! Learn more.
Close

Diff of /libperf_events/operf_sfile.cpp [85d9b9] .. [2dcd13]  Maximize  Restore

Switch to unified view

a/libperf_events/operf_sfile.cpp b/libperf_events/operf_sfile.cpp
...
...
13
#include <stdio.h>
13
#include <stdio.h>
14
#include <stdlib.h>
14
#include <stdlib.h>
15
#include <string.h>
15
#include <string.h>
16
#include <assert.h>
16
#include <assert.h>
17
#include <iostream>
17
#include <iostream>
18
#include <sstream>
18
19
19
#include "operf_sfile.h"
20
#include "operf_sfile.h"
20
#include "operf_kernel.h"
21
#include "operf_kernel.h"
21
#include "operf_utils.h"
22
#include "operf_utils.h"
22
#include "cverb.h"
23
#include "cverb.h"
...
...
185
    assert(trans->image_name);
186
    assert(trans->image_name);
186
187
187
    if (trans->in_kernel) {
188
    if (trans->in_kernel) {
188
        ki = operf_find_kernel_image(trans->pc);
189
        ki = operf_find_kernel_image(trans->pc);
189
        if (!ki) {
190
        if (!ki) {
190
            if (cverb << vsfile)
191
            if (cverb << vsfile) {
192
              ostringstream message;
191
                cout << "Lost kernel sample " << std::hex << trans->pc << std::endl;;
193
                message << "Lost kernel sample " << std::hex << trans->pc << std::endl;;
194
              cout << message.str();
195
          }
192
            operf_stats[OPERF_LOST_KERNEL]++;
196
            operf_stats[OPERF_LOST_KERNEL]++;
193
            return NULL;
197
            return NULL;
194
        }
198
        }
195
    }
199
    }
196
200