Received: by 2002:a25:86ce:0:0:0:0:0 with SMTP id y14csp1723846ybm; Thu, 23 May 2019 05:55:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqwoPA3PWP85wZXSSwfUf/S/XSbxY7WDwnB+jzXKcr2zsazQzKrZVH+PwgfNOcaqVkL2eMim X-Received: by 2002:a63:c14:: with SMTP id b20mr96998682pgl.163.1558616139619; Thu, 23 May 2019 05:55:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558616139; cv=none; d=google.com; s=arc-20160816; b=JDRRBupfbBuLDT9FUWhuvIwGyAKIpN6VUgz+Whqw1cny53zq3eR5uWbKaowvAgpF3o BgdME76pUNyPPYVSbRlRTDSc7clgb+3f3iUee+/GMfi169KnL6QTdHrc9oVq/rntpfy1 +uBIknKr82m1r3jal3dLIU/1ws1lHqzkJowxJnQq+s7nx+kWpyCRQ9FiMtwUApKCIrhR LgDdbnvCds9tz/d88jkA/ynA4hBVVSq/+/dGwWEsZjWWHmcPuG03kJn3SQst9iJG82qe HtY7gOUrPssL3JDgWZVsrtm7TJxk1WduYaMtjw3Z3+uwKgDBsQSBslFwo6WCQ3AzzrPS Mb1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:content-transfer-encoding:mime-version :message-id:date:subject:cc:from; bh=fBYiiDQhEXEzmyDj/gopmrY3KHgd+S1jEbuLXdWJAZI=; b=aX+PJNiwRVg9eEvJHkiCj9PPJD21VThuDkflMd1wJWMUU59HIlMZKrMsFGyLAJh2Ho mhQ+y4Uz2SfkFhG6oQXUojoDvL0+i4Ljovd9tcwIhfbBBzXBt5d5ZXtCeMxCcOzqvNR5 VvEKnA0lvW8atkEbFsF0AjMLq2BdrzCc7e1rZINxUSEffioAjTHlcHUN21ZG/JUJ05yw WH3wP0p7XtJJEXQQ6CVRN+RRB6Ir0TNrLmJbgkPRz2UzW6xGlm3YJUCkr5KQuUGAaCGu DhJM1G7T5YkNCy95Lk+5Q5NiP7lDYITrasQ0RfrnqicDkLlNAr/LGiUpi92rGnq/V3cO 8+Ew== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b12si30617320pla.126.2019.05.23.05.55.24; Thu, 23 May 2019 05:55:39 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730979AbfEWMw5 (ORCPT + 99 others); Thu, 23 May 2019 08:52:57 -0400 Received: from mx2.suse.de ([195.135.220.15]:39478 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1730323AbfEWMw4 (ORCPT ); Thu, 23 May 2019 08:52:56 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 17DE1AF96; Thu, 23 May 2019 12:52:55 +0000 (UTC) From: Michal Rostecki Cc: Michal Rostecki , Shuah Khan , Alexei Starovoitov , Daniel Borkmann , Martin KaFai Lau , Song Liu , Yonghong Song , "David S. Miller" , Jakub Kicinski , Jesper Dangaard Brouer , John Fastabend , linux-kselftest@vger.kernel.org (open list:KERNEL SELFTEST FRAMEWORK), netdev@vger.kernel.org (open list:BPF (Safe dynamic programs and tools)), bpf@vger.kernel.org (open list:BPF (Safe dynamic programs and tools)), linux-kernel@vger.kernel.org (open list), xdp-newbies@vger.kernel.org (open list:XDP (eXpress Data Path)) Subject: [PATCH bpf-next v2 RESEND 0/2] Move bpf_printk to bpf_helpers.h Date: Thu, 23 May 2019 14:53:53 +0200 Message-Id: <20190523125355.18437-1-mrostecki@opensuse.org> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit To: unlisted-recipients:; (no To-header on input) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This series of patches move the commonly used bpf_printk macro to bpf_helpers.h which is already included in all BPF programs which defined that macro on their own. v1->v2: - If HBM_DEBUG is not defined in hbm sample, undefine bpf_printk and set an empty macro for it. Michal Rostecki (2): selftests: bpf: Move bpf_printk to bpf_helpers.h samples: bpf: Do not define bpf_printk macro samples/bpf/hbm_kern.h | 11 ++--------- samples/bpf/tcp_basertt_kern.c | 7 ------- samples/bpf/tcp_bufs_kern.c | 7 ------- samples/bpf/tcp_clamp_kern.c | 7 ------- samples/bpf/tcp_cong_kern.c | 7 ------- samples/bpf/tcp_iw_kern.c | 7 ------- samples/bpf/tcp_rwnd_kern.c | 7 ------- samples/bpf/tcp_synrto_kern.c | 7 ------- samples/bpf/tcp_tos_reflect_kern.c | 7 ------- samples/bpf/xdp_sample_pkts_kern.c | 7 ------- tools/testing/selftests/bpf/bpf_helpers.h | 8 ++++++++ .../testing/selftests/bpf/progs/sockmap_parse_prog.c | 7 ------- .../selftests/bpf/progs/sockmap_tcp_msg_prog.c | 7 ------- .../selftests/bpf/progs/sockmap_verdict_prog.c | 7 ------- .../testing/selftests/bpf/progs/test_lwt_seg6local.c | 7 ------- tools/testing/selftests/bpf/progs/test_xdp_noinline.c | 7 ------- tools/testing/selftests/bpf/test_sockmap_kern.h | 7 ------- 17 files changed, 10 insertions(+), 114 deletions(-) -- 2.21.0