mirror of
https://gitee.com/bianbu-linux/linux-6.6
synced 2025-04-24 14:07:52 -04:00
Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net
No conflicts. Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
commit
3150a73366
294 changed files with 2604 additions and 1244 deletions
|
@ -83,6 +83,7 @@ struct btf_id {
|
|||
int cnt;
|
||||
};
|
||||
int addr_cnt;
|
||||
bool is_set;
|
||||
Elf64_Addr addr[ADDR_CNT];
|
||||
};
|
||||
|
||||
|
@ -451,8 +452,10 @@ static int symbols_collect(struct object *obj)
|
|||
* in symbol's size, together with 'cnt' field hence
|
||||
* that - 1.
|
||||
*/
|
||||
if (id)
|
||||
if (id) {
|
||||
id->cnt = sym.st_size / sizeof(int) - 1;
|
||||
id->is_set = true;
|
||||
}
|
||||
} else {
|
||||
pr_err("FAILED unsupported prefix %s\n", prefix);
|
||||
return -1;
|
||||
|
@ -568,9 +571,8 @@ static int id_patch(struct object *obj, struct btf_id *id)
|
|||
int *ptr = data->d_buf;
|
||||
int i;
|
||||
|
||||
if (!id->id) {
|
||||
if (!id->id && !id->is_set)
|
||||
pr_err("WARN: resolve_btfids: unresolved symbol %s\n", id->name);
|
||||
}
|
||||
|
||||
for (i = 0; i < id->addr_cnt; i++) {
|
||||
unsigned long addr = id->addr[i];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue