我一直在尝试使用arm64工具链,但得到一个错误error: unrecognized command line option '-mgeneral-regs-only'。在google上,thi建议我使用aarch64的msm工具链,我做到了。但现在我发现这个错误error: conflicting types for 'trace_sched_migrate_task' void trace_##_name(_proto);/local/mnt2/workspace/kernel/include/linux/tracepoint.h:168:21: note: previous definition of 'trace_sched_migrate_task' was here static inline void trace_##name(proto)
尽管在另一个具有相同功能定义的linux系统上也可以编译相同的代码。

最佳答案

msm kernel为trace_sched_migrate_task()添加了额外的“load”参数,请参见commit adding load in msm-4.4
正如您在the definition in LTTng sources中看到的,lttng目前不支持它。添加支持只需要检测msm内核并添加参数。

关于linux - 如何为arm64交叉编译lttng-modules?,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/45033261/

10-15 12:00