Commit Graph

8 Commits

Author SHA1 Message Date
Lee Jones
3d5cbd4cbf Revert "Revert "tweewide: Fix most Shebang lines""
This reverts commit ab9895b78e.

From Greg's reversion:

 "Looks like some of the Android build systems do NOT have /usr/bin/env so
  revert this change until that happens.

  Specifically the following builds fail without this change reverted:
          kernel_kasan_aarch64 on aosp_kernel-common-android-mainline
          kernel_virt_kasan_aarch64 on aosp_kernel-common-android-mainline
          kernel_virt_kasan_x86_64 on aosp_kernel-common-android-mainline
          kernel_kasan_x86_64 on aosp_kernel-common-android-mainline"

'env' should not fail.  Let's have another go at applying this.

Signed-off-by: Lee Jones <lee.jones@linaro.org>
Change-Id: I8f56ed40e8bb24474d6c454ff6d1982c86d9adc3
2021-05-18 19:47:38 +00:00
Greg Kroah-Hartman
ab9895b78e Revert "tweewide: Fix most Shebang lines"
This reverts commit c25ce589dc.

Looks like some of the Android build systems do NOT have /usr/bin/env so
revert this change until that happens.

Specifically the following builds fail without this change reverted:
	kernel_kasan_aarch64 on aosp_kernel-common-android-mainline
	kernel_virt_kasan_aarch64 on aosp_kernel-common-android-mainline
	kernel_virt_kasan_x86_64 on aosp_kernel-common-android-mainline
	kernel_kasan_x86_64 on aosp_kernel-common-android-mainline

Fixes: c25ce589dc ("tweewide: Fix most Shebang lines")
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: I8077c5c1a4b9934f6d40aebb67212cc0b0f2513e
2021-01-13 11:32:27 +01:00
Finn Behrens
c25ce589dc tweewide: Fix most Shebang lines
Change every shebang which does not need an argument to use /usr/bin/env.
This is needed as not every distro has everything under /usr/bin,
sometimes not even bash.

Signed-off-by: Finn Behrens <me@kloenk.de>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
2020-12-08 23:30:04 +09:00
Thomas Gleixner
4f19048fd0 treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 166
Based on 1 normalized pattern(s):

  licensed under the terms of the gnu gpl license version 2

extracted by the scancode license scanner the SPDX license identifier

  GPL-2.0-only

has been chosen to replace the boilerplate/reference in 62 file(s).

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Allison Randal <allison@lohutok.net>
Reviewed-by: Kate Stewart <kstewart@linuxfoundation.org>
Reviewed-by: Richard Fontana <rfontana@redhat.com>
Cc: linux-spdx@vger.kernel.org
Link: https://lkml.kernel.org/r/20190527070033.929121379@linutronix.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-05-30 11:26:39 -07:00
Jeremy Cline
ddc7c5721a scripts: Add Python 3 support to tracing/draw_functrace.py
Use the print function. This maintains Python 2 support and should have
no functional change.

Signed-off-by: Jeremy Cline <jcline@redhat.com>
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
2018-07-29 11:08:38 +09:00
Michal Marek
06ed5c2bfa kbuild: Make scripts executable
The Makefiles call the respective interpreter explicitly, but this makes
it easier to use the scripts manually.

Signed-off-by: Michal Marek <mmarek@suse.cz>
2014-08-20 16:03:45 +02:00
GeunSik Lim
156f5a7801 debugfs: Fix terminology inconsistency of dir name to mount debugfs filesystem.
Many developers use "/debug/" or "/debugfs/" or "/sys/kernel/debug/"
directory name to mount debugfs filesystem for ftrace according to
./Documentation/tracers/ftrace.txt file.

And, three directory names(ex:/debug/, /debugfs/, /sys/kernel/debug/) is
existed in kernel source like ftrace, DRM, Wireless, Documentation,
Network[sky2]files to mount debugfs filesystem.

debugfs means debug filesystem for debugging easy to use by greg kroah
hartman. "/sys/kernel/debug/" name is suitable as directory name
of debugfs filesystem.
- debugfs related reference: http://lwn.net/Articles/334546/

Fix inconsistency of directory name to mount debugfs filesystem.

* From Steven Rostedt
  - find_debugfs() and tracing_files() in this patch.

Signed-off-by: GeunSik Lim <geunsik.lim@samsung.com>
Acked-by     : Inaky Perez-Gonzalez <inaky@linux.intel.com>
Reviewed-by  : Steven Rostedt <rostedt@goodmis.org>
Reviewed-by  : James Smart <james.smart@emulex.com>
CC: Jiri Kosina <trivial@kernel.org>
CC: David Airlie <airlied@linux.ie>
CC: Peter Osterlund <petero2@telia.com>
CC: Ananth N Mavinakayanahalli <ananth@in.ibm.com>
CC: Anil S Keshavamurthy <anil.s.keshavamurthy@intel.com>
CC: Masami Hiramatsu <mhiramat@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2009-06-15 21:30:28 -07:00
Frederic Weisbecker
f4a2a0d9a4 ftrace: add a script to produce a hierarchical view of a function trace
This script parses a function trace and then produces a hierarchical
view of the function call stack after processing it into a tree.

Changes on V2 thanks to the trace sent by Steven:

- Support both the files "trace" and "trace_pipe" (comments and space
  differences)

- Correct the mini HOW-TO at the beginning.

Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Acked-by: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
2008-10-27 11:00:07 +01:00