Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/11199/?format=api
http://patches.dpdk.org/api/patches/11199/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/1457434240-13707-3-git-send-email-harry.van.haaren@intel.com/", "project": { "id": 1, "url": "http://patches.dpdk.org/api/projects/1/?format=api", "name": "DPDK", "link_name": "dpdk", "list_id": "dev.dpdk.org", "list_email": "dev@dpdk.org", "web_url": "http://core.dpdk.org", "scm_url": "git://dpdk.org/dpdk", "webscm_url": "http://git.dpdk.org/dpdk", "list_archive_url": "https://inbox.dpdk.org/dev", "list_archive_url_format": "https://inbox.dpdk.org/dev/{}", "commit_url_format": "" }, "msgid": "<1457434240-13707-3-git-send-email-harry.van.haaren@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1457434240-13707-3-git-send-email-harry.van.haaren@intel.com", "date": "2016-03-08T10:50:39", "name": "[dpdk-dev,v4,2/3] eal: add keepalive core register timestamp", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "b2e79b9ea142afa41fbfcfb0ed2239415126a8b8", "submitter": { "id": 317, "url": "http://patches.dpdk.org/api/people/317/?format=api", "name": "Van Haaren, Harry", "email": "harry.van.haaren@intel.com" }, "delegate": null, "mbox": "http://patches.dpdk.org/project/dpdk/patch/1457434240-13707-3-git-send-email-harry.van.haaren@intel.com/mbox/", "series": [], "comments": "http://patches.dpdk.org/api/patches/11199/comments/", "check": "pending", "checks": "http://patches.dpdk.org/api/patches/11199/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<dev-bounces@dpdk.org>", "X-Original-To": "patchwork@dpdk.org", "Delivered-To": "patchwork@dpdk.org", "Received": [ "from [92.243.14.124] (localhost [IPv6:::1])\n\tby dpdk.org (Postfix) with ESMTP id B04383238;\n\tTue, 8 Mar 2016 11:51:01 +0100 (CET)", "from mga02.intel.com (mga02.intel.com [134.134.136.20])\n\tby dpdk.org (Postfix) with ESMTP id 5D91A3195\n\tfor <dev@dpdk.org>; Tue, 8 Mar 2016 11:51:00 +0100 (CET)", "from orsmga001.jf.intel.com ([10.7.209.18])\n\tby orsmga101.jf.intel.com with ESMTP; 08 Mar 2016 02:50:58 -0800", "from sie-lab-212-120.ir.intel.com (HELO\n\tsilpixa00394367.ir.intel.com) ([10.237.212.120])\n\tby orsmga001.jf.intel.com with ESMTP; 08 Mar 2016 02:50:57 -0800" ], "X-ExtLoop1": "1", "X-IronPort-AV": "E=Sophos;i=\"5.22,556,1449561600\"; d=\"scan'208\";a=\"904825362\"", "From": "Harry van Haaren <harry.van.haaren@intel.com>", "To": "remy.horton@intel.com", "Date": "Tue, 8 Mar 2016 10:50:39 +0000", "Message-Id": "<1457434240-13707-3-git-send-email-harry.van.haaren@intel.com>", "X-Mailer": "git-send-email 2.5.0", "In-Reply-To": "<1457434240-13707-1-git-send-email-harry.van.haaren@intel.com>", "References": "<1456140362-3771-1-git-send-email-harry.van.haaren@intel.com>\n\t<1457434240-13707-1-git-send-email-harry.van.haaren@intel.com>", "Cc": "dev@dpdk.org", "Subject": "[dpdk-dev] [PATCH v4 2/3] eal: add keepalive core register timestamp", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.15", "Precedence": "list", "List-Id": "patches and discussions about DPDK <dev.dpdk.org>", "List-Unsubscribe": "<http://dpdk.org/ml/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>", "List-Archive": "<http://dpdk.org/ml/archives/dev/>", "List-Post": "<mailto:dev@dpdk.org>", "List-Help": "<mailto:dev-request@dpdk.org?subject=help>", "List-Subscribe": "<http://dpdk.org/ml/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "This patch sets a timestamp on each lcore when it is registered\nfor keepalive. This causes the first values read by the monitor\nto show time since the core was registered, instead of the delta\nbetween 0 and the timestamp counter.\n\nSigned-off-by: Harry van Haaren <harry.van.haaren@intel.com>\nAcked-by: Remy Horton <remy.horton@intel.com>\n---\n lib/librte_eal/common/rte_keepalive.c | 7 +++++--\n 1 file changed, 5 insertions(+), 2 deletions(-)", "diff": "diff --git a/lib/librte_eal/common/rte_keepalive.c b/lib/librte_eal/common/rte_keepalive.c\nindex bd1f16b..56df0b1 100644\n--- a/lib/librte_eal/common/rte_keepalive.c\n+++ b/lib/librte_eal/common/rte_keepalive.c\n@@ -1,7 +1,7 @@\n /*-\n * BSD LICENSE\n *\n- * Copyright 2015 Intel Shannon Ltd. All rights reserved.\n+ * Copyright(c) 2015-2016 Intel Corporation. All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n@@ -38,6 +38,7 @@\n #include <rte_log.h>\n #include <rte_keepalive.h>\n #include <rte_malloc.h>\n+#include <rte_cycles.h>\n \n struct rte_keepalive {\n \t/** Core Liveness. */\n@@ -139,8 +140,10 @@ rte_keepalive_create(rte_keepalive_failure_callback_t callback,\n void\n rte_keepalive_register_core(struct rte_keepalive *keepcfg, const int id_core)\n {\n-\tif (id_core < RTE_KEEPALIVE_MAXCORES)\n+\tif (id_core < RTE_KEEPALIVE_MAXCORES) {\n \t\tkeepcfg->active_cores[id_core] = 1;\n+\t\tkeepcfg->last_alive[id_core] = rte_rdtsc();\n+\t}\n }\n \n \n", "prefixes": [ "dpdk-dev", "v4", "2/3" ] }{ "id": 11199, "url": "