1. 02 6月, 2018 14 次提交
  2. 04 5月, 2018 1 次提交
    • J
      tools: power/acpi, revert to LD = gcc · 75539616
      Jiri Slaby 提交于
      Commit 7ed1c190 (tools: fix cross-compile var clobbering) removed
      setting of LD to $(CROSS_COMPILE)gcc. This broke build of acpica
      (acpidump) in power/acpi:
       ld: unrecognized option '-D_LINUX'
      
      The tools pass CFLAGS to the linker (incl. -D_LINUX), so revert this
      particular change and let LD be $(CC) again. Note that the old behaviour
      was a bit different, it used $(CROSS_COMPILE)gcc which was eliminated by
      the commit 7ed1c190. We use $(CC) for that reason.
      
      Fixes: 7ed1c190 (tools: fix cross-compile var clobbering)
      Signed-off-by: NJiri Slaby <jslaby@suse.cz>
      Cc: 4.16+ <stable@vger.kernel.org> # 4.16+
      Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
      75539616
  3. 19 3月, 2018 1 次提交
  4. 22 2月, 2018 4 次提交
    • M
      tools: fix cross-compile var clobbering · 7ed1c190
      Martin Kelly 提交于
      Currently a number of Makefiles break when used with toolchains that
      pass extra flags in CC and other cross-compile related variables (such
      as --sysroot).
      
      Thus we get this error when we use a toolchain that puts --sysroot in
      the CC var:
      
        ~/src/linux/tools$ make iio
        [snip]
        iio_event_monitor.c:18:10: fatal error: unistd.h: No such file or directory
          #include <unistd.h>
                   ^~~~~~~~~~
      
      This occurs because we clobber several env vars related to
      cross-compiling with lines like this:
      
        CC = $(CROSS_COMPILE)gcc
      
      Although this will point to a valid cross-compiler, we lose any extra
      flags that might exist in the CC variable, which can break toolchains
      that rely on them (for example, those that use --sysroot).
      
      This easily shows up using a Yocto SDK:
      
        $ . [snip]/sdk/environment-setup-cortexa8hf-neon-poky-linux-gnueabi
      
        $ echo $CC
        arm-poky-linux-gnueabi-gcc -march=armv7-a -mfpu=neon -mfloat-abi=hard
        -mcpu=cortex-a8
        --sysroot=[snip]/sdk/sysroots/cortexa8hf-neon-poky-linux-gnueabi
      
        $ echo $CROSS_COMPILE
        arm-poky-linux-gnueabi-
      
        $ echo ${CROSS_COMPILE}gcc
        krm-poky-linux-gnueabi-gcc
      
      Although arm-poky-linux-gnueabi-gcc is a cross-compiler, we've lost the
      --sysroot and other flags that enable us to find the right libraries to
      link against, so we can't find unistd.h and other libraries and headers.
      Normally with the --sysroot flag we would find unistd.h in the sdk
      directory in the sysroot:
      
        $ find [snip]/sdk/sysroots -path '*/usr/include/unistd.h'
        [snip]/sdk/sysroots/cortexa8hf-neon-poky-linux-gnueabi/usr/include/unistd.h
      
      The perf Makefile adds CC = $(CROSS_COMPILE)gcc if and only if CC is not
      already set, and it compiles correctly with the above toolchain.
      
      So, generalize the logic that perf uses in the common Makefile and
      remove the manual CC = $(CROSS_COMPILE)gcc lines from each Makefile.
      
      Note that this patch does not fix cross-compile for all the tools (some
      have other bugs), but it does fix it for all except usb and acpi, which
      still have other unrelated issues.
      
      I tested both with and without the patch on native and cross-build and
      there appear to be no regressions.
      
      Link: http://lkml.kernel.org/r/20180107214028.23771-1-martin@martingkelly.comSigned-off-by: NMartin Kelly <martin@martingkelly.com>
      Acked-by: NMark Brown <broonie@kernel.org>
      Cc: Tejun Heo <tj@kernel.org>
      Cc: Li Zefan <lizefan@huawei.com>
      Cc: Johannes Weiner <hannes@cmpxchg.org>
      Cc: Linus Walleij <linus.walleij@linaro.org>
      Cc: "K. Y. Srinivasan" <kys@microsoft.com>
      Cc: Haiyang Zhang <haiyangz@microsoft.com>
      Cc: Stephen Hemminger <sthemmin@microsoft.com>
      Cc: Jonathan Cameron <jic23@kernel.org>
      Cc: Pali Rohar <pali.rohar@gmail.com>
      Cc: Richard Purdie <rpurdie@rpsys.net>
      Cc: Jacek Anaszewski <jacek.anaszewski@gmail.com>
      Cc: Pavel Machek <pavel@ucw.cz>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Ingo Molnar <mingo@redhat.com>
      Cc: Arnaldo Carvalho de Melo <acme@kernel.org>
      Cc: Robert Moore <robert.moore@intel.com>
      Cc: Lv Zheng <lv.zheng@intel.com>
      Cc: "Rafael J. Wysocki" <rafael.j.wysocki@intel.com>
      Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
      Cc: Valentina Manea <valentina.manea.m@gmail.com>
      Cc: Shuah Khan <shuah@kernel.org>
      Cc: Mario Limonciello <mario.limonciello@dell.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      7ed1c190
    • T
      pm-graph: AnalyzeSuspend v5.0 · 700abc90
      Todd E Brandt 提交于
      - add -cgskip option to reduce callgraph output size
      - add -cgfilter option to focus on a list of devices
      - add -result option for exporting batch test results
      - removed all phoronix hooks, use -result to enable batch testing
      - change -usbtopo to -devinfo, now prints all devices
      - add -gzip option to read/write logs in gz format
      - add -bufsize option to manually control ftrace buffer size
      - add -sync option to run filesystem sync prior to test
      - add -display option to enable/disable the display prior to test
      - add -rs option to enable/disable runtime suspend on all devices for test
      - add installed config files to search path
      - add kernel error/warning links into the timeline
      - fix callgraph trace to better handle interrupts
      - include command string and kernel params in timeline output header
      Signed-off-by: NTodd Brandt <todd.e.brandt@linux.intel.com>
      Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
      700abc90
    • T
      pm-graph: AnalyzeBoot v2.2 · d83a76a8
      Todd E Brandt 提交于
      - add -cgskip option to reduce callgraph output size
      - add -cgfilter option to focus on a list of devices
      - add -result option for exporting batch test results
      - removed all phoronix hooks, use -result to enable batch testing
      - changed argument -f to match sleegraph, -f = -callgraph
      - use -fstat for function status instead of -f
      - add -verbose option to print out timeline stats and kernel options
      - include command string and kernel params in timeline output header
      Signed-off-by: NTodd Brandt <todd.e.brandt@linux.intel.com>
      Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
      d83a76a8
    • T
      pm-graph: config files and installer · a6fbdbb2
      Todd E Brandt 提交于
      - name change: analyze_boot.py to bootgraph.py
      - name change: analyze_suspend.py to sleepgraph.py
      - added config files for easier sleepgraph usage
      - added example.cfg which describes all config options
      - added cgskip.txt definition for slimmer callgraphs
      Signed-off-by: NTodd Brandt <todd.e.brandt@linux.intel.com>
      Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
      a6fbdbb2
  5. 06 2月, 2018 1 次提交
  6. 10 1月, 2018 1 次提交
  7. 15 12月, 2017 1 次提交
  8. 27 11月, 2017 1 次提交
  9. 18 11月, 2017 1 次提交
    • B
      kbuild: /bin/pwd -> pwd · 16f8259c
      Bjørn Forsman 提交于
      Most places use pwd and rely on $PATH lookup. Moving the remaining
      absolute path /bin/pwd users over for consistency.
      
      Also, a reason for doing /bin/pwd -> pwd instead of the other way around
      is because I believe build systems should make little assumptions on
      host filesystem layout. Case in point, we do this kind of patching
      already in NixOS.
      
      Ref. commit 028568d8
      ("kbuild: revert $(realpath ...) to $(shell cd ... && /bin/pwd)").
      Signed-off-by: NBjørn Forsman <bjorn.forsman@gmail.com>
      Signed-off-by: NMasahiro Yamada <yamada.masahiro@socionext.com>
      16f8259c
  10. 15 11月, 2017 2 次提交
  11. 10 11月, 2017 2 次提交
    • P
      tools/power/cpupower: add libcpupower.so.0.0.1 to .gitignore · 69b6f8a9
      Prarit Bhargava 提交于
      Commit ac5a181d ("cpupower: Add cpuidle parts into library") added
      libcpupower.so.0.0.1 which should be hidden from git commands.  This
      patch changes the ignore to all libcpupower.so.* .
      Signed-off-by: NPrarit Bhargava <prarit@redhat.com>
      Cc: Shuah Khan <shuahkh@osg.samsung.com>
      Signed-off-by: NShuah Khan <shuahkh@osg.samsung.com>
      69b6f8a9
    • P
      tools/power/cpupower: Add 64 bit library detection · d4dbfa4b
      Prarit Bhargava 提交于
      The kernel-tools-lib rpm is installing the library to /usr/lib64, and not
      /usr/lib as the cpupower Makefile is doing in the kernel tree.  This
      resulted in a conflict between the two libraries.  After looking at how
      other tools installed libraries, and looking at the perf code in
      tools/perf it looks like installing to /usr/lib64 for 64-bit arches is the
      correct thing to do.
      
      Checks with 'ldd cpupower' on SLES, RHEL, Fedora, and Ubuntu result in
      the correct binary AFAICT:
      
      [root@testsystem cpupower]# ldd cpupower | grep cpupower
              libcpupower.so.0 => /lib64/libcpupower.so.0 (0x00007f1dab447000)
      
      Commit ac5a181d ("cpupower: Add cpuidle parts into library") added a
      new cpupower library version.  On Fedora, executing the cpupower binary
      then resulted in this error
      
      [root@testsystem cpupower]# ./cpupower monitor
      ./cpupower: symbol lookup error: ./cpupower: undefined symbol:
      get_cpu_topology
      
      64-bit libraries should be installed to /usr/lib64, and other libraries
      should be installed to /usr/lib.
      
      This code was taken from the perf Makefile.config which supports /usr/lib
      and /usr/lib64.
      Signed-off-by: NPrarit Bhargava <prarit@redhat.com>
      Cc: Shuah Khan <shuahkh@osg.samsung.com>
      Signed-off-by: NShuah Khan <shuahkh@osg.samsung.com>
      d4dbfa4b
  12. 03 11月, 2017 1 次提交
    • P
      cpupower: Fix no-rounding MHz frequency output · 9da779c3
      Prarit Bhargava 提交于
      'cpupower frequency-info -ln' returns kHz values on systems with MHz range
      minimum CPU frequency range.  For example, on a 800MHz to 4.20GHz system
      the command returns
      
      hardware limits: 800000 MHz - 4.200000 GHz
      
      The code that causes this error can be removed.  The next else if clause
      will handle the output correctly such that
      
      hardware limits: 800.000 MHz - 4.200000 GHz
      
      is displayed correctly.
      
      [v2]: Remove two lines instead of fixing broken code.
      Signed-off-by: NPrarit Bhargava <prarit@redhat.com>
      Cc: Thomas Renninger <trenn@suse.com>
      Cc: Stafford Horne <shorne@gmail.com>
      Cc: Shuah Khan <shuah@kernel.org>
      Reviewed-by: NStafford Horne <shorne@gmail.com>
      Signed-off-by: NShuah Khan <shuahkh@osg.samsung.com>
      9da779c3
  13. 02 11月, 2017 1 次提交
    • G
      License cleanup: add SPDX GPL-2.0 license identifier to files with no license · b2441318
      Greg Kroah-Hartman 提交于
      Many source files in the tree are missing licensing information, which
      makes it harder for compliance tools to determine the correct license.
      
      By default all files without license information are under the default
      license of the kernel, which is GPL version 2.
      
      Update the files which contain no license information with the 'GPL-2.0'
      SPDX license identifier.  The SPDX identifier is a legally binding
      shorthand, which can be used instead of the full boiler plate text.
      
      This patch is based on work done by Thomas Gleixner and Kate Stewart and
      Philippe Ombredanne.
      
      How this work was done:
      
      Patches were generated and checked against linux-4.14-rc6 for a subset of
      the use cases:
       - file had no licensing information it it.
       - file was a */uapi/* one with no licensing information in it,
       - file was a */uapi/* one with existing licensing information,
      
      Further patches will be generated in subsequent months to fix up cases
      where non-standard license headers were used, and references to license
      had to be inferred by heuristics based on keywords.
      
      The analysis to determine which SPDX License Identifier to be applied to
      a file was done in a spreadsheet of side by side results from of the
      output of two independent scanners (ScanCode & Windriver) producing SPDX
      tag:value files created by Philippe Ombredanne.  Philippe prepared the
      base worksheet, and did an initial spot review of a few 1000 files.
      
      The 4.13 kernel was the starting point of the analysis with 60,537 files
      assessed.  Kate Stewart did a file by file comparison of the scanner
      results in the spreadsheet to determine which SPDX license identifier(s)
      to be applied to the file. She confirmed any determination that was not
      immediately clear with lawyers working with the Linux Foundation.
      
      Criteria used to select files for SPDX license identifier tagging was:
       - Files considered eligible had to be source code files.
       - Make and config files were included as candidates if they contained >5
         lines of source
       - File already had some variant of a license header in it (even if <5
         lines).
      
      All documentation files were explicitly excluded.
      
      The following heuristics were used to determine which SPDX license
      identifiers to apply.
      
       - when both scanners couldn't find any license traces, file was
         considered to have no license information in it, and the top level
         COPYING file license applied.
      
         For non */uapi/* files that summary was:
      
         SPDX license identifier                            # files
         ---------------------------------------------------|-------
         GPL-2.0                                              11139
      
         and resulted in the first patch in this series.
      
         If that file was a */uapi/* path one, it was "GPL-2.0 WITH
         Linux-syscall-note" otherwise it was "GPL-2.0".  Results of that was:
      
         SPDX license identifier                            # files
         ---------------------------------------------------|-------
         GPL-2.0 WITH Linux-syscall-note                        930
      
         and resulted in the second patch in this series.
      
       - if a file had some form of licensing information in it, and was one
         of the */uapi/* ones, it was denoted with the Linux-syscall-note if
         any GPL family license was found in the file or had no licensing in
         it (per prior point).  Results summary:
      
         SPDX license identifier                            # files
         ---------------------------------------------------|------
         GPL-2.0 WITH Linux-syscall-note                       270
         GPL-2.0+ WITH Linux-syscall-note                      169
         ((GPL-2.0 WITH Linux-syscall-note) OR BSD-2-Clause)    21
         ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause)    17
         LGPL-2.1+ WITH Linux-syscall-note                      15
         GPL-1.0+ WITH Linux-syscall-note                       14
         ((GPL-2.0+ WITH Linux-syscall-note) OR BSD-3-Clause)    5
         LGPL-2.0+ WITH Linux-syscall-note                       4
         LGPL-2.1 WITH Linux-syscall-note                        3
         ((GPL-2.0 WITH Linux-syscall-note) OR MIT)              3
         ((GPL-2.0 WITH Linux-syscall-note) AND MIT)             1
      
         and that resulted in the third patch in this series.
      
       - when the two scanners agreed on the detected license(s), that became
         the concluded license(s).
      
       - when there was disagreement between the two scanners (one detected a
         license but the other didn't, or they both detected different
         licenses) a manual inspection of the file occurred.
      
       - In most cases a manual inspection of the information in the file
         resulted in a clear resolution of the license that should apply (and
         which scanner probably needed to revisit its heuristics).
      
       - When it was not immediately clear, the license identifier was
         confirmed with lawyers working with the Linux Foundation.
      
       - If there was any question as to the appropriate license identifier,
         the file was flagged for further research and to be revisited later
         in time.
      
      In total, over 70 hours of logged manual review was done on the
      spreadsheet to determine the SPDX license identifiers to apply to the
      source files by Kate, Philippe, Thomas and, in some cases, confirmation
      by lawyers working with the Linux Foundation.
      
      Kate also obtained a third independent scan of the 4.13 code base from
      FOSSology, and compared selected files where the other two scanners
      disagreed against that SPDX file, to see if there was new insights.  The
      Windriver scanner is based on an older version of FOSSology in part, so
      they are related.
      
      Thomas did random spot checks in about 500 files from the spreadsheets
      for the uapi headers and agreed with SPDX license identifier in the
      files he inspected. For the non-uapi files Thomas did random spot checks
      in about 15000 files.
      
      In initial set of patches against 4.14-rc6, 3 files were found to have
      copy/paste license identifier errors, and have been fixed to reflect the
      correct identifier.
      
      Additionally Philippe spent 10 hours this week doing a detailed manual
      inspection and review of the 12,461 patched files from the initial patch
      version early this week with:
       - a full scancode scan run, collecting the matched texts, detected
         license ids and scores
       - reviewing anything where there was a license detected (about 500+
         files) to ensure that the applied SPDX license was correct
       - reviewing anything where there was no detection but the patch license
         was not GPL-2.0 WITH Linux-syscall-note to ensure that the applied
         SPDX license was correct
      
      This produced a worksheet with 20 files needing minor correction.  This
      worksheet was then exported into 3 different .csv files for the
      different types of files to be modified.
      
      These .csv files were then reviewed by Greg.  Thomas wrote a script to
      parse the csv files and add the proper SPDX tag to the file, in the
      format that the file expected.  This script was further refined by Greg
      based on the output to detect more types of files automatically and to
      distinguish between header and source .c files (which need different
      comment types.)  Finally Greg ran the script using the .csv files to
      generate the patches.
      Reviewed-by: NKate Stewart <kstewart@linuxfoundation.org>
      Reviewed-by: NPhilippe Ombredanne <pombredanne@nexb.com>
      Reviewed-by: NThomas Gleixner <tglx@linutronix.de>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      b2441318
  14. 18 10月, 2017 1 次提交
  15. 07 10月, 2017 1 次提交
    • M
      kbuild: revert $(realpath ...) to $(shell cd ... && /bin/pwd) · 028568d8
      Masahiro Yamada 提交于
      I thought commit 8e9b4667 ("kbuild: use $(abspath ...) instead of
      $(shell cd ... && /bin/pwd)") was a safe conversion, but it changed
      the behavior.
      
      $(abspath ...) / $(realpath ...) does not expand shell special
      characters, such as '~'.
      
      Here is a simple Makefile example:
      
        ---------------->8----------------
        $(info /bin/pwd: $(shell cd ~/; /bin/pwd))
        $(info abspath: $(abspath ~/))
        $(info realpath: $(realpath ~/))
        all:
                @:
        ---------------->8----------------
      
        $ make
        /bin/pwd: /home/masahiro
        abspath: /home/masahiro/workspace/~
        realpath:
      
      This can be a real problem if 'make O=~/foo' is invoked from another
      Makefile or primitive shell like dash.
      
      This commit partially reverts 8e9b4667.
      
      Fixes: 8e9b4667 ("kbuild: use $(abspath ...) instead of $(shell cd ... && /bin/pwd)")
      Reported-by: NJulien Grall <julien.grall@arm.com>
      Signed-off-by: NMasahiro Yamada <yamada.masahiro@socionext.com>
      Tested-by: NJulien Grall <julien.grall@arm.com>
      028568d8
  16. 04 10月, 2017 1 次提交
  17. 01 9月, 2017 1 次提交
    • M
      kbuild: use $(abspath ...) instead of $(shell cd ... && /bin/pwd) · 8e9b4667
      Masahiro Yamada 提交于
      Kbuild conventionally uses $(shell cd ... && /bin/pwd) idiom to get
      the absolute path of the directory because GNU Make 3.80, the minimal
      supported version at that time, did not support $(abspath ...) or
      $(realpath ...).
      
      Commit 37d69ee3 ("docs: bump minimal GNU Make version to 3.81")
      dropped the GNU Make 3.80 support, so we are now allowed to use those
      make-builtin helpers.
      
      This conversion will provide better portability without relying on
      the pwd command or its location /bin/pwd.
      
      I am intentionally using $(realpath ...) instead $(abspath ...) in
      some places.  The difference between the two is $(realpath ...)
      returns an empty string if the given path does not exist.  It is
      convenient in places where we need to error-out if the makefile fails
      to create an output directory.
      Signed-off-by: NMasahiro Yamada <yamada.masahiro@socionext.com>
      Acked-by: NThierry Reding <treding@nvidia.com>
      8e9b4667
  18. 04 8月, 2017 2 次提交
  19. 31 7月, 2017 1 次提交
    • P
      tools/power/cpupower: allow running without cpu0 · d0e4a193
      Prarit Bhargava 提交于
      Linux-3.7 added CONFIG_BOOTPARAM_HOTPLUG_CPU0,
      allowing systems to offline cpu0.
      
      But when cpu0 is offline, cpupower monitor will not display all
      processor and Mperf information:
      
      [root@intel-skylake-dh-03 cpupower]# ./cpupower monitor
      WARNING: at least one cpu is offline
          |Idle_Stats
      CPU | POLL | C1-S | C1E- | C3-S | C6-S | C7s- | C8-S
         4|  0.00|  0.00|  0.00|  0.00|  0.90|  0.00| 96.13
         1|  0.00|  0.00|  5.49|  0.00|  0.01|  0.00| 92.26
         5|  0.00|  0.00|  0.00|  0.00|  0.46|  0.00| 99.50
         2| 45.42|  0.00|  0.00|  0.00| 22.94|  0.00| 28.84
         6|  0.00| 37.54|  0.00|  0.00|  0.00|  0.00|  0.00
         3|  0.00|  0.00|  0.00|  0.00|  0.30|  0.00| 91.99
         7|  0.00|  0.00|  0.00|  0.00|  4.70|  0.00|  0.70
      
      This patch replaces the hard-coded use of cpu0 in cpupower with the
      current cpu, allowing it to run without a cpu0.
      
      After the patch is applied,
      
      [root@intel-skylake-dh-03 cpupower]# ./cpupower monitor
      WARNING: at least one cpu is offline
          |Nehalem                    || Mperf              || Idle_Stats
      CPU | C3   | C6   | PC3  | PC6  || C0   | Cx   | Freq || POLL | C1-S | C1E- | C3-S | C6-S | C7s- | C8-S
         4|  0.01|  1.27|  0.00|  0.00||  0.04| 99.96|  3957||  0.00|  0.00|  0.00|  0.00|  1.43|  0.00| 98.52
         1|  0.00| 98.82|  0.00|  0.00||  0.05| 99.95|  3361||  0.00|  0.00|  0.01|  0.00|  0.03|  0.00| 99.88
         5|  0.00| 98.82|  0.00|  0.00||  0.09| 99.91|  3917||  0.00|  0.00|  0.00|  0.00| 99.38|  0.00|  0.50
         2|  0.33|  0.00|  0.00|  0.00||  0.00|100.00|  3890||  0.00|  0.00|  0.00|  0.00|  0.00|  0.00|100.00
         6|  0.33|  0.00|  0.00|  0.00||  0.01| 99.99|  3903||  0.00|  0.00|  0.00|  0.00|  0.00|  0.00| 99.99
         3|  0.01|  0.71|  0.00|  0.00||  0.06| 99.94|  3678||  0.00|  0.00|  0.00|  0.00|  0.80|  0.00| 99.13
         7|  0.01|  0.71|  0.00|  0.00||  0.03| 99.97|  3538||  0.00|  0.69| 11.70|  0.00|  0.00|  0.00| 87.57
      
      There are some minor cleanups included in this patch.
      Signed-off-by: NPrarit Bhargava <prarit@redhat.com>
      Signed-off-by: NThomas Renninger <trenn@suse.com>
      Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
      d0e4a193
  20. 22 7月, 2017 2 次提交
    • T
      pm-graph: package makefile and man pages · 2158e724
      Todd E Brandt 提交于
      update help text and man pages for both tools
      - added more examples and separated them by category
      Makefile upgrades
      - uninstall: remove errors from uninstall if tool not found
      - install: perform uninstall before install
      Signed-off-by: NTodd Brandt <todd.e.brandt@linux.intel.com>
      Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
      2158e724
    • T
      pm-graph: AnalyzeBoot v2.1 · 370f4c23
      Todd E Brandt 提交于
      - changed output from single html file to dir with html/dmesg/ftrace
      - add sysinfo to logs and timeline
      - add -sysinfo command, displays dmidecode values and cpu/mem info
      - set trace buffer size to lesser of memtotal/2 or 2GB when using callgraph
      - extended timeline to the last init call in user space
        separated timeline into two phases, kernel mode & user mode
      - add kernel version check for ftrace usage, 4.10 minimum
      - change -filter argument to -func
      - add strict protections on -func usage with full symbol checks
        now only works for statically linked functions
        cmd -flistall now ignores all loadable module functions
      - add -cgfilter argument for reducing timeline size by removing callgraphs
      - crontab usage: preserve existing @reboot lines in user crontab
      - fedora support added: uses grub2 loader, handles fedora crontab
      - stop using "which" to find binaries, search pre-defined path list
      - moved most output processing to analyze_suspend library
      Signed-off-by: NTodd Brandt <todd.e.brandt@linux.intel.com>
      Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
      370f4c23