Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752905AbbBMFwL (ORCPT ); Fri, 13 Feb 2015 00:52:11 -0500 Received: from szxga01-in.huawei.com ([119.145.14.64]:45513 "EHLO szxga01-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752829AbbBMFwG (ORCPT ); Fri, 13 Feb 2015 00:52:06 -0500 From: Wang Nan To: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , CC: , , , Subject: [RFC PATCH v3 12/26] early kprobes: Add an KPROBE_FLAG_EARLY for early kprobe. Date: Fri, 13 Feb 2015 13:40:46 +0800 Message-ID: <1423806046-61989-1-git-send-email-wangnan0@huawei.com> X-Mailer: git-send-email 1.8.4 In-Reply-To: <1423805941-61407-1-git-send-email-wangnan0@huawei.com> References: <1423805941-61407-1-git-send-email-wangnan0@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.107.197.247] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 974 Lines: 29 Introduce a KPROBE_FLAG_EARLY for futher using. KPROBE_FLAG_EARLY indicates a kprobe is installed at very early stage, its resources should be allocated statically. Signed-off-by: Wang Nan --- include/linux/kprobes.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/linux/kprobes.h b/include/linux/kprobes.h index e1c8307..8d2e754 100644 --- a/include/linux/kprobes.h +++ b/include/linux/kprobes.h @@ -130,6 +130,7 @@ struct kprobe { * this flag is only for optimized_kprobe. */ #define KPROBE_FLAG_FTRACE 8 /* probe is using ftrace */ +#define KPROBE_FLAG_EARLY 16 /* early kprobe */ /* Has this kprobe gone ? */ static inline int kprobe_gone(struct kprobe *p) -- 1.8.4 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/