All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: Re: [PATCH v2] [RFC] trace: Add kprobe on tracepoint
Date: Tue, 10 Aug 2021 22:51:02 +0800	[thread overview]
Message-ID: <202108102239.WJbFvtvP-lkp@intel.com> (raw)
In-Reply-To: <20210810112108.1663174-1-tz.stoyanov@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 3705 bytes --]

Hi "Tzvetomir,

[FYI, it's a private test report for your RFC patch.]
[auto build test WARNING on v5.14-rc5]
[also build test WARNING on next-20210810]
[cannot apply to tip/perf/core]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:    https://github.com/0day-ci/linux/commits/Tzvetomir-Stoyanov-VMware/trace-Add-kprobe-on-tracepoint/20210810-192225
base:    36a21d51725af2ce0700c6ebcb6b9594aac658a6
config: powerpc-powernv_defconfig (attached as .config)
compiler: powerpc-linux-gcc (GCC) 10.3.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://github.com/0day-ci/linux/commit/e3bec14eb58da9408eba8ccc55c9f5cf4e1ff114
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review Tzvetomir-Stoyanov-VMware/trace-Add-kprobe-on-tracepoint/20210810-192225
        git checkout e3bec14eb58da9408eba8ccc55c9f5cf4e1ff114
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-10.3.0 make.cross ARCH=powerpc 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All warnings (new ones prefixed by >>):

   In file included from arch/powerpc/include/asm/hw_irq.h:12,
                    from arch/powerpc/include/asm/irqflags.h:12,
                    from include/linux/irqflags.h:16,
                    from include/linux/rcupdate.h:26,
                    from include/linux/rbtree.h:22,
                    from include/linux/key.h:15,
                    from include/linux/security.h:27,
                    from kernel/trace/trace_kprobe.c:10:
   kernel/trace/trace_kprobe.c: In function 'process_fetch_insn':
>> arch/powerpc/include/asm/ptrace.h:248:43: warning: dereferencing 'void *' pointer
     248 | #define kernel_stack_pointer(regs) ((regs)->gpr[1])
         |                                           ^~
   kernel/trace/trace_kprobe.c:1340:9: note: in expansion of macro 'kernel_stack_pointer'
    1340 |   val = kernel_stack_pointer(regs);
         |         ^~~~~~~~~~~~~~~~~~~~
   arch/powerpc/include/asm/ptrace.h:248:43: error: request for member 'gpr' in something not a structure or union
     248 | #define kernel_stack_pointer(regs) ((regs)->gpr[1])
         |                                           ^~
   kernel/trace/trace_kprobe.c:1340:9: note: in expansion of macro 'kernel_stack_pointer'
    1340 |   val = kernel_stack_pointer(regs);
         |         ^~~~~~~~~~~~~~~~~~~~


vim +248 arch/powerpc/include/asm/ptrace.h

4e0e45b07d79025 Nicholas Piggin 2020-05-07  247  
d72500f992849d3 Nicholas Piggin 2021-05-20 @248  #define kernel_stack_pointer(regs) ((regs)->gpr[1])
d72500f992849d3 Nicholas Piggin 2021-05-20  249  static inline int is_syscall_success(struct pt_regs *regs)
d72500f992849d3 Nicholas Piggin 2021-05-20  250  {
d72500f992849d3 Nicholas Piggin 2021-05-20  251  	if (trap_is_scv(regs))
d72500f992849d3 Nicholas Piggin 2021-05-20  252  		return !IS_ERR_VALUE((unsigned long)regs->gpr[3]);
d72500f992849d3 Nicholas Piggin 2021-05-20  253  	else
d72500f992849d3 Nicholas Piggin 2021-05-20  254  		return !(regs->ccr & 0x10000000);
d72500f992849d3 Nicholas Piggin 2021-05-20  255  }
d72500f992849d3 Nicholas Piggin 2021-05-20  256  

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 24326 bytes --]

  reply	other threads:[~2021-08-10 14:51 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-10 11:21 [PATCH v2] [RFC] trace: Add kprobe on tracepoint Tzvetomir Stoyanov (VMware)
2021-08-10 14:51 ` kernel test robot [this message]
2021-08-10 14:54 ` kernel test robot
2021-08-10 15:05 ` kernel test robot
2021-08-10 15:59 ` kernel test robot
2021-08-10 15:59 ` [RFC PATCH] trace: trace_event_probe_cleanup() can be static kernel test robot

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202108102239.WJbFvtvP-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.