From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 125389 invoked by alias); 13 Dec 2017 05:21:30 -0000 Mailing-List: contact systemtap-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: systemtap-owner@sourceware.org Received: (qmail 125367 invoked by uid 48); 13 Dec 2017 05:21:28 -0000 From: "mysecondaccountabc at gmail dot com" To: systemtap@sourceware.org Subject: [Bug runtime/22582] SystemTap 3.2 stap script compilation error opt Date: Wed, 13 Dec 2017 05:21:00 -0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: systemtap X-Bugzilla-Component: runtime X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: mysecondaccountabc at gmail dot com X-Bugzilla-Status: WAITING X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: systemtap at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2017-q4/txt/msg00193.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=3D22582 --- Comment #6 from Gustavo Moreira -= -- (In reply to David Smith from comment #5) > I took a look at your attachments. Your > stapconf_1ddada75a347accc585e3d1a06438f1e_713.h file doesn't contain > STAPCONF_UTRACE_VIA_TRACEPOINTS. This means that your kernel doesn't supp= ort > the 5 tracepoints systemtap needs to do userspace tracing. They are: >=20 > sched_process_fork, sched_process_exit, sched_process_exec, sys_enter, and > sys_exit >=20 > You can check for these tracepoints via the following: >=20 > =3D=3D=3D > # stap -l 'kernel.trace("sched_process_*")' > kernel.trace("sched:sched_process_exec") > kernel.trace("sched:sched_process_exit") > kernel.trace("sched:sched_process_fork") > kernel.trace("sched:sched_process_free") > kernel.trace("sched:sched_process_wait") > # stap -l 'kernel.trace("sys_*")' > kernel.trace("raw_syscalls:sys_enter") > kernel.trace("raw_syscalls:sys_exit") > =3D=3D=3D >=20 > If the sys_enter/sys_exit tracepoints are missing, that would mean your > kernel doesn't have CONFIG_HAVE_SYSCALL_TRACEPOINTS. Yeah, it seems the syscall tracepoints are disabled. # stap -l 'kernel.trace("sched_process_*")' kernel.trace("sched:sched_process_exit") kernel.trace("sched:sched_process_fork") kernel.trace("sched:sched_process_free") kernel.trace("sched:sched_process_wait") # stap -l 'kernel.trace("sys_*")' And unfortunately it seems this kernel version doesn't support syscall tracepoints for ARM. ~/linux-3.2.93# grep -r HAVE_SYSCALL_TRACEPOINTS arch/* arch/powerpc/Kconfig: select HAVE_SYSCALL_TRACEPOINTS arch/s390/Kconfig: select HAVE_SYSCALL_TRACEPOINTS arch/sh/Kconfig: select HAVE_SYSCALL_TRACEPOINTS arch/sparc/Kconfig: select HAVE_SYSCALL_TRACEPOINTS arch/x86/Kconfig: select HAVE_SYSCALL_TRACEPOINTS Wonderful :S So, let's start again. I will install everything from scratch using a fresh Debian Jessie with kernel 3.16.0-4 and GCC 4.9.2. Should those be enough? As per the kernel config features, what exactly does SystemTap need? That's= a bit confusing because different pages say different things. For instance, in the official wiki for using systemtap with self-built kernels [https://sourceware.org/systemtap/wiki/SystemTapWithSelfBuiltKernel], it doesn't mention neither CONFIG_TRACEPOINTS nor CONFIG_HAVE_SYSCALL_TRACEPOI= NTS. I know that would depend on what SystemTap features I will use but, let's s= ay, to have full support. Where can I find the most updated documentation about= it? I've gathered this list from different sources, should this be enough? Do y= ou recommend to add or remove something? CONFIG_KPROBES=3Dy CONFIG_KPROBES_SANITY_TEST=3Dn CONFIG_KPROBE_EVENT=3Dy CONFIG_NET_DCCPPROBE=3Dm CONFIG_NET_SCTPPROBE=3Dm CONFIG_NET_TCPPROBE=3Dy CONFIG_DEBUG_INFO=3Dy CONFIG_DEBUG_INFO_REDUCED=3Dn CONFIG_ARM_KPROBES_TEST=3Dn CONFIG_TRACEPOINTS=3Dy CONFIG_HAVE_SYSCALL_TRACEPOINTS=3Dy Cheers, Gus --=20 You are receiving this mail because: You are the assignee for the bug.