From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751871AbeEFTUK (ORCPT ); Sun, 6 May 2018 15:20:10 -0400 Received: from mail.kernel.org ([198.145.29.99]:38256 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751807AbeEFTUJ (ORCPT ); Sun, 6 May 2018 15:20:09 -0400 From: Frederic Weisbecker To: LKML Cc: Frederic Weisbecker , Jiri Olsa , Namhyung Kim , Peter Zijlstra , Linus Torvalds , Yoshinori Sato , Benjamin Herrenschmidt , Catalin Marinas , Chris Zankel , Paul Mackerras , Thomas Gleixner , Will Deacon , Michael Ellerman , Rich Felker , Ingo Molnar , Mark Rutland , Alexander Shishkin , Andy Lutomirski , Arnaldo Carvalho de Melo , Max Filippov Subject: [PATCH 0/9] breakpoint: Rework arch validation Date: Sun, 6 May 2018 21:19:46 +0200 Message-Id: <1525634395-23380-1-git-send-email-frederic@kernel.org> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is the first round of breakpoint code rework and cleanup. Here we split up architecture validation and commit so that we don't mess up with architecture internals in case attributes are rejected or slot can't be reserved. It also unconfuse the code in general. git://git.kernel.org/pub/scm/linux/kernel/git/frederic/linux-dynticks.git perf/breakpoint HEAD: 0a788eff09988e58708c4a3ce7b8441ce3e7df95 Thanks, Frederic --- Frederic Weisbecker (9): x86/breakpoint: Split validation into "check" and "commit" sh: Remove "struct arch_hw_breakpoint::name" unused field sh: Split breakpoint validation into "check" and "commit" arm: Split breakpoint validation into "check" and "commit" xtensa: Split breakpoint validation into "check" and "commit" arm64: Split breakpoint validation into "check" and "commit" powerpc: Split breakpoint validation into "check" and "commit" perf/breakpoint: Split breakpoint "check" and "commit" perf/breakpoint: Only commit breakpoint to arch upon slot reservation success arch/arm/include/asm/hw_breakpoint.h | 5 +- arch/arm/kernel/hw_breakpoint.c | 160 +++++++++++++++------------- arch/arm64/include/asm/hw_breakpoint.h | 5 +- arch/arm64/kernel/hw_breakpoint.c | 173 +++++++++++++++++++------------ arch/powerpc/include/asm/hw_breakpoint.h | 5 +- arch/powerpc/kernel/hw_breakpoint.c | 66 ++++++------ arch/sh/include/asm/hw_breakpoint.h | 6 +- arch/sh/kernel/hw_breakpoint.c | 102 ++++++++---------- arch/x86/include/asm/hw_breakpoint.h | 5 +- arch/x86/kernel/hw_breakpoint.c | 140 ++++++++++++------------- arch/xtensa/include/asm/hw_breakpoint.h | 5 +- arch/xtensa/kernel/hw_breakpoint.c | 54 ++++++---- kernel/events/hw_breakpoint.c | 78 ++++++++------ 13 files changed, 443 insertions(+), 361 deletions(-)