gator-driver: Revert #error about lack of CONFIG_PERF_EVENTS
Make this a #warning as in version 5.9. This lets Gator build (with
much reduced functionality) on platforms which require
CONFIG_PERF_EVENTS to be disabled for whatever reason.
Signed-off-by: Jon Medhurst <tixy@linaro.org>
Make this a #warning as in version 5.9. This lets Gator build (with
much reduced functionality) on platforms which require
CONFIG_PERF_EVENTS to be disabled for whatever reason.
Signed-off-by: Jon Medhurst <tixy@linaro.org>
gator: Version 5.18
Signed-off-by: Jon Medhurst <tixy@linaro.org>
Signed-off-by: Jon Medhurst <tixy@linaro.org>
gator-driver: Revert #error about lack of CONFIG_PERF_EVENTS
Make this a #warning as in version 5.9. This lets Gator build (with
much reduced functionality) on platforms which require
CONFIG_PERF_EVENTS to be disabled for whatever reason.
Signed-off-by: Jon Medhurst <tixy@linaro.org>
Make this a #warning as in version 5.9. This lets Gator build (with
much reduced functionality) on platforms which require
CONFIG_PERF_EVENTS to be disabled for whatever reason.
Signed-off-by: Jon Medhurst <tixy@linaro.org>
gator-driver: Handle task struct correctly
Use put_task_struct/get_task_struct to ensure the task_struct pointer
is still valid. Change translate_buffer to ensure that both arguments
are written atomically. Drop additional requests if the
translate_buffer is full.
Signed-off-by: Drew Richardson <drew.richardson@arm.com>
Signed-off-by: Pawel Moll <pawel.moll@arm.com>
Use put_task_struct/get_task_struct to ensure the task_struct pointer
is still valid. Change translate_buffer to ensure that both arguments
are written atomically. Drop additional requests if the
translate_buffer is full.
Signed-off-by: Drew Richardson <drew.richardson@arm.com>
Signed-off-by: Pawel Moll <pawel.moll@arm.com>
gator: Version 5.17
Signed-off-by: Jon Medhurst <tixy@linaro.org>
Signed-off-by: Jon Medhurst <tixy@linaro.org>
gator-driver: Fix building on Linux 3.12
In Linux 3.12 the local timer API was removed by commit 060fd304
(ARM: smp: Remove local timer API) so disable the check for this as it
stops compilation.
We need the check for kernels before 3.12 because otherwise we would
get incorrect timing information on A5/A9.
Signed-off-by: Jon Medhurst <tixy@linaro.org>
In Linux 3.12 the local timer API was removed by commit 060fd304
(ARM: smp: Remove local timer API) so disable the check for this as it
stops compilation.
We need the check for kernels before 3.12 because otherwise we would
get incorrect timing information on A5/A9.
Signed-off-by: Jon Medhurst <tixy@linaro.org>
gator-driver: Revert #error about lack of CONFIG_PERF_EVENTS
Make this a #warning as in version 5.9. This lets Gator build (with
much reduced functionality) on platforms which require
CONFIG_PERF_EVENTS to be disabled for whatever reason.
Signed-off-by: Jon Medhurst <tixy@linaro.org>
Make this a #warning as in version 5.9. This lets Gator build (with
much reduced functionality) on platforms which require
CONFIG_PERF_EVENTS to be disabled for whatever reason.
Signed-off-by: Jon Medhurst <tixy@linaro.org>
gator: Version 5.16
Signed-off-by: Jon Medhurst <tixy@linaro.org>
Signed-off-by: Jon Medhurst <tixy@linaro.org>
gator: Prevent BUG() when no device-tree cpu nodes present.
When IKS support is enabled in gator but we are running on boards
without a device-tree or where there are no cpu nodes in the
device-tree, then calc_first_cluster_size will call BUG_ON() because
mpidr_cpuids_count == 0.
To work around this, we will instead set a flag to indicate we haven't
managed to create an mpidr table and fallback to the behaviour we would
have if IKS wasn't enabled. This means that IKS support will only
function as expected if there are device-tree nodes for CPUs but we
expect that to always be the case anyway.
Signed-off-by: Jon Medhurst <tixy@linaro.org>
When IKS support is enabled in gator but we are running on boards
without a device-tree or where there are no cpu nodes in the
device-tree, then calc_first_cluster_size will call BUG_ON() because
mpidr_cpuids_count == 0.
To work around this, we will instead set a flag to indicate we haven't
managed to create an mpidr table and fallback to the behaviour we would
have if IKS wasn't enabled. This means that IKS support will only
function as expected if there are device-tree nodes for CPUs but we
expect that to always be the case anyway.
Signed-off-by: Jon Medhurst <tixy@linaro.org>
gator-driver: Default GATOR_MALI_INTERFACE_STYLE to '2'
At the moment, we only have users with the old style interface, so
make our life easier by making it the default.
Signed-off-by: Jon Medhurst <tixy@linaro.org>
At the moment, we only have users with the old style interface, so
make our life easier by making it the default.
Signed-off-by: Jon Medhurst <tixy@linaro.org>
gator-driver: Revert #error about lack of CONFIG_PERF_EVENTS
Make this a #warning as in version 5.9. This lets Gator build (with
much reduced functionality) on platforms which require
CONFIG_PERF_EVENTS to be disabled for whatever reason.
Signed-off-by: Jon Medhurst <tixy@linaro.org>
Make this a #warning as in version 5.9. This lets Gator build (with
much reduced functionality) on platforms which require
CONFIG_PERF_EVENTS to be disabled for whatever reason.
Signed-off-by: Jon Medhurst <tixy@linaro.org>
gator: Version 5.15
Signed-off-by: Jon Medhurst <tixy@linaro.org>
Signed-off-by: Jon Medhurst <tixy@linaro.org>
gator: Use device-tree when available for address of pl310 cache
This helps us avoid probing hard coded addresses which can cause
data aborts and crash the system, as happens on the A9 RTSM.
Signed-off-by: Jon Medhurst <tixy@linaro.org>
This helps us avoid probing hard coded addresses which can cause
data aborts and crash the system, as happens on the A9 RTSM.
Signed-off-by: Jon Medhurst <tixy@linaro.org>
gator-driver: Default GATOR_MALI_INTERFACE_STYLE to '2'
At the moment, we only have users with the old style interface, so
make our life easier by making it the default.
Signed-off-by: Jon Medhurst <tixy@linaro.org>
At the moment, we only have users with the old style interface, so
make our life easier by making it the default.
Signed-off-by: Jon Medhurst <tixy@linaro.org>
gator-driver: Revert #error about lack of CONFIG_PERF_EVENTS
Make this a #warning as in version 5.9. This lets Gator build (with
much reduced functionality) on platforms which require
CONFIG_PERF_EVENTS to be disabled for whatever reason.
Signed-off-by: Jon Medhurst <tixy@linaro.org>
Make this a #warning as in version 5.9. This lets Gator build (with
much reduced functionality) on platforms which require
CONFIG_PERF_EVENTS to be disabled for whatever reason.
Signed-off-by: Jon Medhurst <tixy@linaro.org>
gator: Version 5.14
Signed-off-by: Jon Medhurst <tixy@linaro.org>
Signed-off-by: Jon Medhurst <tixy@linaro.org>
gator-driver: Default GATOR_MALI_INTERFACE_STYLE to '2'
At the moment, we only have users with the old style interface, so
make our life easier by making it the default.
Signed-off-by: Jon Medhurst <tixy@linaro.org>
At the moment, we only have users with the old style interface, so
make our life easier by making it the default.
Signed-off-by: Jon Medhurst <tixy@linaro.org>
gator-driver: Revert #error about lack of CONFIG_PERF_EVENTS
Make this a #warning as in version 5.9. This lets Gator build (with
much reduced functionality) on platforms which require
CONFIG_PERF_EVENTS to be disabled for whatever reason.
Signed-off-by: Jon Medhurst <tixy@linaro.org>
Make this a #warning as in version 5.9. This lets Gator build (with
much reduced functionality) on platforms which require
CONFIG_PERF_EVENTS to be disabled for whatever reason.
Signed-off-by: Jon Medhurst <tixy@linaro.org>
gator: Version 5.13
Signed-off-by: Jon Medhurst <tixy@linaro.org>
Signed-off-by: Jon Medhurst <tixy@linaro.org>
gator-driver: Default GATOR_MALI_INTERFACE_STYLE to '2'
At the moment, we only have users with the old style interface, so
make our life easier by making it the default.
Signed-off-by: Jon Medhurst <tixy@linaro.org>
At the moment, we only have users with the old style interface, so
make our life easier by making it the default.
Signed-off-by: Jon Medhurst <tixy@linaro.org>
gator-driver: Revert #error about lack of CONFIG_PERF_EVENTS
Make this a #warning as in version 5.9. This lets Gator build (with
much reduced functionality) on platforms which require
CONFIG_PERF_EVENTS to be disabled for whatever reason.
Signed-off-by: Jon Medhurst <tixy@linaro.org>
Make this a #warning as in version 5.9. This lets Gator build (with
much reduced functionality) on platforms which require
CONFIG_PERF_EVENTS to be disabled for whatever reason.
Signed-off-by: Jon Medhurst <tixy@linaro.org>
gator-driver: Stop using VM_EXECUTABLE
In Linux 3.7, commit e9714acf (mm: kill vma flag VM_EXECUTABLE and
mm->num_exe_file_vmas) breaks Gator's get_exec_cookie() as it uses the
removed flag.
Fix this in a similar as commit 2dd8ad81 (mm: use mm->exe_file instead
of first VM_EXECUTABLE vma->vm_file)
Signed-off-by: Jon Medhurst <tixy@linaro.org>
In Linux 3.7, commit e9714acf (mm: kill vma flag VM_EXECUTABLE and
mm->num_exe_file_vmas) breaks Gator's get_exec_cookie() as it uses the
removed flag.
Fix this in a similar as commit 2dd8ad81 (mm: use mm->exe_file instead
of first VM_EXECUTABLE vma->vm_file)
Signed-off-by: Jon Medhurst <tixy@linaro.org>
gator: Version 5.12
Signed-off-by: Jon Medhurst <tixy@linaro.org>
Signed-off-by: Jon Medhurst <tixy@linaro.org>
gator-driver: Default GATOR_MALI_INTERFACE_STYLE to '2'
At the moment, we only have users with the old style interface, so
make our life easier by making it the default.
Signed-off-by: Jon Medhurst <tixy@linaro.org>
At the moment, we only have users with the old style interface, so
make our life easier by making it the default.
Signed-off-by: Jon Medhurst <tixy@linaro.org>
gator-driver: Revert #error about lack of CONFIG_PERF_EVENTS
Make this a #warning as in version 5.9. This lets Gator build (with
much reduced functionality) on platforms which require
CONFIG_PERF_EVENTS to be disabled for whatever reason.
Signed-off-by: Jon Medhurst <tixy@linaro.org>
Make this a #warning as in version 5.9. This lets Gator build (with
much reduced functionality) on platforms which require
CONFIG_PERF_EVENTS to be disabled for whatever reason.
Signed-off-by: Jon Medhurst <tixy@linaro.org>
gator: Version 5.11
Signed-off-by: Jon Medhurst <tixy@linaro.org>
Signed-off-by: Jon Medhurst <tixy@linaro.org>
gator-driver: Move work scheduling to timers
... in order to work around deadlocks in kernel >= 3.5...
Signed-off-by: Wade Cherry <wade.cherry@arm.com>
Signed-off-by: Pawel Moll <pawel.moll@arm.com>
... in order to work around deadlocks in kernel >= 3.5...
Signed-off-by: Wade Cherry <wade.cherry@arm.com>
Signed-off-by: Pawel Moll <pawel.moll@arm.com>
gator-driver: Revert #error about lack of CONFIG_PERF_EVENTS
Make this a #warning as in version 5.9. This lets Gator build (with
much reduced functionality) on platforms which require
CONFIG_PERF_EVENTS to be disabled for whatever reason.
Signed-off-by: Jon Medhurst <tixy@linaro.org>
Make this a #warning as in version 5.9. This lets Gator build (with
much reduced functionality) on platforms which require
CONFIG_PERF_EVENTS to be disabled for whatever reason.
Signed-off-by: Jon Medhurst <tixy@linaro.org>
gator-daemon: Fix sequence-point compile error
In mxml/mxml-file.c in the expression:
(getc(fp) << 8) | getc(fp)
the C standard allows right-hand getc() to be called before left hand
one, which would cause a bug.
The compiler gives an warning about this and we are treating warnings as
errors this breaks the build with:
error: operation on 'fp->_r' may be undefined [-Werror=sequence-point]
We can fix this by rewriting the expressions in two parts, however the
code in question has licensing clauses for modified versions which have
not yet been resolved.
Therefore, for now, we will disable the problematic error in the
makefiles.
Signed-off-by: Jon Medhurst <tixy@linaro.org>
In mxml/mxml-file.c in the expression:
(getc(fp) << 8) | getc(fp)
the C standard allows right-hand getc() to be called before left hand
one, which would cause a bug.
The compiler gives an warning about this and we are treating warnings as
errors this breaks the build with:
error: operation on 'fp->_r' may be undefined [-Werror=sequence-point]
We can fix this by rewriting the expressions in two parts, however the
code in question has licensing clauses for modified versions which have
not yet been resolved.
Therefore, for now, we will disable the problematic error in the
makefiles.
Signed-off-by: Jon Medhurst <tixy@linaro.org>
gator-driver: Default GATOR_MALI_INTERFACE_STYLE to '2'
At the moment, we only have users with the old style interface, so
make our life easier by making it the default.
Signed-off-by: Jon Medhurst <tixy@linaro.org>
At the moment, we only have users with the old style interface, so
make our life easier by making it the default.
Signed-off-by: Jon Medhurst <tixy@linaro.org>
gator: Version 5.10
New gator release (build 1385) for ARM DS-5 v5.10
Signed-off-by: Jon Medhurst <tixy@linaro.org>
New gator release (build 1385) for ARM DS-5 v5.10
Signed-off-by: Jon Medhurst <tixy@linaro.org>
gator-daemon: Fix building on armhf
Remove compiler options for arm arch and interworking as they
break the build and are superfluous now we build for armhf.
Signed-off-by: Jon Medhurst <tixy@linaro.org>
Remove compiler options for arm arch and interworking as they
break the build and are superfluous now we build for armhf.
Signed-off-by: Jon Medhurst <tixy@linaro.org>
gator-driver: Hack makefile to search for Mali trace headers
Gator needs Mali headers and device type in order to build with Mali
profiling support. Unfortunately, the presence and location of this
information is difficult to configure considering kernels are
separate packages and managed by various teams.
To work around this, just use the find command to look for the header
and if present, assume we want Mali support, and that it is a Mali-400.
Signed-off-by: Jon Medhurst <tixy@linaro.org>
Gator needs Mali headers and device type in order to build with Mali
profiling support. Unfortunately, the presence and location of this
information is difficult to configure considering kernels are
separate packages and managed by various teams.
To work around this, just use the find command to look for the header
and if present, assume we want Mali support, and that it is a Mali-400.
Signed-off-by: Jon Medhurst <tixy@linaro.org>
gator-driver: Fix build failure on Linux 3.3
Some meminfo tracepoint APIs were renamed in b413d48a (mm-tracepoint:
rename page-free events)
Signed-off-by: Wade Cherry <wade.cherry@arm.com>
Signed-off-by: Jon Medhurst <tixy@linaro.org>
Some meminfo tracepoint APIs were renamed in b413d48a (mm-tracepoint:
rename page-free events)
Signed-off-by: Wade Cherry <wade.cherry@arm.com>
Signed-off-by: Jon Medhurst <tixy@linaro.org>
daemon: Fix counters initialisation
In certain circumstances counter were not enabled correctly. Fixed.
Signed-off-by: Wade Cherry <wade.cherry@arm.com>
Signed-off-by: Pawel Moll <pawel.moll@arm.com>
Signed-off-by: Jon Medhurst <tixy@linaro.org>
In certain circumstances counter were not enabled correctly. Fixed.
Signed-off-by: Wade Cherry <wade.cherry@arm.com>
Signed-off-by: Pawel Moll <pawel.moll@arm.com>
Signed-off-by: Jon Medhurst <tixy@linaro.org>
gator-daemon: ARM DS-5.9 Streamline gator daemon (RC2)
gator-driver: ARM DS-5.9 Streamline gator driver (RC2)
gator-driver: ARM DS-5.8 Streamline gator driver (RC1)
gator-daemon: ARM DS-5.8 Streamline gator daemon (RC1)
Signed-off-by: Pawel Moll <pawel.moll@arm.com>
Signed-off-by: Pawel Moll <pawel.moll@arm.com>
gator: Move README to top directory
... as it applies to both driver and daemon now.
Signed-off-by: Pawel Moll <pawel.moll@arm.com>
... as it applies to both driver and daemon now.
Signed-off-by: Pawel Moll <pawel.moll@arm.com>
gator-daemon: ARM DS-5.7 Streamline gator daemon sources
Signed-off-by: Pawel Moll <pawel.moll@arm.com>
Signed-off-by: Pawel Moll <pawel.moll@arm.com>
gator-driver: ARM DS-5.7 Streamline gator driver sources
Signed-off-by: Pawel Moll <pawel.moll@arm.com>
Signed-off-by: Pawel Moll <pawel.moll@arm.com>
gator: Move driver sources to a separate directory
... in prepration for daemon sources.
Signed-off-by: Pawel Moll <pawel.moll@arm.com>
... in prepration for daemon sources.
Signed-off-by: Pawel Moll <pawel.moll@arm.com>
gator: ARM DS-5.6 Streamline gator driver
Signed-off-by: Pawel Moll <pawel.moll@arm.com>
Signed-off-by: Pawel Moll <pawel.moll@arm.com>
gator: ARM DS-5.5 Streamline gator driver
Signed-off-by: Pawel Moll <pawel.moll@arm.com>
Signed-off-by: Pawel Moll <pawel.moll@arm.com>
gator: ARM DS-5.4 Streamline gator driver
Signed-off-by: Pawel Moll <pawel.moll@arm.com>
Signed-off-by: Pawel Moll <pawel.moll@arm.com>
gator: ARM DS-5.3 Streamline gator driver
Signed-off-by: Pawel Moll <pawel.moll@arm.com>
Signed-off-by: Pawel Moll <pawel.moll@arm.com>