Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3169224yba; Mon, 6 May 2019 18:43:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqwfzwyP0yS8EwU6vohetuXgHxNVl7E5Dd0J0z9RSsNIUyLX2ZXftXmkdHMTvt0YoaDcnCf9 X-Received: by 2002:a63:5c1a:: with SMTP id q26mr24856605pgb.73.1557193405023; Mon, 06 May 2019 18:43:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557193405; cv=none; d=google.com; s=arc-20160816; b=V8qtuStVfq1yaQCbcpdaa+QakVtusgQqjTwsWtNOsSrYSyzvkNuwlOyZffkTR/Ykqd DfKCc+UY8G4UFZEvSM9ZEyCqIJNXYe2hbOsgrT8EINl0HPvmyQ1PJMO+wZOoqkYMoUun Z7ysmFTZV58iJ3DNioVImJu7G2XXsCyWPonS1uk+M3w+kaDB48eTG4q1C2bdNz5CR1Ga i1ca+8OF7uzSDrsclM3Q/eRiLaiW/L20afZ3Jjp3nc2pNJixiK7gUn5nWYy3sDKKtcL2 cRVVfuKJAlM18L356nHHR1z2+8Y65MUhc8XLmvTzxsMSbWq4K07PKIXEdlPjO54O2Bgi ih5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=6H70OYCWqWNzJ1zGHNlYsHEsCgxXv8c0o/4c1a8H4TM=; b=QN+N3884CuL3cPiNOX5OhdbxyDIVgfYZUu0MoEbS2AZc4e4wirSFPZFrRoCQU69T8s ES8Fkyob2tVI0wxlcHik5W1eDQgiXs1dBC8Qv9aS6gZxkOg0GrKMVm3hOpBH2HmLM1QU LHvoHNaU9B2fHJE/gmt6zaD4YtWFy7qGIOOlCFs0Gz6x4Il0NkDwke5BEVxdez+dWARn xppTQYY0z2jfd598TYwTUtmX/WS8ct6fTHry4TdTMWA+0ovcE7i8F4N8jkH53628zcUw E2Ee2BQ+duH4KTNo+FitbgkxDOpgSofH+SzEluqiFnvp8474y1oN4w2Tf6r1lOougPxU ViOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=dpFgNSCa; 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 h36si18705072plb.50.2019.05.06.18.43.08; Mon, 06 May 2019 18:43:25 -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=@linux-foundation.org header.s=google header.b=dpFgNSCa; 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 S1726645AbfEGBlq (ORCPT + 99 others); Mon, 6 May 2019 21:41:46 -0400 Received: from mail-lf1-f65.google.com ([209.85.167.65]:45067 "EHLO mail-lf1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726381AbfEGBlq (ORCPT ); Mon, 6 May 2019 21:41:46 -0400 Received: by mail-lf1-f65.google.com with SMTP id n22so3006044lfe.12 for ; Mon, 06 May 2019 18:41:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=6H70OYCWqWNzJ1zGHNlYsHEsCgxXv8c0o/4c1a8H4TM=; b=dpFgNSCaKcwRzOTxc2CRA45EB/B/5baFN6H/ywJJjn2iC4DVw0z3j37EPur3kF2BcM gR5dH5TJcCt0L08AcgiCY39z5fIt5og+cl6z+Q6Orik7/B2A+FvQSQtx6uaVPo9r5nWT BpDf9SS2XWqZ2zgNFN0ahQyv31mOBnC8Onm0o= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=6H70OYCWqWNzJ1zGHNlYsHEsCgxXv8c0o/4c1a8H4TM=; b=Bx0TeM1O007mDlnOZU6ybzIZqIl2NVIk7TzlqDpEFH68/kbU7KnV2cblXPlZBDm0ZV gT+b3Fe7jwC6PP+4QXHhikpbuPEbfuTZ0/JBQD8U5aUe4+G85H1YcpTu1/p12faPwPGl VkoaEtm2GaUUwXH4q/vxJfLT0E1oDjrzVcQF3MBRc0YxIUaUFYoCbdFyjY54LjRGucVo NtRYL0Tlc6sISXYvhQF9mBT5In+VB05AJL+/GshJFloeskka3qb+U0PX8bXJrNILFtuh gN0DlhGIN9hvpVjNbF5UZYYRbYiXGp4ztqetD4d+a1+EgAQQW0GF8qpVuBjT2WLh7tN2 ifKQ== X-Gm-Message-State: APjAAAX9I2A8PmOpPcECyBb6DQjTdJtwJ3eero4ErIOFD7lfUnaQmoqZ 2v4idOp50KFTMF5pUP6aon3pcxI2esY= X-Received: by 2002:a19:97c8:: with SMTP id z191mr14340744lfd.167.1557193304273; Mon, 06 May 2019 18:41:44 -0700 (PDT) Received: from mail-lf1-f49.google.com (mail-lf1-f49.google.com. [209.85.167.49]) by smtp.gmail.com with ESMTPSA id p18sm3199628ljc.54.2019.05.06.18.41.43 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 06 May 2019 18:41:44 -0700 (PDT) Received: by mail-lf1-f49.google.com with SMTP id n134so8716011lfn.11 for ; Mon, 06 May 2019 18:41:43 -0700 (PDT) X-Received: by 2002:a19:2952:: with SMTP id p79mr5995097lfp.166.1557192915891; Mon, 06 May 2019 18:35:15 -0700 (PDT) MIME-Version: 1.0 References: <20190502181811.GY2623@hirez.programming.kicks-ass.net> <20190502195052.0af473cf@gandalf.local.home> <20190503092959.GB2623@hirez.programming.kicks-ass.net> <20190503092247.20cc1ff0@gandalf.local.home> <2045370D-38D8-406C-9E94-C1D483E232C9@amacapital.net> <20190506081951.GJ2606@hirez.programming.kicks-ass.net> <20190506095631.6f71ad7c@gandalf.local.home> <20190506130643.62c35eeb@gandalf.local.home> <20190506145745.17c59596@gandalf.local.home> <20190506162915.380993f9@gandalf.local.home> <20190506174511.2f8b696b@gandalf.local.home> <20190506210416.2489a659@oasis.local.home> In-Reply-To: <20190506210416.2489a659@oasis.local.home> From: Linus Torvalds Date: Mon, 6 May 2019 18:34:59 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [RFC][PATCH 1/2] x86: Allow breakpoints to emulate call functions To: Steven Rostedt Cc: Peter Zijlstra , Andy Lutomirski , Linux List Kernel Mailing , Ingo Molnar , Andrew Morton , Andy Lutomirski , Nicolai Stange , Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , "the arch/x86 maintainers" , Josh Poimboeuf , Jiri Kosina , Miroslav Benes , Petr Mladek , Joe Lawrence , Shuah Khan , Konrad Rzeszutek Wilk , Tim Chen , Sebastian Andrzej Siewior , Mimi Zohar , Juergen Gross , Nick Desaulniers , Nayna Jain , Masahiro Yamada , Joerg Roedel , "open list:KERNEL SELFTEST FRAMEWORK" , stable , Masami Hiramatsu Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 6, 2019 at 6:04 PM Steven Rostedt wrote: > > That iterator does something special for each individual record. All > 40,000 of them. .. yes, but the 'int3' only happens for *one* of them at a time. Why would it bother with the other 39,999 calls? You could easily just look up the record at the int3 time, and just use the record. Exactly the same way you use the one-at-a-time ones. Instead, you emulate a fake call to a function that *wouldn't* get called, which now does the lookup there. That's the part I don't get. Why are you emulating something else than what you'd be rewriting? Linus