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

  Switch to unified view

a/libperf_events/operf_sfile.cpp b/libperf_events/operf_sfile.cpp
...
...
11
 */
11
 */
12
12
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 <iostream>
17
#include <iostream>
17
18
18
#include "operf_sfile.h"
19
#include "operf_sfile.h"
19
#include "operf_kernel.h"
20
#include "operf_kernel.h"
20
#include "operf_utils.h"
21
#include "operf_utils.h"
...
...
177
    struct operf_sfile * sf;
178
    struct operf_sfile * sf;
178
    struct list_head * pos;
179
    struct list_head * pos;
179
    struct operf_kernel_image * ki = NULL;
180
    struct operf_kernel_image * ki = NULL;
180
    unsigned long hash;
181
    unsigned long hash;
181
182
183
  // The code that calls this function would always have set trans->image_name, but coverity
184
  // isn't smart enough to know that.  So we add the assert here just to shut up coverity.
185
  assert(trans->image_name);
182
186
183
    if (trans->in_kernel) {
187
    if (trans->in_kernel) {
184
        ki = operf_find_kernel_image(trans->pc);
188
        ki = operf_find_kernel_image(trans->pc);
185
        if (!ki) {
189
        if (!ki) {
186
            if (cverb << vsfile)
190
            if (cverb << vsfile)