summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/runqueue.py
diff options
context:
space:
mode:
authorAlexandru DAMIAN <alexandru.damian@intel.com>2013-09-18 13:15:53 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-09-22 12:19:44 +0100
commitace48c2866b9e74051ea97e26f09eaded9c21dcf (patch)
tree216fee1a1d1829ced4e53dc5158117f7d5b10c4b /bitbake/lib/bb/runqueue.py
parent24ae636fde4ef5683190c9155dd803ce87a311c4 (diff)
downloadpoky-ace48c2866b9e74051ea97e26f09eaded9c21dcf.tar.gz
bitbake: bitbake: runqueue: add task hash to Queue events
Adding the sstate-related hash for all runqueue and scenequeue tasks, as it's needed in the WebHob data. (Bitbake rev: b6e2ce1cf7a0ede890f08fabf536a556dc4263c5) Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/runqueue.py')
-rw-r--r--bitbake/lib/bb/runqueue.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/bitbake/lib/bb/runqueue.py b/bitbake/lib/bb/runqueue.py
index 19e89e9692..c09cfd4b2c 100644
--- a/bitbake/lib/bb/runqueue.py
+++ b/bitbake/lib/bb/runqueue.py
@@ -223,6 +223,9 @@ class RunQueueData:
223 def get_task_file(self, task): 223 def get_task_file(self, task):
224 return self.taskData.fn_index[self.runq_fnid[task]] 224 return self.taskData.fn_index[self.runq_fnid[task]]
225 225
226 def get_task_hash(self, task):
227 return self.runq_hash[task]
228
226 def get_user_idstring(self, task, task_name_suffix = ""): 229 def get_user_idstring(self, task, task_name_suffix = ""):
227 fn = self.taskData.fn_index[self.runq_fnid[task]] 230 fn = self.taskData.fn_index[self.runq_fnid[task]]
228 taskname = self.runq_task[task] + task_name_suffix 231 taskname = self.runq_task[task] + task_name_suffix
@@ -1794,6 +1797,7 @@ class runQueueEvent(bb.event.Event):
1794 self.taskstring = rq.rqdata.get_user_idstring(task) 1797 self.taskstring = rq.rqdata.get_user_idstring(task)
1795 self.taskname = rq.rqdata.get_task_name(task) 1798 self.taskname = rq.rqdata.get_task_name(task)
1796 self.taskfile = rq.rqdata.get_task_file(task) 1799 self.taskfile = rq.rqdata.get_task_file(task)
1800 self.taskhash = rq.rqdata.get_task_hash(task)
1797 self.stats = stats.copy() 1801 self.stats = stats.copy()
1798 bb.event.Event.__init__(self) 1802 bb.event.Event.__init__(self)
1799 1803
@@ -1807,6 +1811,7 @@ class sceneQueueEvent(runQueueEvent):
1807 self.taskstring = rq.rqdata.get_user_idstring(realtask, "_setscene") 1811 self.taskstring = rq.rqdata.get_user_idstring(realtask, "_setscene")
1808 self.taskname = rq.rqdata.get_task_name(realtask) + "_setscene" 1812 self.taskname = rq.rqdata.get_task_name(realtask) + "_setscene"
1809 self.taskfile = rq.rqdata.get_task_file(realtask) 1813 self.taskfile = rq.rqdata.get_task_file(realtask)
1814 self.taskhash = rq.rqdata.get_task_hash(task)
1810 1815
1811class runQueueTaskStarted(runQueueEvent): 1816class runQueueTaskStarted(runQueueEvent):
1812 """ 1817 """