Adrian Hunter c9dd1d8949 perf kcore_copy: Calculate offset from phnum
In preparation to add more program headers, calculate offset from the
number of phdrs.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Andy Lutomirski <luto@kernel.org>
Cc: Dave Hansen <dave.hansen@linux.intel.com>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Joerg Roedel <joro@8bytes.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: x86@kernel.org
Link: http://lkml.kernel.org/r/1526986485-6562-13-git-send-email-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2018-05-23 10:26:41 -03:00
..
2018-04-19 12:29:41 -03:00
2018-04-27 10:47:06 -03:00
2018-04-27 10:47:06 -03:00
2018-04-27 10:47:06 -03:00
2018-05-22 10:52:49 -03:00
2018-05-22 10:52:49 -03:00
2015-08-21 11:34:10 -03:00
2016-10-24 11:07:39 -03:00
2018-03-16 13:52:37 -03:00
2018-03-16 13:52:37 -03:00
2018-03-05 11:52:41 -03:00
2018-04-27 10:47:06 -03:00
2017-11-18 08:59:27 +01:00
2017-07-18 23:14:08 -03:00
2016-08-23 15:37:33 -03:00
2018-04-27 10:47:06 -03:00
2018-04-27 10:47:06 -03:00