create-diff-object: include new functions
Merge pull request #264 from jpoimboe/include-new-functions

create-diff-object: include new functions
kpatch-build: allow ~/.kpatch to already exist

This is useful if ~/.kpatch is a symlink or a tmpfs mount.

- move SRCDIR/OBJDIR/OBJDIR2 initialization to the top
- create new VERSIONFILE variable
- create new clean_cache function which doesn't remove ~/.kpatch

Fixes #261.
Merge pull request #267 from jpoimboe/kpatch-symlink

kpatch-build: allow ~/.kpatch to already exist
readme: update the mandatory gcc version
Merge pull request #268 from goldyfruit/master

readme: update the mandatory gcc version
create-diff-object: reduce verbosity in debug mode

With the inclusion of the debug sections, the debug output is so verbose
that it becomes less useful.

This commit reduces the verbosity by skipping rela listings of debug
sections.

It includes a new helper function, is_debug_section(), to consolidate
the logic for detecting debug sections.

Signed-off-by: Seth Jennings <sjenning@redhat.com>
Merge pull request #269 from spartacus06/reduce-debug-logging

create-diff-object: reduce verbosity in debug mode
kmod/core: fix relocation writes across page boundaries

The integration test suite was intermittently giving the following
error:

  [192685.907072] kpatch: write to 0xffffffffa082bffe failed for symbol call_netdevice_notifiers_info

The error was caused by a write across a page boundary without first
making the second page read/write.
Merge pull request #271 from jpoimboe/relocation-page-boundary

kmod/core: fix relocation writes across page boundaries
kmod/core: be more verbose when activness safety check fails

Print some basic info and stack trace for task when activness
safety check fails.

Signed-off-by: Jan Stancek <jstancek@redhat.com>
Merge pull request #266 from jstancek/safety_check_stacktrace

kmod/core: be more verbose when activness safety check fails
create-diff-object: fixup new function handling

The original logic in the inclusion tree code worked under the
assumption that it was the only code path marking symbols for inclusion.
Therefore, if the symbol had been marked as included, it could be safely
assumed that we also already called kpatch_include_symbol() on it.  With
the special section handling marking symbols as included, however, this
assumption is not valid.

We should call kpatch_include_symbol() regardless of whether or not the
symbol has already been marked as included or not in order to possible
include the symbol's entire bundle.

Signed-off-by: Seth Jennings <sjenning@redhat.com>
Merge pull request #272 from spartacus06/fix-new-func-handling

create-diff-object: fixup new function handling
kpatch-build: detect core dump
Merge pull request #273 from jpoimboe/detect-core-dump

kpatch-build: detect core dump
test: remove annoying printks

The printks in the integration tests aren't very useful and annoyingly
fill up the dmesg buffer.  Remove them by making them contingent on
unlikely conditions.
test: detect kernel oopses and warnings
Merge pull request #274 from jpoimboe/remove-test-printks

test: remove annoying printks
Merge pull request #275 from jpoimboe/detect-printk-error

test: detect kernel oopses and warnings