]> git.dujemihanovic.xyz Git - linux.git/commitdiff
Merge tag 'probes-v6.12' of git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux...
authorLinus Torvalds <torvalds@linux-foundation.org>
Thu, 26 Sep 2024 15:55:36 +0000 (08:55 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 26 Sep 2024 15:55:36 +0000 (08:55 -0700)
Pull probes updates from Masami Hiramatsu:

 - uprobes: make trace_uprobe->nhit counter a per-CPU one

   This makes uprobe event's hit counter per-CPU for improving
   scalability on multi-core environment

 - kprobes: Remove obsoleted declaration for init_test_probes

   Remove unused init_test_probes() from header

 - Raw tracepoint probe supports raw tracepoint events on modules:
     - add a function for iterating over all tracepoints in all modules
     - add a function for iterating over tracepoints in a module
     - support raw tracepoint events on modules
     - support raw tracepoints on future loaded modules
     - add a test for tracepoint events on modules"

* tag 'probes-v6.12' of git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace:
  sefltests/tracing: Add a test for tracepoint events on modules
  tracing/fprobe: Support raw tracepoints on future loaded modules
  tracing/fprobe: Support raw tracepoint events on modules
  tracepoint: Support iterating tracepoints in a loading module
  tracepoint: Support iterating over tracepoints on modules
  kprobes: Remove obsoleted declaration for init_test_probes
  uprobes: turn trace_uprobe's nhit counter to be per-CPU one

1  2 
kernel/trace/trace_uprobe.c

index f7443e996b1b883d98db9cfce8adad2e70cee1e0,c3df411a2684980a6a34c9b1fe49acd38c1b77f2..c40531d2cbadde432d8cd0d231986b98e2b3490e
@@@ -58,11 -59,11 +59,11 @@@ struct trace_uprobe 
        struct dyn_event                devent;
        struct uprobe_consumer          consumer;
        struct path                     path;
 -      struct inode                    *inode;
        char                            *filename;
 +      struct uprobe                   *uprobe;
        unsigned long                   offset;
        unsigned long                   ref_ctr_offset;
-       unsigned long                   nhit;
+       unsigned long __percpu          *nhits;
        struct trace_probe              tp;
  };