Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1057451yba; Thu, 16 May 2019 13:34:03 -0700 (PDT) X-Google-Smtp-Source: APXvYqzb930xhxrAWWVRR9en1zGE6E0JQGTMiph8oIoQzXexq9NgId21OgAn/dlCJQfyYFGHm2Iq X-Received: by 2002:a63:5fcc:: with SMTP id t195mr16171454pgb.120.1558038843879; Thu, 16 May 2019 13:34:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558038843; cv=none; d=google.com; s=arc-20160816; b=X2SNBbF7ld+b+FlDVZ3gp86NY7XXJYSzLnHdPaJ91NJQOQOGAPf+jHNAUpn7BksiZJ q2Uucl1Pw56yaUXm9Vg9MPEN1iPlAm6XgFCbrk25vdx5E+v0hFS3TNFzxUWDTopTL9bw e3Ml9Ngn2TdbSJM5hg6eyKz282CjBEC5MAtPfahGZQqNLuqChIspRs93xQAadJ6d+yjR UpeaJXovf53C8WEO8rmSaHS0DlEDBXPTl9jvWnHhCwgdX+qB9vtNS84PuQxO5jBIWHIw hCs2o7778ZFis276H0ed+UPYarn8piSZ2elSf/uWrU1I53pLp0Ih5iM44Aw10aXZ8gnA 6TLQ== 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=t7g3Mj0Kkiw9LFOlRvOxC9x1Hb1raFM6hP36lvoJphW8IwSUHXe4zRtGdWBtUgL7qd 2DQs7uzEL7z2e+V3bJbhg+ORfuTGQrEFokerv0EpeaDxnxxByXm/6J6nJMgyiywwjxRz 6k5BiEnymP3ZI7aXKADyeXEGs+p0mEKP1zNazja40ngmNm0rN5VliaI5+6MT/i0GnjM5 6mNosNTg1ikkOcgfZvepavD8LoxxUk8hIH/y+SDkVUIjoR7PpgcuzyA/a00B+0b0OhLz h2U0RmLjzeTAeEq8eX5qbZap7NpZXZQO7nPidRcWeunY8opVzUl2P/Aj8TdvPZ+9Fdt3 D1XQ== 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 n63si5913815pgn.511.2019.05.16.13.33.48; Thu, 16 May 2019 13:34:03 -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 S1728740AbfEPRCT (ORCPT + 99 others); Thu, 16 May 2019 13:02:19 -0400 Received: from mx2.suse.de ([195.135.220.15]:44866 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727412AbfEPRCS (ORCPT ); Thu, 16 May 2019 13:02:18 -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 49F03AD0A; Thu, 16 May 2019 17:02:16 +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, netdev@vger.kernel.org, bpf@vger.kernel.org, linux-kernel@vger.kernel.org, xdp-newbies@vger.kernel.org Subject: [PATCH bpf-next v2 0/2] Move bpf_printk to bpf_helpers.h Date: Thu, 16 May 2019 19:01:51 +0200 Message-Id: <20190516170152.24542-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