ARM Technical Support Knowledge Articles

How do I check whether my kernel configuration will work with Streamline?

Applies to: DS-5

Scenario

The Streamline driver and daemon (gator.ko and gatord) will only run if your kernel was configured and re-built with the kernel options below:

  - General Setup
    - [*] Profiling Support
  - Kernel Hacking
    - [*] Tracers
      - [*] Trace process context switches and events
  - Kernel Features
    - [*] High Resolution Timer Support
    - [*] Use local timer interrupts (only needed for SMP systems)
    - [*] Enable hardware performance counter support for perf events
  - CPU Power Management  (only needed to enable CPU Freq in the timeline)
    - CPU Frequency scaling
      - [*] CPU Frequency scaling

Alternatively, the High Resolution Timer option can be found under the following location:

  - General Setup
    - Timer subsystem --->
       - [*] High Resolution Timer Support

It is possible that one or more of these configuration options are not visible or available in the "menuconfig" utility (.config file).  Alternatively, you could be working with a pre-built kernel which you did not configure or which you do not have the .config file for.

Answer

If you are working with a pre-built kernel, you can determine whether the kernel was built with all the necessary configuration options by running the below commands on your target:

> zcat /proc/config.gz | grep CONFIG_PROFILING
> zcat /proc/config.gz | grep CONFIG_FTRACE
> zcat /proc/config.gz | grep CONFIG_ENABLE_DEFAULT_TRACERS
> zcat /proc/config.gz | grep CONFIG_HIGH_RES_TIMERS

> zcat /proc/config.gz | grep CONFIG_HW_PERF_EVENTS

Optionally:

> zcat /proc/config.gz | grep CONFIG_LOCAL_TIMERS
> zcat /proc/config.gz | grep CONFIG_CPU_FREQ

Alternatively, you can transfer the /proc/config.gz file from your target to your host and inspect it.

If one or more of the configuration options are not available in the configuration fie (.config) or the "menuconfig" utility, you can manually set these options. However, you should bear in mind that there might be some dependiencies.

Rate this article

[Bad]
|
|
[Good]
Disagree? Move your mouse over the bar and click

Did you find this article helpful? Yes No

How can we improve this article?

Link to this article
Copyright © 2011 ARM Limited. All rights reserved. External (Open), Non-Confidential