GPtrArray *quarktable);
/* Resource function prototypes */
-static LttvBdevState *get_hashed_bdevstate(LttvTraceState *ts, guint16 devcode);
+static LttvBdevState *get_hashed_bdevstate(LttvTraceState *ts, guint32 devcode);
static LttvBdevState *bdevstate_new(void);
static void bdevstate_free(LttvBdevState *);
static void bdevstate_free_cb(gpointer key, gpointer value, gpointer user_data);
/* bdevstate stuff */
-static LttvBdevState *get_hashed_bdevstate(LttvTraceState *ts, guint16 devcode)
+static LttvBdevState *get_hashed_bdevstate(LttvTraceState *ts, guint32 devcode)
{
gint devcode_gint = devcode;
+ printf("get_hashed_bdevstate devcode %d\n", devcode_gint);
gpointer bdev = g_hash_table_lookup(ts->bdev_states, &devcode_gint);
if(bdev == NULL) {
LttvBdevState *bdevstate = g_new(LttvBdevState, 1);
lttv_trace_get_hook_field(th, 1));
guint oper = ltt_event_get_long_unsigned(e,
lttv_trace_get_hook_field(th, 2));
- guint16 devcode = MKDEV(major,minor);
+ guint32 devcode = MKDEV(major,minor);
+ printf("major %d minor %d oper %d devcode %d\n", major, minor, oper, devcode);
/* have we seen this block device before? */
gpointer bdev = get_hashed_bdevstate(ts, devcode);
lttv_trace_get_hook_field(th, 1));
//guint oper = ltt_event_get_long_unsigned(e,
// lttv_trace_get_hook_field(th, 2));
- guint16 devcode = MKDEV(major,minor);
+ guint32 devcode = MKDEV(major,minor);
/* have we seen this block device before? */
gpointer bdev = get_hashed_bdevstate(ts, devcode);