Subversion Repositories HelenOS-historic

Rev

Rev 677 | Rev 775 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 677 Rev 759
Line 48... Line 48...
48
#include <cpu.h>
48
#include <cpu.h>
49
#include <mm/tlb.h>
49
#include <mm/tlb.h>
50
#include <arch/mm/tlb.h>
50
#include <arch/mm/tlb.h>
51
#include <mm/frame.h>
51
#include <mm/frame.h>
52
#include <main/version.h>
52
#include <main/version.h>
-
 
53
#include <mm/slab.h>
53
 
54
 
54
/** Data and methods for 'help' command. */
55
/** Data and methods for 'help' command. */
55
static int cmd_help(cmd_arg_t *argv);
56
static int cmd_help(cmd_arg_t *argv);
56
static cmd_info_t help_info = {
57
static cmd_info_t help_info = {
57
    .name = "help",
58
    .name = "help",
Line 241... Line 242...
241
    .argc = 0,
242
    .argc = 0,
242
    .argv = NULL
243
    .argv = NULL
243
};
244
};
244
 
245
 
245
 
246
 
-
 
247
static int cmd_slabs(cmd_arg_t *argv);
-
 
248
static cmd_info_t slabs_info = {
-
 
249
    .name = "slabs",
-
 
250
    .description = "List SLAB caches.",
-
 
251
    .func = cmd_slabs,
-
 
252
    .argc = 0
-
 
253
};
-
 
254
 
246
/** Data and methods for 'zones' command */
255
/** Data and methods for 'zones' command */
247
static int cmd_zones(cmd_arg_t *argv);
256
static int cmd_zones(cmd_arg_t *argv);
248
static cmd_info_t zones_info = {
257
static cmd_info_t zones_info = {
249
    .name = "zones",
258
    .name = "zones",
250
    .description = "List of memory zones.",
259
    .description = "List of memory zones.",
Line 351... Line 360...
351
 
360
 
352
    cmd_initialize(&zones_info);
361
    cmd_initialize(&zones_info);
353
    if (!cmd_register(&zones_info))
362
    if (!cmd_register(&zones_info))
354
        panic("could not register command %s\n", zones_info.name);
363
        panic("could not register command %s\n", zones_info.name);
355
 
364
 
-
 
365
    cmd_initialize(&slabs_info);
-
 
366
    if (!cmd_register(&slabs_info))
-
 
367
        panic("could not register command %s\n", slabs_info.name);
-
 
368
 
356
    cmd_initialize(&zone_info);
369
    cmd_initialize(&zone_info);
357
    if (!cmd_register(&zone_info))
370
    if (!cmd_register(&zone_info))
358
        panic("could not register command %s\n", zone_info.name);
371
        panic("could not register command %s\n", zone_info.name);
359
 
372
 
360
    cmd_initialize(&cpus_info);
373
    cmd_initialize(&cpus_info);
Line 601... Line 614...
601
    }
614
    }
602
   
615
   
603
    return 1;
616
    return 1;
604
}
617
}
605
 
618
 
-
 
619
/** Command for listings SLAB caches
-
 
620
 *
-
 
621
 * @param argv Ignores
-
 
622
 *
-
 
623
 * @return Always 1
-
 
624
 */
-
 
625
int cmd_slabs(cmd_arg_t * argv) {
-
 
626
    slab_print_list();
-
 
627
    return 1;
-
 
628
}
-
 
629
 
606
/** Command for listing memory zones
630
/** Command for listing memory zones
607
 *
631
 *
608
 * @param argv Ignored
632
 * @param argv Ignored
609
 *
633
 *
610
 * return Always 1
634
 * return Always 1