Commit cd2121d4 authored by Scott James Remnant's avatar Scott James Remnant Committed by Richard Fung
Browse files

CHROMIUM: UBUNTU: SAUCE: trace: add trace events for open(), exec() and uselib()

BugLink: http://bugs.launchpad.net/bugs/462111



This patch uses TRACE_EVENT to add tracepoints for the open(),
exec() and uselib() syscalls so that ureadahead can cheaply trace
the boot sequence to determine what to read to speed up the next.

It's not upstream because it will need to be rebased onto the syscall
trace events whenever that gets merged, and is a stop-gap.

[benzh: 3.14 rebase. Squashed 2 warning fixes. Fixed a new incompatible
pointer type error for trace_open_exec() due to upstream change]

Signed-off-by: default avatarScott James Remnant <scott@ubuntu.com>
Acked-by: default avatarStefan Bader <stefan.bader@canonical.com>
Acked-by: default avatarAndy Whitcroft <andy.whitcroft@canonical.com>
Signed-off-by: default avatarStefan Bader <stefan.bader@canonical.com>
Signed-off-by: default avatarBen Zhang <benzh@chromium.org>

Conflicts:
	fs/exec.c
[rebase44(filbranden): Moved the trace_open_exec call to the block where
 fsnotify_open was.]
Signed-off-by: default avatarFilipe Brandenburger <filbranden@chromium.org>

Conflicts:
	fs/open.c
	fs/exec.c

[rebase412(groeck): Resolved conflicts]
[rebase510(groeck): Context conflicts (open syscalls rearranged)]
Signed-off-by: default avatarGuenter Roeck <groeck@chromium.org>
(cherry picked from commit 380de1b9172e380629163429c1cf45188615ffca)

BUG=b:180669321
BUG=b:180359699
TEST=emerge, /sys/kernel/debug/tracing/events/fs/do_sys_open/enable 1,
and /sys/kernel/debug/tracing/events/fs/open_exec/enable 1

[5.10-arcvm: picked from 5.10]
Signed-off-by: default avatarAlan Ding <alanding@chromium.org>
Change-Id: I5d8b303eb6c62a41965f8734234643f5f3a62e31
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/kernel/+/3001421


Commit-Queue: Hikaru Nishida <hikalium@chromium.org>
Reviewed-by: default avatarHikaru Nishida <hikalium@chromium.org>
Tested-by: default avatarHikaru Nishida <hikalium@chromium.org>
Signed-off-by: default avatarRichard Fung <richardfung@google.com>
parent b21a196d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment