Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4243746yba; Tue, 9 Apr 2019 14:27:23 -0700 (PDT) X-Google-Smtp-Source: APXvYqyfqW6cErJ1I5gjmvpp5BLwW2Htf19Ol35mQGV9DXJ67q+5heBTD8oHyVhl53R1ATCDjIBK X-Received: by 2002:a17:902:280a:: with SMTP id e10mr20962992plb.244.1554845243074; Tue, 09 Apr 2019 14:27:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554845243; cv=none; d=google.com; s=arc-20160816; b=kwf7AFCaY/g+3kJOXEGqCUAytKS+SdeyhiJZiOYTRBcgep97wHowqSxkm5wH0M2Tft PDDYFQproLmPusFVXEngJqmX8xDYBkceFQehwdd5lxE31K+xhS+SURTh8VxfpIowYijY md5N5LBGoMBE/xEyGpEXaSKGgp8gh7or+Y83ASaVa7wRP1po3yS3o6zq6tsgF8apffEn CAq9714eCx+TBhGdr3Ijp6e6HNVzw8LsvHTxdz8rmTEQsRuYGO1vspSHS1msaoI90eWZ S28kQucPgRp6niX8X4O6Ejdpoj1/ZryGWlb3TyDV5fujiHEQNlyfzcraItnCIjE/i3hB j9yA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=QJAxNVsdZpvgQ0lycDmUvZ/w5aUsw9h9L87n2JSUnEY=; b=UB7tXOWo1qoJV7rvOGkOm6MPR0194u5b917/O5khiVnQdGyr5JAmZtTqVgUGL2nZwv BTeCScs+M2fYt4kT2fpFFNEz10SLH82rebUNIp3tJng0krPhILYEsYLA5YEx5yeRQjW2 n2lrcj6gU3/Na27KqqCAriu/peHt/TT/uTlxqsmNQBWPDhNYdrpbbhEtX0qGL+Yf1skY 855dphy+sHn81QQLZin57QLIuy9oqerkESd3RUz30zJ+2ZR8l8e+hjQNuweTdwwISipi rxqROodWlW13wE2ERUBrwZYl1y2G7EtEjw8zhaVywJZu0Ui/zHV0OqOqK7NCYQnDk1p7 sfHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rasmusvillemoes.dk header.s=google header.b=dJkH3pTk; 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 i27si28050416pgl.305.2019.04.09.14.27.07; Tue, 09 Apr 2019 14:27:23 -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; dkim=pass header.i=@rasmusvillemoes.dk header.s=google header.b=dJkH3pTk; 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 S1726936AbfDIV0Q (ORCPT + 99 others); Tue, 9 Apr 2019 17:26:16 -0400 Received: from mail-ed1-f68.google.com ([209.85.208.68]:34009 "EHLO mail-ed1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726771AbfDIV0B (ORCPT ); Tue, 9 Apr 2019 17:26:01 -0400 Received: by mail-ed1-f68.google.com with SMTP id x14so151665eds.1 for ; Tue, 09 Apr 2019 14:26:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rasmusvillemoes.dk; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=QJAxNVsdZpvgQ0lycDmUvZ/w5aUsw9h9L87n2JSUnEY=; b=dJkH3pTk5Euyl6AnuMTJVWpsHfbXhza0vHCBLB/kgIB/5IVjmFm+TZMTTZfA8ZCPIu yQiCbVbv4J51PAnNP5TOkxdC2ztuNqrvxYRVB3esWN7AnwbF6R+aA869+HMRaGeMp2ih 7g60BKCA5L44+IsOaByY2KVh0D8iMGvH9Yhro= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=QJAxNVsdZpvgQ0lycDmUvZ/w5aUsw9h9L87n2JSUnEY=; b=hSNuzC28KpnWNv/LnIlqbOsUJIK8+h364RTV2FS+u4ZoznkN+gN8OIS/sVr4lyiY6L MNcS3rLneBOLBCtNHz93kjISlODqioskaIMvc6bxaF12GB0o+JBoZ949DSLSG8sGF9Ec mC5zaCtSvda8qcCBahTiJDhLXtG0vEqOMZkTxNQElk/6RvVbEI484RziQrxJjTVOnI64 NVZ0rjbh+jglgDK85LaMInVji7kCmc+3dzxUys0iEHAs6+XVJe/Gyqt+VPMq5/MPYIED UmUI3LatpdYwDckaSu7sWM3cfiMJYCzGihK1sRC/leK9EC/PHtRCMIzb/6u3Pn8O0muM xmOQ== X-Gm-Message-State: APjAAAVLI6u2byk4d/zh7bMcDX/nBeUHGuNTCa0t/TYQYePGSa23t1kl aoMtHfEUy0+nakvtE7ZBpyPbcg== X-Received: by 2002:a50:9438:: with SMTP id p53mr24334679eda.92.1554845160122; Tue, 09 Apr 2019 14:26:00 -0700 (PDT) Received: from prevas-ravi.prevas.se (ip-5-186-118-63.cgn.fibianet.dk. [5.186.118.63]) by smtp.gmail.com with ESMTPSA id i26sm3477986ejc.51.2019.04.09.14.25.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 09 Apr 2019 14:25:59 -0700 (PDT) From: Rasmus Villemoes To: Andrew Morton , linuxppc-dev@lists.ozlabs.org Cc: Jason Baron , linux-kernel@vger.kernel.org, Rasmus Villemoes , Michael Ellerman Subject: [PATCH 10/10] powerpc: select DYNAMIC_DEBUG_RELATIVE_POINTERS for PPC64 Date: Tue, 9 Apr 2019 23:25:17 +0200 Message-Id: <20190409212517.7321-11-linux@rasmusvillemoes.dk> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190409212517.7321-1-linux@rasmusvillemoes.dk> References: <20190409212517.7321-1-linux@rasmusvillemoes.dk> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Similar to GENERIC_BUG_RELATIVE_POINTERS, one can now relativize the four const char* members of struct _ddebug, thus saving 16 bytes per instance (one for each pr_debug(), dev_debug() etc. in a CONFIG_DYNAMIC_DEBUG kernel). The asm-generic implementation seems to work out-of-the-box, though this is only compile-tested. Signed-off-by: Rasmus Villemoes --- arch/powerpc/Kconfig | 1 + arch/powerpc/include/asm/Kbuild | 1 + 2 files changed, 2 insertions(+) diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig index 2d0be82c3061..6821c8ae1d62 100644 --- a/arch/powerpc/Kconfig +++ b/arch/powerpc/Kconfig @@ -155,6 +155,7 @@ config PPC select BUILDTIME_EXTABLE_SORT select CLONE_BACKWARDS select DCACHE_WORD_ACCESS if PPC64 && CPU_LITTLE_ENDIAN + select DYNAMIC_DEBUG_RELATIVE_POINTERS if PPC64 select DYNAMIC_FTRACE if FUNCTION_TRACER select EDAC_ATOMIC_SCRUB select EDAC_SUPPORT diff --git a/arch/powerpc/include/asm/Kbuild b/arch/powerpc/include/asm/Kbuild index a0c132bedfae..f332e202192a 100644 --- a/arch/powerpc/include/asm/Kbuild +++ b/arch/powerpc/include/asm/Kbuild @@ -3,6 +3,7 @@ generated-y += syscall_table_64.h generated-y += syscall_table_c32.h generated-y += syscall_table_spu.h generic-y += div64.h +generic-y += dynamic_debug.h generic-y += export.h generic-y += irq_regs.h generic-y += local64.h -- 2.20.1