09 Jun, 2013

1 commit


02 Jun, 2013

1 commit


27 May, 2013

1 commit


21 May, 2013

1 commit


12 May, 2013

1 commit


07 May, 2013

1 commit

  • Pull misc kbuild updates from Michal Marek:
    "Non-critical kbuild changes:

    - make coccicheck improvements, but no new semantic patches this time

    - make rpm improvements

    - make tar-pkg change to include the architecture in the filename.

    This is a deliberate incompatibility, but nobody has complained so
    far and it is useful if you build for different architectures. It
    also matches what the deb-pkg and rpm-pkg targets produce.

    - kbuild documentation fix"

    * 'misc' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild:
    rpm-pkg: Remove pointless set -e statements
    rpm-pkg: Always regenerate the specfile
    rpm-pkg: Do not write to the parent directory
    rpm-pkg: Do not package the whole source directory
    buildtar: Add ARCH to the archive name
    Coccinelle: Fix patch output when coccicheck is used with M= and C=
    Coccinelle: Add support to the SPFLAGS variable
    Coccinelle: Cleanup the setting of the FLAGS and OPTIONS variables
    Coccinelle: Restore coccicheck verbosity in ONLINE mode (C=1 or C=2)
    scripts/package/Makefile: compare objtree with srctree instead of test KBUILD_OUTPUT
    doc: change example to existing Makefile fragment
    scripts/tags.sh: Add magic for OFFSET and DEFINE

    Linus Torvalds
     

06 May, 2013

1 commit

  • Pull mudule updates from Rusty Russell:
    "We get rid of the general module prefix confusion with a binary config
    option, fix a remove/insert race which Never Happens, and (my
    favorite) handle the case when we have too many modules for a single
    commandline. Seriously, the kernel is full, please go away!"

    * tag 'modules-next-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rusty/linux:
    modpost: fix unwanted VMLINUX_SYMBOL_STR expansion
    X.509: Support parse long form of length octets in Authority Key Identifier
    module: don't unlink the module until we've removed all exposure.
    kernel: kallsyms: memory override issue, need check destination buffer length
    MODSIGN: do not send garbage to stderr when enabling modules signature
    modpost: handle huge numbers of modules.
    modpost: add -T option to read module names from file/stdin.
    modpost: minor cleanup.
    genksyms: pass symbol-prefix instead of arch
    module: fix symbol versioning with symbol prefixes
    CONFIG_SYMBOL_PREFIX: cleanup.

    Linus Torvalds
     

02 May, 2013

1 commit

  • Pull ARM SoC non-critical fixes from Olof Johansson:
    "Here is a collection of fixes (and some intermixed cleanups) that were
    considered less important and thus not included in the later parts of
    the 3.9-rc cycle.

    It's a bit all over the map, contents wise. A series of ux500 fixes
    and cleanups, a bunch of various fixes for OMAP and tegra, and some
    for Freescale i.MX and even Qualcomm MSM.

    Note that there's also a patch on this branch to globally turn off
    -Wmaybe-uninitialized when building with -Os. It's been posted
    several times by Arnd and no dissent was raised, but nobody seemed
    interested to pick it up. So here it is, as the topmost patch."

    * tag 'fixes-nc-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc: (70 commits)
    Turn off -Wmaybe-uninitialized when building with -Os
    ARM: orion5x: include linux/cpu.h
    ARM: tegra: call cpu_do_idle from C code
    ARM: u300: fix ages old copy/paste bug
    ARM: OMAP2+: add dependencies on ARCH_MULTI_V6/V7
    ARM: tegra: solve adr range issue with THUMB2_KERNEL enabled
    ARM: tegra: fix relocation truncated error when THUMB2_KERNEL enabled
    ARM: tegra: fix build error when THUMB2_KERNEL enabled
    ARM: msm: Fix uncompess.h tx underrun check
    ARM: vexpress: Remove A9 PMU compatible values for non-A9 platforms
    ARM: cpuimx27 and mbimx27: prepend CONFIG_ to Kconfig macro
    ARM: OMAP2+: fix typo "CONFIG_BRIDGE_DVFS"
    ARM: OMAP1: remove "config MACH_OMAP_HTCWIZARD"
    ARM: mach-imx: mach-imx6q: Fix sparse warnings
    ARM: mach-imx: src: Include "common.h
    ARM: mach-imx: gpc: Include "common.h"
    ARM: mach-imx: avic: Staticize *avic_base
    ARM: mach-imx: tzic: Staticize *tzic_base
    ARM: mach-imx: clk: Include "clk.h"
    ARM: mach-imx: clk-busy: Staticize clk_busy_mux_ops
    ...

    Linus Torvalds
     

30 Apr, 2013

1 commit

  • Pull perf updates from Ingo Molnar:
    "Features:

    - Add "uretprobes" - an optimization to uprobes, like kretprobes are
    an optimization to kprobes. "perf probe -x file sym%return" now
    works like kretprobes. By Oleg Nesterov.

    - Introduce per core aggregation in 'perf stat', from Stephane
    Eranian.

    - Add memory profiling via PEBS, from Stephane Eranian.

    - Event group view for 'annotate' in --stdio, --tui and --gtk, from
    Namhyung Kim.

    - Add support for AMD NB and L2I "uncore" counters, by Jacob Shin.

    - Add Ivy Bridge-EP uncore support, by Zheng Yan

    - IBM zEnterprise EC12 oprofile support patchlet from Robert Richter.

    - Add perf test entries for checking breakpoint overflow signal
    handler issues, from Jiri Olsa.

    - Add perf test entry for for checking number of EXIT events, from
    Namhyung Kim.

    - Add perf test entries for checking --cpu in record and stat, from
    Jiri Olsa.

    - Introduce perf stat --repeat forever, from Frederik Deweerdt.

    - Add --no-demangle to report/top, from Namhyung Kim.

    - PowerPC fixes plus a couple of cleanups/optimizations in uprobes
    and trace_uprobes, by Oleg Nesterov.

    Various fixes and refactorings:

    - Fix dependency of the python binding wrt libtraceevent, from
    Naohiro Aota.

    - Simplify some perf_evlist methods and to allow 'stat' to share code
    with 'record' and 'trace', by Arnaldo Carvalho de Melo.

    - Remove dead code in related to libtraceevent integration, from
    Namhyung Kim.

    - Revert "perf sched: Handle PERF_RECORD_EXIT events" to get 'perf
    sched lat' back working, by Arnaldo Carvalho de Melo

    - We don't use Newt anymore, just plain libslang, by Arnaldo Carvalho
    de Melo.

    - Kill a bunch of die() calls, from Namhyung Kim.

    - Fix build on non-glibc systems due to libio.h absence, from Cody P
    Schafer.

    - Remove some perf_session and tracing dead code, from David Ahern.

    - Honor parallel jobs, fix from Borislav Petkov

    - Introduce tools/lib/lk library, initially just removing duplication
    among tools/perf and tools/vm. from Borislav Petkov

    ... and many more I missed to list, see the shortlog and git log for
    more details."

    * 'perf-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: (136 commits)
    perf/x86/intel/P4: Robistify P4 PMU types
    perf/x86/amd: Fix AMD NB and L2I "uncore" support
    perf/x86/amd: Remove old-style NB counter support from perf_event_amd.c
    perf/x86: Check all MSRs before passing hw check
    perf/x86/amd: Add support for AMD NB and L2I "uncore" counters
    perf/x86/intel: Add Ivy Bridge-EP uncore support
    perf/x86/intel: Fix SNB-EP CBO and PCU uncore PMU filter management
    perf/x86: Avoid kfree() in CPU_{STARTING,DYING}
    uprobes/perf: Avoid perf_trace_buf_prepare/submit if ->perf_events is empty
    uprobes/tracing: Don't pass addr=ip to perf_trace_buf_submit()
    uprobes/tracing: Change create_trace_uprobe() to support uretprobes
    uprobes/tracing: Make seq_printf() code uretprobe-friendly
    uprobes/tracing: Make register_uprobe_event() paths uretprobe-friendly
    uprobes/tracing: Make uprobe_{trace,perf}_print() uretprobe-friendly
    uprobes/tracing: Introduce is_ret_probe() and uretprobe_dispatcher()
    uprobes/tracing: Introduce uprobe_{trace,perf}_print() helpers
    uprobes/tracing: Generalize struct uprobe_trace_entry_head
    uprobes/tracing: Kill the pointless local_save_flags/preempt_count calls
    uprobes/tracing: Kill the pointless seq_print_ip_sym() call
    uprobes/tracing: Kill the pointless task_pt_regs() calls
    ...

    Linus Torvalds
     

29 Apr, 2013

2 commits

  • gcc-4.7 and higher add a lot of false positive warnings about
    potential uses of uninitialized warnings, but only when optimizing
    for size (-Os). This is the default when building allyesconfig,
    which turns on CONFIG_CC_OPTIMIZE_FOR_SIZE.

    In order to avoid getting a lot of patches that initialize such
    variables and accidentally hide real errors along the way, let's
    just turn off this warning on the respective gcc versions
    when building with size optimizations. The -Wmaybe-uninitialized
    option was introduced in the same gcc version (4.7) that is now
    causing the false positives, so there is no effect on older compilers.

    A side effect is that when building with CONFIG_CC_OPTIMIZE_FOR_SIZE,
    we might now see /fewer/ warnings about possibly uninitialized
    warnings than with -O2, but that is still much better than seeing
    warnings known to be bogus.

    Signed-off-by: Arnd Bergmann

    Arnd Bergmann
     
  • Linus Torvalds
     

22 Apr, 2013

1 commit


21 Apr, 2013

1 commit


18 Apr, 2013

1 commit

  • The source tree can contain lots of uninteresting data like tag or
    cscope files, packaging which slows down make rpm needlessly. It can
    also break the build, if the tree contains an unrelated file named
    *.spec. The downside of this change is that new subdirectories have to
    be added to the KBUILD_ALLDIRS variable in the top-level Makefile. The
    upside is that the behavior is more predictable.

    Signed-off-by: Michal Marek

    Michal Marek
     

17 Apr, 2013

1 commit


15 Apr, 2013

1 commit


10 Apr, 2013

1 commit


08 Apr, 2013

2 commits


01 Apr, 2013

1 commit


24 Mar, 2013

1 commit


21 Mar, 2013

1 commit

  • …/acme/linux into perf/core

    Conflicts:
    tools/Makefile

    Pull perf/core improvements and fixes from Arnaldo Carvalho de Melo:

    . Honor parallel jobs, fix from Borislav Petkov

    . Introduce tools/lib/lk library, initially just removing duplication
    among tools/perf and tools/vm. from Borislav Petkov

    . Fix build on non-glibc systems due to libio.h absence, from Cody P Schafer.

    . Remove some perf_session and tracing dead code, from David Ahern.

    . Introduce perf stat --repeat forever, from Frederik Deweerdt.

    . Add perf test entries for checking --cpu in record and stat, from Jiri Olsa.

    . Add perf test entries for checking breakpoint overflow signal handler issues,
    from Jiri Olsa.

    . Add perf test entry for for checking number of EXIT events, from Namhyung Kim.

    . Simplify some perf_evlist methods and to allow 'stat' to share code with
    'record' and 'trace'.

    . Remove dead code in related to libtraceevent integration, from Namhyung Kim.

    . Event group view for 'annotate' in --stdio, --tui and --gtk, from Namhyung Kim.

    Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
    [ resolved the trivial merge conflict with upstream ]
    Signed-off-by: Ingo Molnar <mingo@kernel.org>

    Ingo Molnar
     

18 Mar, 2013

1 commit


16 Mar, 2013

1 commit

  • We need to hand down parallel build options like the internal make
    --jobserver-fds one so that parallel builds can also happen when
    building perf from the toplevel directory.

    Make it so #1!

    Signed-off-by: Borislav Petkov
    Cc: Ingo Molnar
    Cc: Steven Rostedt
    Link: http://lkml.kernel.org/r/1361374353-30385-3-git-send-email-bp@alien8.de
    Signed-off-by: Arnaldo Carvalho de Melo

    Borislav Petkov
     

15 Mar, 2013

1 commit

  • We have CONFIG_SYMBOL_PREFIX, which three archs define to the string
    "_". But Al Viro broke this in "consolidate cond_syscall and
    SYSCALL_ALIAS declarations" (in linux-next), and he's not the first to
    do so.

    Using CONFIG_SYMBOL_PREFIX is awkward, since we usually just want to
    prefix it so something. So various places define helpers which are
    defined to nothing if CONFIG_SYMBOL_PREFIX isn't set:

    1) include/asm-generic/unistd.h defines __SYMBOL_PREFIX.
    2) include/asm-generic/vmlinux.lds.h defines VMLINUX_SYMBOL(sym)
    3) include/linux/export.h defines MODULE_SYMBOL_PREFIX.
    4) include/linux/kernel.h defines SYMBOL_PREFIX (which differs from #7)
    5) kernel/modsign_certificate.S defines ASM_SYMBOL(sym)
    6) scripts/modpost.c defines MODULE_SYMBOL_PREFIX
    7) scripts/Makefile.lib defines SYMBOL_PREFIX on the commandline if
    CONFIG_SYMBOL_PREFIX is set, so that we have a non-string version
    for pasting.

    (arch/h8300/include/asm/linkage.h defines SYMBOL_NAME(), too).

    Let's solve this properly:
    1) No more generic prefix, just CONFIG_HAVE_UNDERSCORE_SYMBOL_PREFIX.
    2) Make linux/export.h usable from asm.
    3) Define VMLINUX_SYMBOL() and VMLINUX_SYMBOL_STR().
    4) Make everyone use them.

    Signed-off-by: Rusty Russell
    Reviewed-by: James Hogan
    Tested-by: James Hogan (metag)

    Rusty Russell
     

11 Mar, 2013

1 commit


04 Mar, 2013

1 commit


28 Feb, 2013

1 commit

  • Pull kbuild changes from Michal Marek:

    - Alias generation in modpost is cross-compile safe.

    - kernel/timeconst.h is now generated using a bc script instead of
    perl.

    - scripts/link-vmlinux.sh now works with an alternative
    $KCONFIG_CONFIG.

    - destination-y for exported headers is supported in Kbuild files
    again.

    - depmod is called with -P $CONFIG_SYMBOL_PREFIX on architectures that
    need it.

    - CONFIG_DEBUG_INFO_REDUCED disables var-tracking

    - scripts/setlocalversion works with too much translated locales ;)

    * 'kbuild' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild:
    kbuild: Fix reading of .config in link-vmlinux.sh
    kbuild: Unset language specific variables in setlocalversion script
    Kbuild: Disable var tracking with CONFIG_DEBUG_INFO_REDUCED
    depmod: pass -P $CONFIG_SYMBOL_PREFIX
    kbuild: Fix destination-y for installed headers
    scripts/link-vmlinux.sh: source variables from KCONFIG_CONFIG
    kernel: Replace timeconst.pl with a bc script
    mod/file2alias: make modalias generation safe for cross compiling

    Linus Torvalds
     

26 Feb, 2013

1 commit

  • Pull module update from Rusty Russell:
    "The sweeping change is to make add_taint() explicitly indicate whether
    to disable lockdep, but it's a mechanical change."

    * tag 'modules-next-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rusty/linux:
    MODSIGN: Add option to not sign modules during modules_install
    MODSIGN: Add -s option to sign-file
    MODSIGN: Specify the hash algorithm on sign-file command line
    MODSIGN: Simplify Makefile with a Kconfig helper
    module: clean up load_module a little more.
    modpost: Ignore ARC specific non-alloc sections
    module: constify within_module_*
    taint: add explicit flag to show whether lock dep is still OK.
    module: printk message when module signature fail taints kernel.

    Linus Torvalds
     

22 Feb, 2013

2 commits

  • Newer gcc enables the var-tracking pass with -g to keep track which
    registers contain which variables. This is one of the slower passes in gcc.

    With reduced debug info (aimed at objdump -S, but not using a full debugger)
    we don't need this fine grained tracking. But it was still enabled
    because -g was enabled. Disable it explicitely for DEBUG_INFO_REDUCED.

    On my 8T workstation this gives me about a 12 second gain in building
    a reasonable kernel config (2min16 vs 2min28) with DEBUG_INFO_REDUCED.
    With full DEBUG_INFO it takes 2min46

    The actual improvement in user time taken by the compiler is much higher
    (all CPU combined user time 15min5s vs 16m30 before)
    but the usual amdahl bottleneck on the linker prevents more speedup.
    It still saves some more energy and keeps cycles for other things.

    Signed-off-by: Andi Kleen
    Signed-off-by: Michal Marek

    Andi Kleen
     
  • On architectures which have symbol prefixes, depmod emits lots of
    warnings like this:

    WARNING: $module.ko needs unknown symbol $symbol

    This is because depmod isn't being passed the -P
    arguments to specify the symbol prefix to ignore. This option is
    included since the 3.13 release of module-init-tools.

    Update scripts/depmod.sh to take extra arguments for the symbol prefix
    (required but may be empty), and update the main Makefile to always pass
    "$(CONFIG_SYMBOL_PREFIX)" to scripts/depmod.sh.

    If the provided symbol prefix is non-empty, scripts/depmod.sh checks if
    depmod --version reports module-init-tools with a version number < 3.13
    otherwise it appends -P $SYMBOL_PREFIX to the depmod command line.

    Signed-off-by: James Hogan
    Cc: Michal Marek
    Cc: linux-kbuild@vger.kernel.org
    Cc: Mike Frysinger
    Cc: Yoshinori Sato
    Cc: uclinux-dist-devel@blackfin.uclinux.org
    Signed-off-by: Michal Marek

    James Hogan
     

20 Feb, 2013

1 commit

  • Pull two x86 kernel build changes from Ingo Molnar:
    "The first change modifies how 'make oldconfig' works on cross-bitness
    situations on x86. It was felt the new behavior of preserving the
    bitness of the .config is more logical. This is a leftover of the
    merge.

    The second change eliminates a Perl warning. (There's another, more
    complete fix resulting of this warning fix, which second fix in flight
    to you via the kbuild tree, which will remove the timeconst.pl script
    altogether.)"

    * 'x86-build-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
    timeconst.pl: Eliminate Perl warning
    x86: Default to ARCH=x86 to avoid overriding CONFIG_64BIT

    Linus Torvalds
     

19 Feb, 2013

1 commit


09 Feb, 2013

1 commit


01 Feb, 2013

1 commit


26 Jan, 2013

1 commit


25 Jan, 2013

3 commits


23 Jan, 2013

1 commit

  • By popular demand, arch/aarch64 is now known as arch/arm64. However,
    uname -m (and indeed the GNU triplet) still use aarch64 as the machine
    string.

    This patch fixes native builds of both the kernel and perf tools by
    updating the relevant Makefiles to munge the output of uname -m and
    set the ARCH variable appropriately.

    Cc:
    Signed-off-by: Will Deacon
    Signed-off-by: Catalin Marinas

    Will Deacon