BPF List
 help / color / mirror / Atom feed
From: Yauheni Kaliuta <yauheni.kaliuta@redhat.com>
To: bpf@vger.kernel.org
Subject: bpf selftests and page size
Date: Mon, 01 Mar 2021 10:56:48 +0200	[thread overview]
Message-ID: <xunyim6b5k1b.fsf@redhat.com> (raw)

Hi!

Bunch of bpf selftests actually depends of page size and has it
hardcoded to 4K. That causes failures if page shift is configured
to values other than 12. It looks as a known issue since for the
userspace parts sysconf(_SC_PAGE_SIZE) is used, but what would be
the correct way to export it to bpf programs?

-- 
WBR,
Yauheni Kaliuta


             reply	other threads:[~2021-03-01  9:00 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-01  8:56 Yauheni Kaliuta [this message]
2021-03-02  5:08 ` bpf selftests and page size Andrii Nakryiko
2021-03-03 10:39   ` Yauheni Kaliuta
2021-03-03 17:30     ` Andrii Nakryiko
2021-03-04 20:35       ` Yauheni Kaliuta
2021-03-04 20:51         ` Andrii Nakryiko
2021-03-24 13:28   ` Yauheni Kaliuta
2021-03-26  5:12     ` Andrii Nakryiko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=xunyim6b5k1b.fsf@redhat.com \
    --to=yauheni.kaliuta@redhat.com \
    --cc=bpf@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox