Changeset 336db295 in mainline for kernel/generic/include


Ignore:
Timestamp:
2010-01-23T14:25:32Z (16 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
a074b4f
Parents:
9d3133d
Message:

Fix THREAD_READ, add AREAS_READ Udebug method. Add task dump utility.

Location:
kernel/generic/include
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/include/mm/as.h

    r9d3133d r336db295  
    3636#define KERN_AS_H_
    3737
     38#ifdef KERNEL
     39#include <arch/types.h>
     40#else
     41#include <sys/types.h>
     42#endif
     43
    3844/** Address space area flags. */
    3945#define AS_AREA_READ            1
     
    4147#define AS_AREA_EXEC            4
    4248#define AS_AREA_CACHEABLE       8
     49
     50/** Address space area info exported to userspace. */
     51typedef struct {
     52        /** Starting address */
     53        uintptr_t start_addr;
     54
     55        /** Area size */
     56        size_t size;
     57
     58        /** Area flags */
     59        int flags;
     60} as_area_info_t;
    4361
    4462#ifdef KERNEL
     
    268286
    269287/* Introspection functions. */
     288extern void as_get_area_info(as_t *as, as_area_info_t **obuf, size_t *osize);
    270289extern void as_print(as_t *as);
    271290
  • kernel/generic/include/udebug/udebug.h

    r9d3133d r336db295  
    9696 */
    9797UDEBUG_M_THREAD_READ,
     98
     99/** Read the list of the debugged task's address space areas.
     100 *
     101 * - ARG2 - destination address in the caller's address space
     102 * - ARG3 - size of receiving buffer in bytes
     103 *
     104 * The kernel fills the buffer with a series of as_area_info_t structures.
     105 * Upon answer, the kernel will set:
     106 *
     107 * - ARG2 - number of bytes that were actually copied
     108 * - ARG3 - number of bytes of the complete data
     109 *
     110 */
     111UDEBUG_M_AREAS_READ,
    98112
    99113/** Read the debugged tasks's memory.
  • kernel/generic/include/udebug/udebug_ops.h

    r9d3133d r336db295  
    4545int udebug_stop(thread_t *t, call_t *call);
    4646
    47 int udebug_thread_read(void **buffer, size_t buf_size, size_t *n);
     47int udebug_thread_read(void **buffer, size_t buf_size, size_t *stored,
     48    size_t *needed);
    4849int udebug_args_read(thread_t *t, void **buffer);
    4950
Note: See TracChangeset for help on using the changeset viewer.