update src list to include powertop.css
Merge branch 'master' of github.com:fenrus75/powertop
Merge branch 'master' of github.com:fenrus75/powertop
disable out_of_memory() only for DISABLE_TRYCATCH builds

| commit ce39e2528d1fcd110cae928f55a39148059283b5
| Author: John Mathew <johnx.mathew@intel.com>
| Date:   Thu Jun 30 09:58:34 2011 +0300
|
|   misc changes needed to build powertop natively

commented out_of_memory() handler.
disable it only for DISABLE_TRYCATCH allowing native powertop build.

Signed-off-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
fix irq_handler_entry description

 |commit 2a86bf81403f54acd213c4f326ab214b372fe061
 |Author: Arjan van de Ven <arjan@linux.intel.com>
 |Date:   Fri Apr 27 16:37:40 2012 -0400
 |
 |   this is a hack, and broken, but it seems the trace event infrastructure throws us a curve ball here

didn't solve the problem for me, as I still obverse some interrupts with empty descriptions.
Patch (code extracted from pevent print_event_fields()) seem to fix the problem.

Signed-off-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
introduce dbg_printf_pevent_info() function

Introduce dbg_printf_pevent_info() for event debugging simplification.
Events are printed to STDERR, one event per line.
(pevent trace_seq_do_printf() uses STDOUT, making it difficult to read through
mixed powertop and trace_seq outputs).

$ powertop 2>events
$ less events
 prev_comm=ksoftirqd/0 prev_pid=3 prev_prio=120 prev_state=0x1 next_comm=swapper/0 next_pid=0 next_prio=120
 prev_comm=swapper/0 prev_pid=0 prev_prio=120 prev_state=0x0 next_comm=ksoftirqd/0 next_pid=3 next_prio=120
 prev_comm=ksoftirqd/0 prev_pid=3 prev_prio=120 prev_state=0x1 next_comm=swapper/0 next_pid=0 next_prio=120
 prev_comm=swapper/0 prev_pid=0 prev_prio=120 prev_state=0x0 next_comm=X next_pid=2795 next_prio=119
[..]

Signed-off-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
style: catch exceptions by reference

Common practive for exceptions is to 'throw by value, catch by reference'.

Signed-off-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
clean up --help output
exit on bad cmd line arg, only check for sudo when sudo is needed.
updated remaining string fields to insure descriptions are valid.
Merge git://github.com/fenrus75/powertop
process: introduce get_pevent_field_str (v2)

I apologies for numerous grammar mistakes in V1, those are the reason for
re-sending.

| commit 8580d679ede86a1c91f5925b6971a094cea6f832
| Author: Chris E Ferron <chris.e.ferron@linux.intel.com>
| Date:   Mon Apr 30 11:38:32 2012 -0700
|
|    updated remaining string fields to insure descriptions are valid.
|

extended pevent field offset calculation to sched events.
It turned out to be unnecessary, since offset calculation and 0xffff alignment
required only for DYNAMIC fields -- field type starting with __data_loc.

irq_handler_entry event is defined with __string name, while sched_switch event
is defined with __array char next_comm TASK_COMM_LEN field.

Function get_pevent_field_str() checks field->flags and return `char *'
with proper offset calculated.

Signed-off-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
Merge with uptsream git://github.com/fenrus75/powertop