From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755534AbbAZPWd (ORCPT ); Mon, 26 Jan 2015 10:22:33 -0500 Received: from smtprelay0141.hostedemail.com ([216.40.44.141]:45368 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751771AbbAZPWa (ORCPT ); Mon, 26 Jan 2015 10:22:30 -0500 X-Session-Marker: 6E657665747340676F6F646D69732E6F7267 X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,rostedt@goodmis.org,:::::::::::::::::,RULES_HIT:41:355:379:541:599:800:960:973:988:989:1260:1277:1311:1313:1314:1345:1359:1437:1515:1516:1518:1534:1538:1567:1593:1594:1711:1714:1730:1747:1777:1792:2393:2553:2559:2562:2693:3138:3139:3140:3141:3142:3622:3865:3870:5007:6120:6261:7875:10004:10400:10848:10967:11026:11232:11473:11658:11914:12043:12438:12517:12519:12740:13069:13311:13357:21080,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:none,Custom_rules:0:0:0 X-HE-Tag: cake09_6cc88943a1450 X-Filterd-Recvd-Size: 1692 Date: Mon, 26 Jan 2015 10:22:26 -0500 From: Steven Rostedt To: Heiko Carstens Cc: Masami Hiramatsu , Vojtech Pavlik , Jiri Kosina , Jiri Slaby , Andreas Krebbel , Dominik Vogt , Martin Schwidefsky , linux-kernel@vger.kernel.org Subject: Re: [PATCH/RFC 2/3] ftrace: introduce nohotpatch function attribute Message-ID: <20150126102226.6f76b2ab@gandalf.local.home> In-Reply-To: <20150126150319.GF4968@osiris> References: <1422276894-31302-1-git-send-email-heiko.carstens@de.ibm.com> <1422276894-31302-3-git-send-email-heiko.carstens@de.ibm.com> <20150126093701.699763dc@gandalf.local.home> <20150126150319.GF4968@osiris> X-Mailer: Claws Mail 3.11.1 (GTK+ 2.24.25; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 26 Jan 2015 16:03:19 +0100 Heiko Carstens wrote: > Actually they should be mutually exclusive. I just merged them "just in case". > > So something like this > > #ifdef CC_USING_HOTPATCH > #define notrace __attribute__((hotpatch(0,0))) > #else > #define notrace __attribute__((no_instrument_function)) > #endif > > will work as well (just tested). I think the above change looks cleaner. -- Steve