aliyun / plugsched

Live upgrade Linux kernel scheduler subsystem
BSD 3-Clause "New" or "Revised" License
82 stars 23 forks source link

handle the condition that an interface function has both strong and weak symbol #138

Closed dtcccc closed 2 years ago

dtcccc commented 2 years ago

This kind of functions should only keep the strong one and drop the weak one, or export_jump.h will be generated with two lines of the same function and cause errors when building.

e.g., bpf_event_output() is both defined at kernel/bpf/core.c and kernel/trace/bpf_trace.c.

chenshanpei commented 2 years ago

Weak symbols resemble global symbols, but their definitions have lower precedence.