From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30647 invoked by alias); 6 May 2019 16:25:58 -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 30596 invoked by uid 48); 6 May 2019 16:25:55 -0000 From: "me at serhei dot io" To: systemtap@sourceware.org Subject: [Bug bpf/24528] New: bpf-next housekeeping: bpf-translate.cxx should distinguish codegen for kernel/userspace targets Date: Mon, 06 May 2019 16:25:00 -0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: systemtap X-Bugzilla-Component: bpf X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: me at serhei dot io 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: 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-q2/txt/msg00035.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=3D24528 Bug ID: 24528 Summary: bpf-next housekeeping: bpf-translate.cxx should distinguish codegen for kernel/userspace targets Product: systemtap Version: unspecified Status: NEW Severity: enhancement Priority: P2 Component: bpf Assignee: systemtap at sourceware dot org Reporter: me at serhei dot io Target Milestone: --- bpf_unparser should have a flag bpf_target() which distinguishes whether co= de is being generated for userspace-interpreter (no restrictions) or BPF kernel-interpreter (many restrictions). First this will enable better/simpler error checking logic. Down the line, this will allow adding more values to bpf_target() and generating certain constructs differently depending on whether they're targeting different versions of BPF (with different restrictions). --=20 You are receiving this mail because: You are the assignee for the bug.