Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

struct pt_isn has no member named ... : Error in building user tools #9

Open
sid7954 opened this issue May 9, 2017 · 5 comments
Open

Comments

@sid7954
Copy link

sid7954 commented May 9, 2017

After following the instructions exactly and installing libipt from https://github.com/01org/processor-trace, building user tools throws an error regarding the struct pt_isn not having certain members.

cc -g -Wall -DHAVE_XED=1 -I ../processor-trace/libipt/include -c -o sptdecode.o sptdecode.c
sptdecode.c: In function ‘transfer_events’:
sptdecode.c:84:26: error: ‘struct pt_insn’ has no member named ‘aborted’
#define T(x) si->x = insn->x;
^
sptdecode.c:86:2: note: in expansion of macro ‘T’
T(aborted);
^
sptdecode.c:84:26: error: ‘struct pt_insn’ has no member named ‘committed’
#define T(x) si->x = insn->x;
^
sptdecode.c:87:2: note: in expansion of macro ‘T’
T(committed);
^
sptdecode.c:84:26: error: ‘struct pt_insn’ has no member named ‘disabled’
#define T(x) si->x = insn->x;
^
sptdecode.c:88:2: note: in expansion of macro ‘T’
T(disabled);
^
sptdecode.c:84:26: error: ‘struct pt_insn’ has no member named ‘enabled’
#define T(x) si->x = insn->x;
^
sptdecode.c:89:2: note: in expansion of macro ‘T’
T(enabled);
^
sptdecode.c:84:26: error: ‘struct pt_insn’ has no member named ‘resumed’
#define T(x) si->x = insn->x;
^
sptdecode.c:90:2: note: in expansion of macro ‘T’
T(resumed);
^
sptdecode.c:84:26: error: ‘struct pt_insn’ has no member named ‘interrupted’
#define T(x) si->x = insn->x;
^
sptdecode.c:91:2: note: in expansion of macro ‘T’
T(interrupted);
^
sptdecode.c:84:26: error: ‘struct pt_insn’ has no member named ‘resynced’
#define T(x) si->x = insn->x;
^
sptdecode.c:92:2: note: in expansion of macro ‘T’
T(resynced);
^
sptdecode.c: In function ‘print_insn’:
sptdecode.c:287:10: error: ‘struct pt_insn’ has no member named ‘enabled’
if (insn->enabled)
^
sptdecode.c:289:10: error: ‘struct pt_insn’ has no member named ‘disabled’
if (insn->disabled)
^
sptdecode.c:291:10: error: ‘struct pt_insn’ has no member named ‘resumed’
if (insn->resumed)
^
sptdecode.c:293:10: error: ‘struct pt_insn’ has no member named ‘interrupted’
if (insn->interrupted)
^
sptdecode.c: In function ‘decode’:
sptdecode.c:510:11: error: ‘struct pt_insn’ has no member named ‘enabled’
insn.enabled || insn.disabled || insn.resumed || insn.interrupted ||
^
sptdecode.c:510:27: error: ‘struct pt_insn’ has no member named ‘disabled’
insn.enabled || insn.disabled || insn.resumed || insn.interrupted ||
^
sptdecode.c:510:44: error: ‘struct pt_insn’ has no member named ‘resumed’
insn.enabled || insn.disabled || insn.resumed || insn.interrupted ||
^
sptdecode.c:510:60: error: ‘struct pt_insn’ has no member named ‘interrupted’
insn.enabled || insn.disabled || insn.resumed || insn.interrupted ||
^
sptdecode.c:511:11: error: ‘struct pt_insn’ has no member named ‘resynced’
insn.resynced || insn.stopped || insn.aborted) {
^
sptdecode.c:511:28: error: ‘struct pt_insn’ has no member named ‘stopped’
insn.resynced || insn.stopped || insn.aborted) {
^
sptdecode.c:511:44: error: ‘struct pt_insn’ has no member named ‘aborted’
insn.resynced || insn.stopped || insn.aborted) {
^
: recipe for target 'sptdecode.o' failed
make: *** [sptdecode.o] Error 1

@sid7954 sid7954 changed the title struct pt_isn missing members : Error in building user tools struct pt_isn has no member named ... : Error in building user tools May 9, 2017
@andikleen
Copy link
Owner

andikleen commented May 9, 2017 via email

@sid7954
Copy link
Author

sid7954 commented May 9, 2017

Reverting to the older version works.

Thanks!

@sid7954 sid7954 closed this as completed May 9, 2017
@andikleen
Copy link
Owner

Keeping it open because the problem is still there

@andikleen andikleen reopened this Jun 12, 2017
@JacobFeiWang
Copy link

r1 and r2 versions pop out the same make errors. No commit b08d7bf362eb07 could be checked out. Is there any workaround for it? Thank you.

@JacobFeiWang
Copy link

Sorry, just got it checked. The master branch works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants