From patchwork Fri Jul 15 06:35:47 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Daniel Kachhap X-Patchwork-Id: 2707 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 01EEE23F55 for ; Fri, 15 Jul 2011 06:36:21 +0000 (UTC) Received: from mail-qw0-f52.google.com (mail-qw0-f52.google.com [209.85.216.52]) by fiordland.canonical.com (Postfix) with ESMTP id C22E6A18460 for ; Fri, 15 Jul 2011 06:36:20 +0000 (UTC) Received: by mail-qw0-f52.google.com with SMTP id 8so670466qwb.11 for ; Thu, 14 Jul 2011 23:36:20 -0700 (PDT) Received: by 10.229.25.212 with SMTP id a20mr2402164qcc.148.1310711780569; Thu, 14 Jul 2011 23:36:20 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.229.217.78 with SMTP id hl14cs38388qcb; Thu, 14 Jul 2011 23:36:20 -0700 (PDT) Received: by 10.223.99.153 with SMTP id u25mr4762415fan.112.1310711779689; Thu, 14 Jul 2011 23:36:19 -0700 (PDT) Received: from mail-fx0-f44.google.com (mail-fx0-f44.google.com [209.85.161.44]) by mx.google.com with ESMTPS id a10si1270915fak.66.2011.07.14.23.36.19 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 14 Jul 2011 23:36:19 -0700 (PDT) Received-SPF: pass (google.com: domain of amitdanielk@gmail.com designates 209.85.161.44 as permitted sender) client-ip=209.85.161.44; Authentication-Results: mx.google.com; spf=pass (google.com: domain of amitdanielk@gmail.com designates 209.85.161.44 as permitted sender) smtp.mail=amitdanielk@gmail.com; dkim=pass (test mode) header.i=@gmail.com Received: by mail-fx0-f44.google.com with SMTP id 6so1724844fxe.17 for ; Thu, 14 Jul 2011 23:36:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=sender:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references; bh=PfzBU3BoIhpNKd/UweRHFs90ANkCX/vv0XRtq5oLkQ0=; b=Cef5OmKLKwLp9O7XtlcqErnsjNe4D/EdvnqZNuVhS3/xRdIkee3srIhrYIMJMy+KA/ yr864CsJkDlvNg7GS5XZGDZsrP8p7UgGJkwcuXjd+C/zO+KJ+I8czMnxIsmTXhLwGcN0 du1EjnUt8UtHB1NSM0RWxkRvmgaWC8NOeVHyY= Received: by 10.223.23.143 with SMTP id r15mr4868255fab.29.1310711778987; Thu, 14 Jul 2011 23:36:18 -0700 (PDT) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id e10sm582327fak.18.2011.07.14.23.36.13 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 14 Jul 2011 23:36:18 -0700 (PDT) Sender: amit kachhap From: Amit Daniel Kachhap To: arjan@linux.intel.com, kristen@linux.intel.com, power@bughost.org Cc: linaro-dev@lists.linaro.org, amit.kachhap@linaro.org, patches@linaro.org Subject: [PATCH 2/3] powertop: perf-event: Add defination of __NR_perf_event_open for arm platforms Date: Fri, 15 Jul 2011 12:05:47 +0530 Message-Id: <1310711748-23531-3-git-send-email-amit.kachhap@linaro.org> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1310711748-23531-1-git-send-email-amit.kachhap@linaro.org> References: <1310711748-23531-1-git-send-email-amit.kachhap@linaro.org> This patch adds defination for __NR_perf_event_open if not present for arm platforms. Signed-off-by: Amit Daniel Kachhap --- perf/perf_event.h | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/perf/perf_event.h b/perf/perf_event.h index 563ffc7..eac4a73 100644 --- a/perf/perf_event.h +++ b/perf/perf_event.h @@ -51,6 +51,9 @@ #if __x86_64__ #define __NR_perf_event_open 298 #endif +#if __arm__ +#define __NR_perf_event_open 364 +#endif #endif