annotate.c (c77ceb2eb03eefd92e6b84a509ecec1db8d97858) annotate.c (7031edac9dbc0f880c9fbaa40ca08b5de34239c6)
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * Copyright (C) 2011, Red Hat Inc, Arnaldo Carvalho de Melo <acme@redhat.com>
4 *
5 * Parts came from builtin-annotate.c, see those files for further
6 * copyright notes.
7 */
8

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

1687 * If we don't have build-ids or the build-id file isn't in the
1688 * cache, or is just a kallsyms file, well, lets hope that this
1689 * DSO is the same as when 'perf record' ran.
1690 */
1691 __symbol__join_symfs(filename, filename_size, dso->long_name);
1692
1693 mutex_lock(&dso->lock);
1694 if (access(filename, R_OK) && errno == ENOENT && dso->nsinfo) {
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * Copyright (C) 2011, Red Hat Inc, Arnaldo Carvalho de Melo <acme@redhat.com>
4 *
5 * Parts came from builtin-annotate.c, see those files for further
6 * copyright notes.
7 */
8

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

1687 * If we don't have build-ids or the build-id file isn't in the
1688 * cache, or is just a kallsyms file, well, lets hope that this
1689 * DSO is the same as when 'perf record' ran.
1690 */
1691 __symbol__join_symfs(filename, filename_size, dso->long_name);
1692
1693 mutex_lock(&dso->lock);
1694 if (access(filename, R_OK) && errno == ENOENT && dso->nsinfo) {
1695 char *new_name = filename_with_chroot(dso->nsinfo->pid,
1696 filename);
1695 char *new_name = dso__filename_with_chroot(dso, filename);
1697 if (new_name) {
1698 strlcpy(filename, new_name, filename_size);
1699 free(new_name);
1700 }
1701 }
1702 mutex_unlock(&dso->lock);
1703 }
1704

--- 1617 unchanged lines hidden ---
1696 if (new_name) {
1697 strlcpy(filename, new_name, filename_size);
1698 free(new_name);
1699 }
1700 }
1701 mutex_unlock(&dso->lock);
1702 }
1703

--- 1617 unchanged lines hidden ---