Project

General

Profile

Actions

Feature #3692

open

Add ability to get information on structure variable initialization

Added by Evgeny Novikov about 12 years ago. Updated almost 9 years ago.

Status:
Open
Priority:
High
Category:
Weaving
Start date:
11/16/2012
Due date:
% Done:

0%

Estimated time:
Published in build:
e28f037

Description

So, having such the initialization of global variable with structure type:
static struct usb_driver karma_driver = {
        .name =         "ums-karma",
        .probe =        karma_probe,
        .disconnect =   usb_stor_disconnect,
        .suspend =      usb_stor_suspend,
        .resume =       usb_stor_resume,
        .reset_resume = usb_stor_reset_resume,
        .pre_reset =    usb_stor_pre_reset,
        .post_reset =   usb_stor_post_reset,
        .id_table =     karma_usb_ids,
        .soft_unbind =  1,
        .no_dynamic_id = 1,
};

we would like to obtain following information:
  1. "usb_driver" - structure name.
  2. "karma_driver" - variable name.
  3. "probe - karma_probe", ..., "post_reset - usb_stor_post_reset" - pairs of field name and function name (strings, numbers, variable names and so on are of no interest).

Files

test9.c (390 Bytes) test9.c Evgeny Novikov, 03/14/2013 02:19 PM
test9.aspect (243 Bytes) test9.aspect Evgeny Novikov, 03/14/2013 02:19 PM
file (1.17 KB) file Evgeny Novikov, 03/14/2013 02:19 PM
problems_acpi.tar.gz (167 KB) problems_acpi.tar.gz Ilja Zakharov, 03/18/2013 05:10 PM
problems_drbd.tar.gz (342 KB) problems_drbd.tar.gz Ilja Zakharov, 03/18/2013 05:10 PM
test9.c (777 Bytes) test9.c Evgeny Novikov, 03/19/2013 02:00 PM
test9.aspect (682 Bytes) test9.aspect Evgeny Novikov, 03/19/2013 02:00 PM
file (4.61 KB) file Evgeny Novikov, 03/19/2013 02:00 PM
ipmi_poweroff.c.macroinstrumented.xz (110 KB) ipmi_poweroff.c.macroinstrumented.xz Evgeny Novikov, 02/14/2014 12:42 PM
first_request.aspect.xz (612 Bytes) first_request.aspect.xz Evgeny Novikov, 02/14/2014 12:42 PM
first_request.answer.xz (764 Bytes) first_request.answer.xz Evgeny Novikov, 02/14/2014 12:42 PM

Related issues 1 (0 open1 closed)

Blocks C Instrumentation Framework - Feature #2959: We need to develop analyzer on the basis of CIF infrastructure for the new environment generatorClosedEvgeny Novikov06/06/2012

Actions
Actions

Also available in: Atom PDF