From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS31976 209.132.180.0/23 X-Spam-Status: No, score=-4.0 required=3.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,SPF_HELO_PASS,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 39A1A1F4B5 for ; Fri, 15 Nov 2019 12:30:45 +0000 (UTC) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:cc:subject:in-reply-to:references :reply-to:mime-version:content-transfer-encoding:content-type :message-id; q=dns; s=default; b=vgXOuV/Yvv+nSmNaTtt97TnsEaJIvLb dWfg5c2ipOI8xU4rz9RsfjAVSMMwIzvmWeNH1mj6RtC80WqTN8AxsLT4fOR/rfHb iioFPh00ksScBz1uuyfFuLnNqtdxdCs8G2DnWyBCh5gUcO8xEUu1VF8PVIdvsmIf rE6/6DYR9WUs= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:cc:subject:in-reply-to:references :reply-to:mime-version:content-transfer-encoding:content-type :message-id; s=default; bh=KNPon3rXviF0KlQUnn0fgX1JAVQ=; b=tWsii mis8vFztl2IG4wCMVmuGU4TwvWJ+EkwUhlMuVEpWbfMMIA4v/bOO4qoTbp6Q0v2f fQiHBwDedpZzi8J7oBsT0wsgRrS0eNDiUPsGKm0QKJG1K4zZ483mjSVGnrUeK/lX F4fjR5knAn1onQMsBTHOiIQO/3JIG0aJB3FKro= Received: (qmail 367 invoked by alias); 15 Nov 2019 12:30:36 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Received: (qmail 130880 invoked by uid 89); 15 Nov 2019 12:30:34 -0000 Authentication-Results: sourceware.org; auth=none X-HELO: mx1.osci.io X-Gerrit-PatchSet: 3 Date: Fri, 15 Nov 2019 07:30:20 -0500 From: "Sourceware to Gerrit sync (Code Review)" To: Florian Weimer , libc-alpha@sourceware.org Cc: Szabolcs Nagy Auto-Submitted: auto-generated X-Gerrit-MessageType: merged Subject: [pushed] linux: Add comment on affinity set sizes to tst-skeleton-affinity.c X-Gerrit-Change-Id: Ic6ec48f75f3a0576d3121befd04531382c92afb4 X-Gerrit-Change-Number: 610 X-Gerrit-ChangeURL: X-Gerrit-Commit: 9e3e27c4e32c02e93d9779e41356adfb357957e3 In-Reply-To: References: Reply-To: noreply@gnutoolchain-gerrit.osci.io, fweimer@redhat.com, szabolcs.nagy@arm.com, libc-alpha@sourceware.org MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline User-Agent: Gerrit/3.0.3-76-gf8b6da0ab5 Content-Type: text/plain; charset=UTF-8 Message-Id: <20191115123020.E3AB320AF6@gnutoolchain-gerrit.osci.io> Sourceware to Gerrit sync has submitted this change. Change URL: https://gnutoolchain-gerrit.osci.io/r/c/glibc/+/610 ...................................................................... linux: Add comment on affinity set sizes to tst-skeleton-affinity.c Change-Id: Ic6ec48f75f3a0576d3121befd04531382c92afb4 --- M sysdeps/unix/sysv/linux/tst-skeleton-affinity.c 1 file changed, 5 insertions(+), 0 deletions(-) Approvals: Szabolcs Nagy: Looks good to me, approved diff --git a/sysdeps/unix/sysv/linux/tst-skeleton-affinity.c b/sysdeps/unix/sysv/linux/tst-skeleton-affinity.c index 32fb94c..9d1f27f 100644 --- a/sysdeps/unix/sysv/linux/tst-skeleton-affinity.c +++ b/sysdeps/unix/sysv/linux/tst-skeleton-affinity.c @@ -264,6 +264,11 @@ struct conf conf; setup_conf (&conf); + /* Note: The CPU set size in bits can be less than the CPU count + (and the maximum test CPU) because the userspace interface rounds + up the bit count, and the rounded-up buffer size is passed into + the kernel. The kernel does not know that some of the buffer are + actually padding, and writes data there. */ printf ("info: Detected CPU set size (in bits): %d\n", conf.set_size); printf ("info: Maximum test CPU: %d\n", conf.last_cpu); if (conf.set_size < 0 || conf.last_cpu < 0) -- Gerrit-Project: glibc Gerrit-Branch: master Gerrit-Change-Id: Ic6ec48f75f3a0576d3121befd04531382c92afb4 Gerrit-Change-Number: 610 Gerrit-PatchSet: 3 Gerrit-Owner: Florian Weimer Gerrit-Reviewer: Szabolcs Nagy Gerrit-MessageType: merged