dsos.c (0aba7f036a56675b7fdc536757b4c49fc76a2208) dsos.c (f766819cd5290d42efa55c505b9bed184fec17bf)
1// SPDX-License-Identifier: GPL-2.0
2#include "debug.h"
3#include "dsos.h"
4#include "dso.h"
5#include "vdso.h"
6#include "namespaces.h"
7#include <libgen.h>
8#include <stdlib.h>

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

68 list_for_each_entry(pos, head, node) {
69 if (with_hits && !pos->hit && !dso__is_vdso(pos))
70 continue;
71 if (pos->has_build_id) {
72 have_build_id = true;
73 continue;
74 }
75 nsinfo__mountns_enter(pos->nsinfo, &nsc);
1// SPDX-License-Identifier: GPL-2.0
2#include "debug.h"
3#include "dsos.h"
4#include "dso.h"
5#include "vdso.h"
6#include "namespaces.h"
7#include <libgen.h>
8#include <stdlib.h>

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

68 list_for_each_entry(pos, head, node) {
69 if (with_hits && !pos->hit && !dso__is_vdso(pos))
70 continue;
71 if (pos->has_build_id) {
72 have_build_id = true;
73 continue;
74 }
75 nsinfo__mountns_enter(pos->nsinfo, &nsc);
76 if (filename__read_build_id(pos->long_name, pos->bid.data,
77 sizeof(pos->bid.data)) > 0) {
76 if (filename__read_build_id(pos->long_name, &pos->bid) > 0) {
78 have_build_id = true;
79 pos->has_build_id = true;
80 }
81 nsinfo__mountns_exit(&nsc);
82 }
83
84 return have_build_id;
85}

--- 224 unchanged lines hidden ---
77 have_build_id = true;
78 pos->has_build_id = true;
79 }
80 nsinfo__mountns_exit(&nsc);
81 }
82
83 return have_build_id;
84}

--- 224 unchanged lines hidden ---