【问题标题】:How to cross compile lttng-modules for arm64?如何为 arm64 交叉编译 lttng 模块?
【发布时间】:2017-12-15 10:33:59
【问题描述】:

我一直在尝试使用 arm64 工具链执行此操作,但收到错误 error: unrecognized command line option '-mgeneral-regs-only'。在谷歌搜索上,我建议我使用 aarch64 工具链 for 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 系统上编译相同。

【问题讨论】:

    标签: linux compilation cross-compiling gnu-make lttng


    【解决方案1】:

    msm 内核为 trace_sched_migrate_task() 添加了一个额外的“load”参数,参见commit adding load in msm-4.4

    如您在the definition in LTTng sources 中所见,LTTng 目前不提供对它的支持。添加支持只需要检测 msm 内核并添加参数。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-03-28
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-10-23
      相关资源
      最近更新 更多