Patch "perf trace: Separate 'struct syscall_fmt' definition from syscall_fmts variable" has been added to the 5.4-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    perf trace: Separate 'struct syscall_fmt' definition from syscall_fmts variable

to the 5.4-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     perf-trace-separate-struct-syscall_fmt-definition-fr.patch
and it can be found in the queue-5.4 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 75bcae265fcddc779189268e258686a5c8a8a1ec
Author: Arnaldo Carvalho de Melo <acme@xxxxxxxxxx>
Date:   Tue Oct 1 15:16:33 2019 -0300

    perf trace: Separate 'struct syscall_fmt' definition from syscall_fmts variable
    
    [ Upstream commit 9b2036cd329924082acfa5dec58deec12fa1f5e8 ]
    
    As this has all the things needed to format tracepoints events, not just
    syscalls, that, after all, are just tracepoints with a set in stone ABI,
    i.e. order and number of parameters.
    
    For tracepoints we'll create a
    
      static struct syscall_fmt tracepoint_fmts[]
    
    array and will fill the ->arg[] entries with the beautifier for each
    positional argument and record the name, then, when we need it, we'll
    just check that the position has the same name, maybe even type, so that
    we can do some check that the tracepoint hasn't changed, if it has, we
    can even reorder things.
    
    Keep calling it syscall_fmt but use it as well for tracepoints, do it
    this way to minimize changes and reuse what is in place for syscalls,
    we'll see.
    
    Cc: Adrian Hunter <adrian.hunter@xxxxxxxxx>
    Cc: Jiri Olsa <jolsa@xxxxxxxxxx>
    Cc: Luis Cláudio Gonçalves <lclaudio@xxxxxxxxxx>
    Cc: Namhyung Kim <namhyung@xxxxxxxxxx>
    Link: https://lkml.kernel.org/n/tip-2x1jgiev13zt4njaanlnne0d@xxxxxxxxxxxxxx
    Signed-off-by: Arnaldo Carvalho de Melo <acme@xxxxxxxxxx>
    Stable-dep-of: 03e9a5d8eb55 ("perf trace: Handle failure when trace point folder is missed")
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/tools/perf/builtin-trace.c b/tools/perf/builtin-trace.c
index d333f6c86c98..5dc8b123d3f5 100644
--- a/tools/perf/builtin-trace.c
+++ b/tools/perf/builtin-trace.c
@@ -702,7 +702,7 @@ struct syscall_arg_fmt {
 	bool	   show_zero;
 };
 
-static struct syscall_fmt {
+struct syscall_fmt {
 	const char *name;
 	const char *alias;
 	struct {
@@ -714,7 +714,9 @@ static struct syscall_fmt {
 	bool	   errpid;
 	bool	   timeout;
 	bool	   hexret;
-} syscall_fmts[] = {
+};
+
+static struct syscall_fmt syscall_fmts[] = {
 	{ .name	    = "access",
 	  .arg = { [1] = { .scnprintf = SCA_ACCMODE,  /* mode */ }, }, },
 	{ .name	    = "arch_prctl",



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux