From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 119264 invoked by alias); 11 Jul 2019 18:10:54 -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 119122 invoked by uid 48); 11 Jul 2019 18:10:42 -0000 From: "wcohen at redhat dot com" To: systemtap@sourceware.org Subject: [Bug bpf/24804] bpf code generation unable to determine type of target variable used to index global variable Date: Thu, 11 Jul 2019 18:10:00 -0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: systemtap X-Bugzilla-Component: bpf X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: wcohen at redhat dot com X-Bugzilla-Status: NEW 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: 2019-q3/txt/msg00012.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=3D24804 --- Comment #2 from William Cohen --- systemtap seems okay with target a target variable for function: [wcohen@localhost systemtap]$ stap --bpf -L 'kernel.function("__do_sys_fcnt= l")' kernel.function("__do_sys_fcntl@fs/fcntl.c:448") $arg:long unsigned int $cmd:unsigned int $fd:unsigned int [wcohen@localhost systemtap]$ sudo stap -v --bpf -e 'global ids; probe kernel.function("__do_sys_fcntl"){ids[$arg]++}' -T 10 Pass 1: parsed user script and 70 library scripts using 336176virt/109212res/9160shr/100200data kb, in 190usr/30sys/220real ms. Pass 2: analyzed script: 3 probes, 4 functions, 0 embeds, 1 global using 397828virt/172324res/10292shr/161852data kb, in 750usr/10sys/766real ms. Pass 4: compiled BPF into "stap_6498.bo" in 0usr/0sys/3real ms. Pass 5: starting run. Pass 5: run completed in 0usr/0sys/10003real ms. --=20 You are receiving this mail because: You are the assignee for the bug.