Bug-fix:Seg-fault with powertop --html & --csv

This patch allows the supported no Intel CPUs to be included on html &
CSV reports.  It fixes the rows index needed for package data.
Additionally, fixes the calculation of title indexes when cores are absent
from the CPU.  These changes are related to C-states and P-states
reports

Bug reported & tested by: Julian Wollrath <jwollrath@web.de>

Signed-off-by: Alexandra Yates <alexandra.yates@linux.intel.com>
Update ranslation files and configuraion

This patch updates translation files and configuration files.

Signed-off-by: Alexandra Yates <alexandra.yates@linux.intel.com>
PowerTOP version 2.6.1

Changed version.

Signed-off-by: Alexandra Yates <alexandra.yates@linux.intel.com>
Translation files updated.

This patch updates the translation files.

Signed-off-by: Alexandra Yates <alexandra.yates@linux.intel.com>
Optionally check for ncurses pkgconfig file.

v3 - also link against ncursesw.
Translation files to powertop

Updated changes to translation files.

Signed-off-by: Alexandra Yates <alexandra.yates@linux.intel.com>
bug-fix: nls code conditionally dissabled

while the configure script cconfigure script support
--disable-nls, the nls code is not  conditionally disabled which
causes build failures on uclibc.  This patch fixes the affected code.

Submited initialy by Rick "Zero_Chaos" Farina" zerochaos@gentoo.org
Tested by: Sergey Senozhatsky sergey.senozhatsky@gmail.com

I had to refactore the patch to apply the code.

Signed-off-by: Alexandra Yates <alexandra.yates@linux.intel.com>
enumerate cpu based on different string on ARM

bogomips is removed by timer-backed delay loop (commit 9fc2105a)
in ARM kernel. Using other suitable string to decide to enumerate each
cpu.

Signed-off-by: Sanjay Singh Rawat <sanjay.rawat@linaro.org>
PowerTOP v2.6.1 released

On Tue, May 27, 2014 at 10:24:44AM -0700, Alexandra Yates wrote:
> > Also it is not possible to compile it after running:
> > $ make clean
> >
> > It seems csstoh.sh script is missing

I've had this patch in my tree for at least some months...

Ciao
     Jörg
--
Joerg Mayer                                           <jmayer@loplof.de>
We are stuck with technology when what we really want is just stuff that
works. Some say that should read Microsoft instead of technology.

Fix build in a clean tree

Signed-off-by: Joerg Mayer <jmayer@loplof.de>
Fix packaging extra files in src/tuning/ [Was: PowerTOP v2.6.1 released]

> find a regenerated version below. Btw, to find out about problems with
> the source: Please run "make distcheck" before doing a release - which
> will currently fail due to the included object files.

OK, while I'm at it: Fix the extra files in src/tuning/ as well. With this
an the previous patch applied "make distcheck" succeeds on my system.

Ciao
    Jörg

From 86f48b0eaf6b7128b70f96b47c1e176142eb7402 Mon Sep 17 00:00:00 2001
From: Joerg Mayer <jmpt@loplof.de>
Date: Sun, 1 Jun 2014 10:06:35 +0200
Subject: [PATCH] Don't add the complete content of src/tuning/ when packaging
 the source.

Signed-off-by: Joerg Mayer <jmpt@loplof.de>
Fix compile warning in cpu.cpp

Fix
cpu/cpu.cpp: In function ‘void report_display_cpu_cstates()’:
cpu/cpu.cpp:616:28: warning: ‘_core’ may be used uninitialized in this function [-Wmaybe-uninitialized]
cpu/cpu.cpp: In function ‘void report_display_cpu_pstates()’:
cpu/cpu.cpp:797:27: warning: ‘_core’ may be used uninitialized in this function [-Wmaybe-uninitialized]
RAPL: Use Powercap sysfs

Linux Powercap sysfs with Intel RAPL driver exists from 3.13.rc1.
Use this to estimate RAPL domain power instead of MSRs. Since
these MSRs are non-architectural, they can be changed from
processor model to model. But by using powercap sysfs, kernel
driver will take care about processor specific variations.
Use package name to identify domains

Here the cpu is identifying a package id. Currently the RAPL
package name is not used, but by changing to powercap sysfs
package name, it can be used to identify RAPL package domains
in a multi processor system.
Update README with configs

Update powercap sysfs and Intel RAPL driver config entries as
suggested configs.
Localization Changes.

Latest pulled locallization changes.

Signed-off-by: Alexandra Yates <alexandra.yates@linux.intel.com>
Add csstosh.sh to EXTRA_DIST

Since css.h is in CLEANFILES, `make clean' will delete it and thus
cause the build to fail afterwards due to a missing csstoh.sh to
regenerate it. Fix this by adding csstoh.sh to EXTRA_DIST which will
cause it to be included in the tarball.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
fix-warnings: Ignoring return value of system()

Added error handling to system() for  bluetooth.cpp.

Tested by: Christophe Prigent

Signed-off-by: Alexandra Yates <alexandra.yates@linux.intel.com>
fix-warnings: Ignoring return value

Added error handling to system() and write() calls.

Tested by: Christophe Prigent

Signed-off-by: Alexandra Yates <alexandra.yates@linux.intel.com>
fix-warnings: Ignoring return value

Added error handling to write() calls.

Tested by: Christophe Prigent

Signed-off-by: Alexandra Yates <alexandra.yates@linux.intel.com>
fix-csv: cell alignment with regional formats

In most languages a decimal number is expressed with a coma rather than a
dot.  This confuses the csv parsing creating new columns.
This patch separates the value with a semicolon to avoid the issue.

Tested by: Christophe Prigent

Signed-off-by: Alexandra Yates <alexandra.yates@linux.intel.com>