change control flow viewer : combine all information into one line
[lttv.git] / ltt / branches / poly / lttv / modules / gui / controlflow / processlist.c
CommitLineData
ce0214a6 1/* This file is part of the Linux Trace Toolkit viewer
2 * Copyright (C) 2003-2004 Mathieu Desnoyers
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License Version 2 as
6 * published by the Free Software Foundation;
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program; if not, write to the Free Software
15 * Foundation, Inc., 59 Temple Place - Suite 330, Boston,
16 * MA 02111-1307, USA.
17 */
f0d936c0 18
fa2c4dbe 19#include <gtk/gtk.h>
20#include <glib.h>
a95bc95a 21#include <string.h>
22#include <stdlib.h>
d66666fe 23
24#include "processlist.h"
25#include "drawitem.h"
fa2c4dbe 26
ca0f8a8e 27#define g_info(format...) g_log (G_LOG_DOMAIN, G_LOG_LEVEL_INFO, format)
28#define g_debug(format...) g_log (G_LOG_DOMAIN, G_LOG_LEVEL_DEBUG, format)
29
30
f0d936c0 31/*****************************************************************************
32 * Methods to synchronize process list *
33 *****************************************************************************/
34
90ef7e4a 35static __inline guint get_cpu_number_from_name(GQuark name);
a95bc95a 36
f0d936c0 37/* Enumeration of the columns */
38enum
39{
a56a1ba4 40 PROCESS_COLUMN,
41 PID_COLUMN,
e92eabaf 42 PPID_COLUMN,
a95bc95a 43 CPU_COLUMN,
a56a1ba4 44 BIRTH_S_COLUMN,
45 BIRTH_NS_COLUMN,
d0cd7f09 46 TRACE_COLUMN,
a56a1ba4 47 N_COLUMNS
f0d936c0 48};
49
50
a56a1ba4 51gint process_sort_func ( GtkTreeModel *model,
52 GtkTreeIter *it_a,
53 GtkTreeIter *it_b,
54 gpointer user_data)
fa2c4dbe 55{
a56a1ba4 56 GValue a, b;
57
58 memset(&a, 0, sizeof(GValue));
59 memset(&b, 0, sizeof(GValue));
60
61 /* Order by PID */
62 gtk_tree_model_get_value( model,
63 it_a,
64 PID_COLUMN,
65 &a);
66
67 gtk_tree_model_get_value( model,
68 it_b,
69 PID_COLUMN,
70 &b);
71
72 if(G_VALUE_TYPE(&a) == G_TYPE_UINT
73 && G_VALUE_TYPE(&b) == G_TYPE_UINT )
74 {
a56a1ba4 75 {
a95bc95a 76
77 if(g_value_get_uint(&a) == 0 && g_value_get_uint(&b) == 0) {
78
79 GValue cpua, cpub;
80
81 memset(&cpua, 0, sizeof(GValue));
82 memset(&cpub, 0, sizeof(GValue));
83
84 /* If 0, order by CPU */
85 gtk_tree_model_get_value( model,
86 it_a,
87 CPU_COLUMN,
88 &cpua);
89
90 gtk_tree_model_get_value( model,
91 it_b,
92 CPU_COLUMN,
93 &cpub);
94
95 if(G_VALUE_TYPE(&cpua) == G_TYPE_UINT
96 && G_VALUE_TYPE(&cpub) == G_TYPE_UINT )
97 {
98 if(g_value_get_uint(&cpua) > g_value_get_uint(&cpub))
99 {
100 g_value_unset(&cpua);
101 g_value_unset(&cpub);
102 return 1;
103 }
104 if(g_value_get_uint(&cpua) < g_value_get_uint(&cpub))
105 {
106 g_value_unset(&cpua);
107 g_value_unset(&cpub);
108 return 0;
109 }
110 }
111
112 g_value_unset(&cpua);
113 g_value_unset(&cpub);
114
115 } else { /* if not 0, order by pid */
116
117 if(g_value_get_uint(&a) > g_value_get_uint(&b))
118 {
119 g_value_unset(&a);
120 g_value_unset(&b);
121 return 1;
122 }
123 if(g_value_get_uint(&a) < g_value_get_uint(&b))
124 {
125 g_value_unset(&a);
126 g_value_unset(&b);
127 return 0;
128 }
129 }
a56a1ba4 130 }
131 }
132
133 g_value_unset(&a);
134 g_value_unset(&b);
135
136
137 /* Order by birth second */
138 gtk_tree_model_get_value( model,
139 it_a,
140 BIRTH_S_COLUMN,
141 &a);
142
143 gtk_tree_model_get_value( model,
144 it_b,
145 BIRTH_S_COLUMN,
146 &b);
147
148
149 if(G_VALUE_TYPE(&a) == G_TYPE_ULONG
150 && G_VALUE_TYPE(&b) == G_TYPE_ULONG )
151 {
152 if(g_value_get_ulong(&a) > g_value_get_ulong(&b))
153 {
154 g_value_unset(&a);
155 g_value_unset(&b);
156 return 1;
157 }
158 if(g_value_get_ulong(&a) < g_value_get_ulong(&b))
159 {
160 g_value_unset(&a);
161 g_value_unset(&b);
162 return 0;
163 }
164
165 }
166
167 g_value_unset(&a);
168 g_value_unset(&b);
169
170 /* Order by birth nanosecond */
171 gtk_tree_model_get_value( model,
172 it_a,
173 BIRTH_NS_COLUMN,
174 &a);
175
176 gtk_tree_model_get_value( model,
177 it_b,
178 BIRTH_NS_COLUMN,
179 &b);
180
181
182 if(G_VALUE_TYPE(&a) == G_TYPE_ULONG
183 && G_VALUE_TYPE(&b) == G_TYPE_ULONG )
184 {
185 if(g_value_get_ulong(&a) > g_value_get_ulong(&b))
186 {
187 g_value_unset(&a);
188 g_value_unset(&b);
189 return 1;
190 }
a95bc95a 191 if(g_value_get_ulong(&a) < g_value_get_ulong(&b))
192 {
193 g_value_unset(&a);
194 g_value_unset(&b);
195 return 0;
196 }
a56a1ba4 197
198 }
199
200 g_value_unset(&a);
201 g_value_unset(&b);
202
d0cd7f09 203 /* Order by trace_num */
204 gtk_tree_model_get_value( model,
205 it_a,
206 TRACE_COLUMN,
207 &a);
208
209 gtk_tree_model_get_value( model,
210 it_b,
211 TRACE_COLUMN,
212 &b);
213
214 if(G_VALUE_TYPE(&a) == G_TYPE_ULONG
215 && G_VALUE_TYPE(&b) == G_TYPE_ULONG )
216 {
217 if(g_value_get_ulong(&a) > g_value_get_ulong(&b))
218 {
219 g_value_unset(&a);
220 g_value_unset(&b);
221 return 1;
222 }
223 if(g_value_get_ulong(&a) < g_value_get_ulong(&b))
224 {
225 g_value_unset(&a);
226 g_value_unset(&b);
227 return 0;
228 }
229
230 }
231
a56a1ba4 232 return 0;
fa2c4dbe 233
234}
235
7893f726 236static guint process_list_hash_fct(gconstpointer key)
fa2c4dbe 237{
7893f726 238 guint pid = ((ProcessInfo*)key)->pid;
239 return ((pid>>8 ^ pid>>4 ^ pid>>2 ^ pid) ^ ((ProcessInfo*)key)->cpu);
fa2c4dbe 240}
241
7893f726 242static gboolean process_list_equ_fct(gconstpointer a, gconstpointer b)
fa2c4dbe 243{
a95bc95a 244 const ProcessInfo *pa = (const ProcessInfo*)a;
245 const ProcessInfo *pb = (const ProcessInfo*)b;
7893f726 246
a95bc95a 247 if(pa->pid != pb->pid)
a56a1ba4 248 return 0;
a95bc95a 249
250 if((pa->pid == 0 && (pa->cpu != pb->cpu)))
a56a1ba4 251 return 0;
a56a1ba4 252
a95bc95a 253 if(pa->birth.tv_sec != pb->birth.tv_sec)
a56a1ba4 254 return 0;
a56a1ba4 255
a95bc95a 256 if(pa->birth.tv_nsec != pb->birth.tv_nsec)
257 return 0;
258
259 if(pa->trace_num != pb->trace_num)
d0cd7f09 260 return 0;
261
a56a1ba4 262 return 1;
fa2c4dbe 263}
264
4c69e0cc 265void destroy_hash_key(gpointer key);
fa2c4dbe 266
4c69e0cc 267void destroy_hash_data(gpointer data);
fa2c4dbe 268
269
270
271
4c69e0cc 272ProcessList *processlist_construct(void)
f0d936c0 273{
a56a1ba4 274 GtkTreeViewColumn *column;
275 GtkCellRenderer *renderer;
276
ba90bc77 277 ProcessList* process_list = g_new(ProcessList,1);
a56a1ba4 278
ba90bc77 279 process_list->number_of_process = 0;
ad96f4a0 280 process_list->cell_height_cache = -1;
a56a1ba4 281
282 /* Create the Process list */
f5d980bf 283 process_list->list_store = gtk_list_store_new ( N_COLUMNS,
a56a1ba4 284 G_TYPE_STRING,
285 G_TYPE_UINT,
e92eabaf 286 G_TYPE_UINT,
a95bc95a 287 G_TYPE_UINT,
a56a1ba4 288 G_TYPE_ULONG,
d0cd7f09 289 G_TYPE_ULONG,
a56a1ba4 290 G_TYPE_ULONG);
291
292
f5d980bf 293 process_list->process_list_widget =
a56a1ba4 294 gtk_tree_view_new_with_model
f5d980bf 295 (GTK_TREE_MODEL (process_list->list_store));
f5d980bf 296 g_object_unref (G_OBJECT (process_list->list_store));
a56a1ba4 297
298 gtk_tree_sortable_set_sort_func(
f5d980bf 299 GTK_TREE_SORTABLE(process_list->list_store),
a56a1ba4 300 PID_COLUMN,
301 process_sort_func,
302 NULL,
303 NULL);
304
305 gtk_tree_sortable_set_sort_column_id(
f5d980bf 306 GTK_TREE_SORTABLE(process_list->list_store),
a56a1ba4 307 PID_COLUMN,
308 GTK_SORT_ASCENDING);
309
14963be0 310 process_list->process_hash = g_hash_table_new_full(
7893f726 311 process_list_hash_fct, process_list_equ_fct,
a56a1ba4 312 destroy_hash_key, destroy_hash_data
313 );
314
315
316 gtk_tree_view_set_headers_visible(
3cb8b205 317 GTK_TREE_VIEW(process_list->process_list_widget), TRUE);
a56a1ba4 318
319 /* Create a column, associating the "text" attribute of the
320 * cell_renderer to the first column of the model */
321 /* Columns alignment : 0.0 : Left 0.5 : Center 1.0 : Right */
322 renderer = gtk_cell_renderer_text_new ();
323 column = gtk_tree_view_column_new_with_attributes ( "Process",
324 renderer,
325 "text",
326 PROCESS_COLUMN,
327 NULL);
328 gtk_tree_view_column_set_alignment (column, 0.0);
329 gtk_tree_view_column_set_fixed_width (column, 45);
330 gtk_tree_view_append_column (
f5d980bf 331 GTK_TREE_VIEW (process_list->process_list_widget), column);
b9a010a2 332
333 process_list->button = column->button;
334
a56a1ba4 335 column = gtk_tree_view_column_new_with_attributes ( "PID",
336 renderer,
337 "text",
338 PID_COLUMN,
339 NULL);
340 gtk_tree_view_append_column (
f5d980bf 341 GTK_TREE_VIEW (process_list->process_list_widget), column);
a56a1ba4 342
e92eabaf 343 column = gtk_tree_view_column_new_with_attributes ( "PPID",
344 renderer,
345 "text",
346 PPID_COLUMN,
347 NULL);
348 gtk_tree_view_append_column (
349 GTK_TREE_VIEW (process_list->process_list_widget), column);
a95bc95a 350
351 column = gtk_tree_view_column_new_with_attributes ( "CPU",
352 renderer,
353 "text",
354 CPU_COLUMN,
355 NULL);
356 gtk_tree_view_append_column (
357 GTK_TREE_VIEW (process_list->process_list_widget), column);
a56a1ba4 358
359 column = gtk_tree_view_column_new_with_attributes ( "Birth sec",
360 renderer,
361 "text",
362 BIRTH_S_COLUMN,
363 NULL);
364 gtk_tree_view_append_column (
f5d980bf 365 GTK_TREE_VIEW (process_list->process_list_widget), column);
a56a1ba4 366
367 //gtk_tree_view_column_set_visible(column, 0);
368 //
369 column = gtk_tree_view_column_new_with_attributes ( "Birth nsec",
370 renderer,
371 "text",
372 BIRTH_NS_COLUMN,
373 NULL);
374 gtk_tree_view_append_column (
f5d980bf 375 GTK_TREE_VIEW (process_list->process_list_widget), column);
a56a1ba4 376
d0cd7f09 377 column = gtk_tree_view_column_new_with_attributes ( "TRACE",
378 renderer,
379 "text",
380 TRACE_COLUMN,
381 NULL);
382 gtk_tree_view_append_column (
383 GTK_TREE_VIEW (process_list->process_list_widget), column);
384
385
a56a1ba4 386 //gtk_tree_view_column_set_visible(column, 0);
387
388 g_object_set_data_full(
f5d980bf 389 G_OBJECT(process_list->process_list_widget),
ba90bc77 390 "process_list_Data",
391 process_list,
a56a1ba4 392 (GDestroyNotify)processlist_destroy);
393
ba90bc77 394 return process_list;
f0d936c0 395}
b9a010a2 396
ba90bc77 397void processlist_destroy(ProcessList *process_list)
f0d936c0 398{
b9a010a2 399 g_debug("processlist_destroy %p", process_list);
14963be0 400 g_hash_table_destroy(process_list->process_hash);
401 process_list->process_hash = NULL;
f0d936c0 402
ba90bc77 403 g_free(process_list);
b9a010a2 404 g_debug("processlist_destroy end");
405}
406
407static gboolean remove_hash_item(ProcessInfo *process_info,
408 HashedProcessData *hashed_process_data,
409 ProcessList *process_list)
410{
b9a010a2 411 GtkTreeIter iter;
412
ad96f4a0 413 iter = hashed_process_data->y_iter;
b9a010a2 414
415 gtk_list_store_remove (process_list->list_store, &iter);
416
b9a010a2 417 return TRUE; /* remove the element from the hash table */
f0d936c0 418}
419
b9a010a2 420void processlist_clear(ProcessList *process_list)
421{
422 g_info("processlist_clear %p", process_list);
423
424 g_hash_table_foreach_remove(process_list->process_hash,
425 (GHRFunc)remove_hash_item,
426 (gpointer)process_list);
427 process_list->number_of_process = 0;
428}
429
430
ba90bc77 431GtkWidget *processlist_get_widget(ProcessList *process_list)
f0d936c0 432{
f5d980bf 433 return process_list->process_list_widget;
f0d936c0 434}
435
436
437
54d8f654 438static __inline gint get_cell_height(ProcessList *process_list, GtkTreeView *tree_view)
f0d936c0 439{
ad96f4a0 440 gint height = process_list->cell_height_cache;
441 if(height != -1) return height;
442 else {
443 GtkTreeViewColumn *Column = gtk_tree_view_get_column(tree_view, 0);
a56a1ba4 444
ad96f4a0 445 gtk_tree_view_column_cell_get_size(Column, NULL, NULL, NULL, NULL,
446 &process_list->cell_height_cache);
447 }
448
a56a1ba4 449
ad96f4a0 450 return process_list->cell_height_cache;
f0d936c0 451}
452
4c69e0cc 453void destroy_hash_key(gpointer key)
f0d936c0 454{
a56a1ba4 455 g_free(key);
fa2c4dbe 456}
457
4c69e0cc 458void destroy_hash_data(gpointer data)
fa2c4dbe 459{
a56a1ba4 460 g_free(data);
fa2c4dbe 461}
462
ba90bc77 463int processlist_add( ProcessList *process_list,
a56a1ba4 464 guint pid,
a95bc95a 465 guint cpu,
e92eabaf 466 guint ppid,
a56a1ba4 467 LttTime *birth,
d0cd7f09 468 guint trace_num,
51705146 469 const gchar *name,
a56a1ba4 470 guint *height,
f5d980bf 471 HashedProcessData **pm_hashed_process_data)
fa2c4dbe 472{
a56a1ba4 473 ProcessInfo *Process_Info = g_new(ProcessInfo, 1);
14963be0 474 HashedProcessData *hashed_process_data = g_new(HashedProcessData, 1);
f5d980bf 475 *pm_hashed_process_data = hashed_process_data;
a56a1ba4 476
477 Process_Info->pid = pid;
a95bc95a 478 if(pid == 0)
479 Process_Info->cpu = cpu;
480 else
481 Process_Info->cpu = 0;
e92eabaf 482 Process_Info->ppid = ppid;
a56a1ba4 483 Process_Info->birth = *birth;
d0cd7f09 484 Process_Info->trace_num = trace_num;
b9a010a2 485
486 /* When we create it from before state update, we are sure that the
487 * last event occured before the beginning of the global area.
488 *
489 * If it is created after state update, this value (0) will be
490 * overriden by the new state before anything is drawn.
491 */
23093869 492 hashed_process_data->x.over = 0;
493 hashed_process_data->x.middle = 0;
494 hashed_process_data->x.under = 0;
a56a1ba4 495
a56a1ba4 496 /* Add a new row to the model */
ad96f4a0 497 gtk_list_store_append ( process_list->list_store,
498 &hashed_process_data->y_iter);
499
500 gtk_list_store_set ( process_list->list_store, &hashed_process_data->y_iter,
a56a1ba4 501 PROCESS_COLUMN, name,
502 PID_COLUMN, pid,
e92eabaf 503 PPID_COLUMN, ppid,
a95bc95a 504 CPU_COLUMN, get_cpu_number_from_name(cpu),
a56a1ba4 505 BIRTH_S_COLUMN, birth->tv_sec,
506 BIRTH_NS_COLUMN, birth->tv_nsec,
d0cd7f09 507 TRACE_COLUMN, trace_num,
a56a1ba4 508 -1);
ad96f4a0 509#if 0
f5d980bf 510 hashed_process_data->row_ref = gtk_tree_row_reference_new (
511 GTK_TREE_MODEL(process_list->list_store),
a56a1ba4 512 gtk_tree_model_get_path(
f5d980bf 513 GTK_TREE_MODEL(process_list->list_store),
a56a1ba4 514 &iter));
ad96f4a0 515#endif //0
a95bc95a 516 g_hash_table_insert(process_list->process_hash,
a56a1ba4 517 (gpointer)Process_Info,
14963be0 518 (gpointer)hashed_process_data);
a56a1ba4 519
520 //g_critical ( "iter after : %s", gtk_tree_path_to_string (
521 // gtk_tree_model_get_path (
f5d980bf 522 // GTK_TREE_MODEL(process_list->list_store),
a56a1ba4 523 // &iter)));
ba90bc77 524 process_list->number_of_process++;
a56a1ba4 525
ad96f4a0 526 *height = get_cell_height(process_list,
527 GTK_TREE_VIEW(process_list->process_list_widget))
ba90bc77 528 * process_list->number_of_process ;
a56a1ba4 529
a56a1ba4 530 return 0;
f0d936c0 531}
532
ba90bc77 533int processlist_remove( ProcessList *process_list,
a56a1ba4 534 guint pid,
a95bc95a 535 guint cpu,
d0cd7f09 536 LttTime *birth,
537 guint trace_num)
f0d936c0 538{
a56a1ba4 539 ProcessInfo Process_Info;
540 gint *path_indices;
14963be0 541 HashedProcessData *hashed_process_data;
a56a1ba4 542 GtkTreeIter iter;
543
544 Process_Info.pid = pid;
324cdea4 545 if(pid == 0)
546 Process_Info.cpu = cpu;
547 else
548 Process_Info.cpu = 0;
a56a1ba4 549 Process_Info.birth = *birth;
d0cd7f09 550 Process_Info.trace_num = trace_num;
a56a1ba4 551
552
14963be0 553 if(hashed_process_data =
a56a1ba4 554 (HashedProcessData*)g_hash_table_lookup(
14963be0 555 process_list->process_hash,
a56a1ba4 556 &Process_Info))
557 {
ad96f4a0 558 iter = hashed_process_data->y_iter;
a56a1ba4 559
f5d980bf 560 gtk_list_store_remove (process_list->list_store, &iter);
e800cf84 561
14963be0 562 g_hash_table_remove(process_list->process_hash,
a56a1ba4 563 &Process_Info);
564
ba90bc77 565 process_list->number_of_process--;
a56a1ba4 566
567 return 0;
568 } else {
569 return 1;
570 }
fa2c4dbe 571}
572
573
ba90bc77 574guint processlist_get_height(ProcessList *process_list)
fa2c4dbe 575{
ad96f4a0 576 return get_cell_height(process_list,
577 GTK_TREE_VIEW(process_list->process_list_widget))
ba90bc77 578 * process_list->number_of_process ;
f0d936c0 579}
fa2c4dbe 580
581
90ef7e4a 582__inline gint processlist_get_process_pixels( ProcessList *process_list,
a95bc95a 583 guint pid, guint cpu, LttTime *birth, guint trace_num,
a56a1ba4 584 guint *y,
585 guint *height,
f5d980bf 586 HashedProcessData **pm_hashed_process_data)
fa2c4dbe 587{
a56a1ba4 588 ProcessInfo Process_Info;
589 gint *path_indices;
590 GtkTreePath *tree_path;
14963be0 591 HashedProcessData *hashed_process_data = NULL;
a56a1ba4 592
593 Process_Info.pid = pid;
324cdea4 594 if(pid == 0)
595 Process_Info.cpu = cpu;
596 else
597 Process_Info.cpu = 0;
a56a1ba4 598 Process_Info.birth = *birth;
d0cd7f09 599 Process_Info.trace_num = trace_num;
a56a1ba4 600
14963be0 601 if(hashed_process_data =
a56a1ba4 602 (HashedProcessData*)g_hash_table_lookup(
14963be0 603 process_list->process_hash,
a56a1ba4 604 &Process_Info))
605 {
ad96f4a0 606 tree_path = gtk_tree_model_get_path(
607 GTK_TREE_MODEL(process_list->list_store),
608 &hashed_process_data->y_iter);
a56a1ba4 609 path_indices = gtk_tree_path_get_indices (tree_path);
610
ad96f4a0 611 *height = get_cell_height(process_list,
f5d980bf 612 GTK_TREE_VIEW(process_list->process_list_widget));
a56a1ba4 613 *y = *height * path_indices[0];
f5d980bf 614 *pm_hashed_process_data = hashed_process_data;
51705146 615 gtk_tree_path_free(tree_path);
616
a56a1ba4 617 return 0;
618 } else {
f5d980bf 619 *pm_hashed_process_data = hashed_process_data;
a56a1ba4 620 return 1;
621 }
fa2c4dbe 622
fa2c4dbe 623}
8b90e648 624
625
90ef7e4a 626__inline gint processlist_get_pixels_from_data( ProcessList *process_list,
a56a1ba4 627 ProcessInfo *process_info,
14963be0 628 HashedProcessData *hashed_process_data,
a56a1ba4 629 guint *y,
630 guint *height)
8b90e648 631{
a56a1ba4 632 gint *path_indices;
633 GtkTreePath *tree_path;
8b90e648 634
ad96f4a0 635 tree_path = gtk_tree_model_get_path(GTK_TREE_MODEL(process_list->list_store),
636 &hashed_process_data->y_iter);
a56a1ba4 637 path_indices = gtk_tree_path_get_indices (tree_path);
8b90e648 638
ad96f4a0 639 *height = get_cell_height(process_list,
f5d980bf 640 GTK_TREE_VIEW(process_list->process_list_widget));
a56a1ba4 641 *y = *height * path_indices[0];
51705146 642 gtk_tree_path_free(tree_path);
8b90e648 643
a56a1ba4 644 return 0;
8b90e648 645
646}
a95bc95a 647
90ef7e4a 648static __inline guint get_cpu_number_from_name(GQuark name)
a95bc95a 649{
a95bc95a 650 const gchar *string;
651 char *begin;
652 guint cpu;
653
654 string = g_quark_to_string(name);
655
656 begin = strrchr(string, '/');
657 begin++;
658
659 g_assert(begin != '\0');
660
661 cpu = strtoul(begin, NULL, 10);
662
663 return cpu;
664}
665
This page took 0.06219 seconds and 4 git commands to generate.